Incensed
功能说明
此数据包允许点燃的营火、蜡烛、火把、灯笼及其他支持方块吸收药水效果,并将其赋予附近的实体,同时显示匹配颜色的粒子特效。
可以通过直接使用药水、投掷药水或发射 tipped arrow(附魔箭)来添加效果。香炉可同时容纳多种效果,每种效果拥有独立的剩余持续时间。
交互操作
手持支持的物品注视香炉时,操作栏会显示可用的交互选项。
默认情况下:
- 药水会添加其效果。
- 打火石和火焰球用于引燃香炉。
- 烈焰粉延长所有已存储的效果。
- 树脂块(旧版本中为蜂巢)隐藏香炉粒子。
- 剪刀揭示香炉粒子。
- 牛奶桶彻底清除香炉效果并使桶变为空桶。
火焰箭、火球和闪电链也可以引燃香炉。
自定义配置
使用 /function incensed:_config 进行配置:
- 效果来源及追加行为。
- 引燃需求与持续时间。
- 默认香炉规则、引燃模式和效果模式。
- 受影响实体的粒子、效果持续时间和范围。
- 信号火范围。
- 燃料持续时间。
- 操作栏和粒子循环。
- 香炉、烟雾和目标粒子。
- 交互粒子和声音。
- 调试类别和信息订阅。
设置分为常规、默认香炉、反馈和调试四个界面。每个设置均可单独重置,也可将整个配置恢复为默认值。
默认香炉
“默认香炉”界面可在放置匹配的方块时自动将其初始化为香炉。
规则按顺序检查,最后一条匹配的规则具有最高优先级。每条规则可以:
- 匹配方块 ID 或方块标签。
- 添加一个或多个带有自定义增幅器和基于刻数持续时间的效果,包括
-1表示无限持续。 - 选择手动、主动或自动引燃行为。
- 选择后续效果来源是与当前效果合并还是替换当前效果。
默认情况下,配置好的效果会立即生效,且后续来源会与它们合并。强制控制选项可使全局的“引燃”和“效果”模式覆盖所有规则。
默认未启用任何规则。游戏内帮助包含一个现成的无限生命恢复营火示例。
引燃与效果
通用引燃需求可设置为 Never(从不)、Once(仅一次)或 Always(始终)。
默认情况下,普通香炉在接收第一个效果前只需被引燃一次,引燃状态持续 60 秒。负值的引燃持续时间将永久有效。
默认启用追加模式,因此不同的效果和增幅器等级会被分别存储。具有相同增幅器的匹配效果会合并其剩余持续时间。
默认情况下,烈焰粉会将每种已存储的效果延长 60 秒,每种效果的乘数可单独配置。
当香炉包含多种效果时,其粒子会按照配置的“粒子循环间隔”切换颜色。如果药水使用了自定义颜色,则优先使用该颜色。
受影响实体
香炉会对 #incensed:affected_entities 标签中的实体类型施加效果。
玩家默认包含在内。向该标签添加生物或其他支持的实体类型,即可让它们也接收香炉效果。
标签
编辑 #incensed:incensable 以更改哪些方块可以成为香炉。
#incensed:effect_sources 的物品和实体类型版本用于控制支持的效果来源,而 #incensed:affected_entities 用于控制哪些实体接收效果。
其他标签控制:
- 引燃物品和实体。
- 燃料和清洁剂物品。
- 隐藏或揭示粒子的物品。
- 物品消耗、耐久度和替换容器。
- 粒子放置、大小和烟雾行为。
如果将玩家和生物添加到实体类型效果来源标签中,他们也可以通过接触转移其激活的效果,但默认情况下该标签中不包含任何内容。
卸载
如果你需要移除此数据包,请使用 /function incensed:uninstall 删除其持久化数据。
后续计划
在未来的更新中,我计划通过增加更多交互方式和配置选项来扩展香炉的自定义功能,例如:
- 添加更多基于物品的升级以实现自定义行为,如吓跑特定生物,或选择受影响的实体类型。
Incensed
What it does
This datapack lets lit campfires, candles, torches, lanterns and other supported blocks absorb potion effects and grant them to nearby entities, with matching colored particles.
Effects can be added by using a potion directly, throwing a potion or firing a Tipped Arrow. Incenses can hold multiple effects at once, each with its own remaining duration.
Interactions
Looking at an incense while holding a supported item shows the available interaction in the actionbar.
By default:
- Potions add their effects.
- Flint and Steel and Fire Charges prime the incense.
- Blaze Powder extends every stored effect.
- Resin Clumps (Honeycombs in older versions) hide incense particles.
- Shears reveal incense particles.
- Milk Buckets clear the incense completely and become empty Buckets.
Flaming Arrows, Fireballs and Lightning Bolts can also prime incenses.
Customization
Use /function incensed:_config to configure:
- Effect sources and append behavior.
- Priming requirements and duration.
- Default incense rules, priming modes and effect modes.
- Affected-entity particles, effect duration and range.
- Signal-fire range.
- Fuel duration.
- Actionbar and particle cycling.
- Incense, smoke and target particles.
- Interaction particles and sounds.
- Debug categories and message subscriptions.
Settings are divided into General, Default Incenses, Feedback and Debug screens. Each setting can be reset individually, or the entire configuration can be restored to its defaults.
Default Incenses
The Default Incenses screen can automatically initialize matching blocks as soon as they are placed.
Rules are checked in order, with the last matching rule taking priority. Each rule can:
- Match block IDs or block tags.
- Add one or more effects with custom amplifiers and tick-based durations, including
-1for infinite. - Choose Manual, Active or Auto priming behavior.
- Choose whether later effect sources merge with or replace the current effects.
By default, configured effects become active immediately and later sources merge into them. Force controls can make the global Priming and Effect modes override every rule.
No default rules are enabled automatically. The in-game help includes a ready-to-use infinite Regeneration campfire example.
Priming and Effects
The general priming requirement can be set to Never, Once or Always.
By default, an ordinary incense only needs to be primed before receiving its first effect, and priming lasts for 60 seconds. Negative priming durations remain active indefinitely.
Appending is enabled by default, so different effects and amplifier levels are stored separately. Matching effects with the same amplifier combine their remaining durations.
Blaze Powder extends every stored effect by 60 seconds by default, with a configurable multiplier for each effect.
When an incense contains multiple effects, its particles cycle through their colors at the configured Particle Cycle interval. Potions with a custom color use that color instead.
Affected Entities
Incenses apply effects to entity types in #incensed:affected_entities.
Players are included by default. Add mobs or other supported entity types to the tag to let them receive incense effects as well.
Tags
Edit #incensed:incensable to change which blocks can become incenses.
The item and entity-type versions of #incensed:effect_sources control supported effect sources, while #incensed:affected_entities controls which entities receive effects.
Additional tags control:
- Igniter items and entities.
- Fuel and cleanser items.
- Items that hide or reveal particles.
- Item consumption, durability and replacement containers.
- Particle placement, size and smoke behavior.
Players and mobs can also transfer their active effects through contact when added to the entity-type effect-source tag, but none are included there by default.
Uninstallation
If you ever need to remove the datapack, use /function incensed:uninstall to remove its persistent data.
What's Next
In future updates, I plan to expand incense customization with more interactions and config options, such as:
- Adding more item-based upgrades for custom behaviors, such as scaring certain mobs away, or selecting which types of entities are affected.
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Incensed
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
添加了可配置的默认香薰:
- 已排序的规则可以为匹配的方块或方块标签提供预设效果、引燃行为以及追加或替换行为。
- 添加了手动(Manual)、激活(Active)和自动(Auto)引燃模式,并带有全局强制选项。
添加了 #incensed:affected_entities 以控制哪些附近实体类型会获得香薰效果。玩家默认仍会被包含在内。
添加了牛奶桶和 #incensed:cleansers 以完全清除香薰,包括其效果、引燃状态及该方块上配置的默认值。
香薰粒子现在按可配置的时间间隔循环显示所有存储效果的对应颜色。
通过可编辑的对象和列表设置、上下文信息按钮以及改进的默认值和重置控件,扩展了配置界面。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
添加了基于官方概念图的蓝蛙和红眼树蛙变体。
数据包
为模组生物群系添加原版回溯特性!
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
评论 0
登录后参与评分
还没有评论,来抢沙发吧