灭火坩埚
服务端 Fabric 模组,防止火焰在坩埚周围蔓延。适用于启用了火焰刻(fire tick)的服务端中的技术型玩家使用。
效果呈球形,以坩埚最底部的西北角为中心,半径由 firesuppressor:max_protect_radius 游戏规则控制。
技术细节
此模组挂钩了 ServerLevel.canSpreadFireAround,以对任何注册为 PoI 的坩埚进行额外检查。此外,该模组还挂钩了 PoiManager.remove,以便将防火效果持久化到被破坏的坩埚上。这是为了应对通过飞行机器移动的坩埚,持续时间为 8 个刻。
虽然可能会带来一定的性能影响,但由于火焰蔓延相对较少发生,这种影响应能得到缓解。(希望如此。)
待办事项
-
添加等级以控制效果半径。可能需要注册不同类型的 PoI,以处理试图点燃被未加载的坩埚覆盖的空气方块的情况。
-
添加 Forge 版本。或者类似的东西。
Fire Suppressing Cauldrons
Server-side fabric mod that prevents fire from spreading around cauldrons. For use by technical players in servers that have fire tick enabled.
The effect is spherical, centered around the bottommost north-west corner of the
cauldron, with a radius controlled by the firesuppressor:max_protect_radius
gamerule.
Technical details
This mod hooks ServerLevel.canSpreadFireAround to make an additional check for
any PoI-registered cauldrons. Additionally, this mod hooks PoiManager.remove
to persist the fire suppressing effect to any cauldrons that are broken. This
is to account for cauldrons moved by flying machines, and lasts for 8 ticks.
While there may be some non-zero performance impact, it should be mitigated by the fact that fire spread should be a relatively rare occurrance. (Hopefully.)
TODO
-
Fill level to control effect radius. May require registering different PoI types, as to account for the case in which an attempt is made to ignite an air block that is covered by an unloaded cauldron.
-
Add Forge variant. Or something.
下载 Fire Suppressing Cauldrons
下载 Fire Suppressing Cauldrons
下载 Fire Suppressing Cauldrons
下载 Fire Suppressing Cauldrons
下载 Fire Suppressing Cauldrons
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧