火焰正在破坏你珍贵的建筑或森林吗?想要允许火焰存在但限制其机制?或者只是记录日志?亦或是传送过去将其扑灭?本插件受 @happypumkin 和 @x0pk1n 启发,实现了上述所有功能以及更多操作,并具备详细的可配置性。具体而言,它拥有以下特性,且均可按世界进行配置:
- 按世界禁用火焰蔓延
- 火焰起始控制:
- 记录引发火焰的详细信息(包括精确的世界坐标),仅针对玩家,或同时包括闪电和熔岩
- 禁用由闪电、火焰蔓延、爆炸、火球、末影水晶以及/或熔岩引发的火焰
- 禁用玩家对方块点火(可通过权限启用)
- 禁用玩家对生物和玩家点火(可通过权限启用)
- 使特定类型的方块防火!可配置的方块 ID 列表。
- 火焰持续时间控制:
- 禁用火焰对方块、玩家及/或非玩家实体(包括生物)造成的伤害
- 禁用熔岩对方块、玩家及/或非玩家实体造成的伤害
- 禁用玩家放置岩浆,支持通过权限覆盖
- 查看最近几次起火位置及肇事者的命令
- 传送至日志条目的命令
- 在你附近或整个世界范围内灭火的命令
- 查看/设置/保存 所有 配置值,或从 config.yml 重新加载的配置命令
- 将起火日志刷新到磁盘的命令
- 选项:使烧焦的日志掉落木炭。
- 支持多种语言 [在 2.6 中]
- 通过起火类型控制火焰持续时间,提供固定值或范围 [在 2.7 中]
配置
本插件的大多数控制功能(类似于 AntiCreeper)完全由配置标志决定。几乎所有条目都是列表形式,指定该特定行为生效的世界。你可以将其表示为 YML 格式的字符串列表:
nospread:
- world
- world_the_end
但当我拥有大量配置项时,我发现这种格式难以阅读,因此你也可以选择在一行中以逗号分隔的形式列出:
nospread: world, world_the_end
区块列表
.blocklist 条目与你在 AntiCreeper 的黑名单中所找到的一致。它是由逗号分隔的方块名称列表,并允许以 "#:#" 形式列出子类型[3.0],例如可用于使丛林木板防火但允许其他木材燃烧。如果你希望除少数方块外几乎所有方块都防火,请将 .whitelist 设置为 true,然后仅列出那些应该燃烧的方块。在极少数情况下,方块检测可能似乎无法正常工作,但这仅在着火位置旁边有另一个可燃烧方块时才会发生。
可配置字段
可配置项的描述。大多数是上述世界的列表。
nerf_fire.logstart:
- .player: 如果为世界设置,则将玩家、日期/时间和位置记录到 server.log
- .lava: 如果为世界设置,则将事件、日期/时间和位置记录到 server.log
- .lightning: 如果为世界设置,则将事件、日期/时间和位置记录到 server.log
- .fireball: 如果为世界设置,则将事件、日期/时间和位置记录到 server.log
.explosion: 如果为世界设置,会将事件、日期/时间和位置记录到 server.log 中
.crystal: 如果为世界设置,会将事件、日期/时间和位置记录到 server.log 中
nerf_fire.whitelist: 如果为 false,blocklist 中的方块将防火;如果为 true,火焰只能在 blocklist 中的方块上点燃
nerf_fire.blocklist: 上述十进制方块 ID 的列表
nerf_fire.nospread: 如果为世界设置,火焰无法在该处从一个方块蔓延到另一个方块。
nerf_fire.wooddropscharcoal: 如果为世界设置,烧焦的原木会掉落 0-3 个木炭
nerf_fire.charcoaldrop: 新节点,用于修改当上述选项对任何世界生效时的行为
- .max 整数,用于设置最大掉落数量
- .random [true|false],用于设置是固定为 max 还是从 1-max 中随机掉落
- speciesmax 节点,用于按木材的种类设置最大掉落量
- 支持 1.7 版本的金合欢(Acacia)和深色橡木(Dark Oak)类型
- 其下方的每个条目应为 <some>_LOG: #
- 请参阅下方默认示例。
- anydropchance 0-100 的整数,用于设置掉落任意类型物品的几率,无论是随机掉落还是固定为最大值
| anydropchance |
max |
随机平均值 |
固定(最大值)平均值 |
| 75% |
1 |
0.75 |
0.75 |
| 75% |
2 |
1.125 |
1.5 |
| 75% |
3 |
1.5 |
2.25 |
75% |
4 |
1.875 |
3 |
| 75% |
5 |
2.25 |
3.75 |
| 75% |
6 |
2.625 |
4.5 |
- [已删除于 3.0]
.treetypemax 列表,用于按木材类型设置最大掉落量
按以下顺序设置:橡木、云杉木、白桦木、丛林木
必须全部设置四项,否则将默认为 charcoaldrop.max。
nerf_fire.nostartby:包含以下项目的节点
- .op:如果为 true,即使拥有 OP 权限(且未设置 Permission)也无法引发火灾
- .lightning:如果在世界层面设置,闪电不应引发火灾
- .fireball:如果在世界层面设置,由发射器或其他插件产生的火球不应引发火灾
- .lava:如果在世界层面设置,熔岩不能在相邻方块上引发火灾
- .player:如果在世界层面设置,除非 (a) 他们是 OP 或 (b) 拥有 antifire.startfire 权限,否则没有任何玩家能在该世界中引发火灾。注意:这也意味着被削弱后的玩家无法开启传送门。
- .explosion:如果在世界层面设置,该世界中的所有爆炸都不会引发火灾。会覆盖其他插件(如 AntiCreeper)的功能
- .crystal:如果在世界层面设置,末影水晶不会引发火灾。
nerf_fire.nodamageto:包含以下项目的节点
- .block:列出的世界中的燃烧方块不会被销毁
- .player.fromlava:在列出的世界中,熔岩不会伤害玩家(每秒造成 2 颗心的伤害),但请记住它也会点燃玩家 请参阅 配置示例:行走于熔岩之上
- .player.fromfire:在列出的世界中,玩家不会着火或受到火焰伤害
- nonplayer 现已由以下项目替代:
- .hostilemob.fromfire:敌对生物在列出的世界中不会着火
- .peacefulmob.fromfire:
- .mob.fromfire:适用于蝙蝠以及上述未设置时的情况
- .painting.fromfire:画作在列出的世界中不会着火
- .drops.fromfire:掉落的物品
- .item.fromfire:不属于以上类别的任何其他物品
- 上述所有带有 fromlava 的项目同样适用
nerf_fire.noburnmobby:包含以下项目的节点
- .player:在提供的世界中,玩家无法使用带火的武器或箭矢点燃生物,
- 除非他们拥有 antifire.burnmob 权限
- .mob:生物也不能这样做,如果它们有此类能力的话
- .op:如果为 true,OP 不能点燃生物
- 除非他们拥有 antifire.burnmob 权限
nerf_fire.noburnplayerby:与上述类似,但是针对玩家
- 相应的权限是 antifire.burnplayer
nerf_fire.noplacelavaby:控制熔岩放置的节点
- .player:如果在世界层面设置,除非 (a) 他们是 OP 或 (b) 拥有 antifire.placelava 权限,否则没有任何玩家能在该世界中放置熔岩
- .op:如果为 true,即使 OP 也无法放置熔岩(除非设置了权限)
nerf_fire.timedcauses:提供固定或随机持续时间的节点。详见 其详细描述页面。
nerf_fire.timeNetherackToo:如果在世界层面设置,即使是无限燃烧的方块(如下界岩)也将受 timedcauses 限制。
nerf_fire.rainOverridesTimed:如果在世界层面设置,雨水将使方块熄灭,即使它们受 timedcauses 限制。[添加于 2.8]
nerf_fire.logplace.lava:在列出的世界中,将熔岩放置行为添加到 Antifire 日志的节点。
nerf_fire.logflushsecs:触发写入磁盘的火灾起始日志条目的年龄(秒)。仅当添加新条目时才会发生此操作(以避免周期性 tick 的开销),并且当前条目列表超过十条(聊天显示所能容纳的最大数量)时才会执行。
默认配置
本插件的大多数机制默认处于禁用状态,除了将火灾起始位置记录到服务器日志文件中。现在,火势蔓延功能默认关闭。 但这仅在你的服务器有一个名为 "world" 的世界时才有效。
nerf_fire:
logstart:
player: world
lightning: world
whitelist: false
nospread: world
nostartby:
op: false
logflushsecs: 600
woodropscharcoal: world
charcoaldrop:
random: true
anydropchance: 75
max: 4
noplacelavaby:
op: false
nodamageto:
peacefulmob:
fromlava: world
fromfire: world
drops:
fromfire: world
logplace:
lava: world
rainOverridesTimed: false
timedcauses 的配置示例仅可在 此处找到。它不在默认配置中。
权限与命令
已移至 此处另一页面。该页面包含一些 示例命令
统计信息
自 1.4 版本起,该插件现在会向 mcstats.org 发送统计数据。这些数据完全匿名,有助于我作为插件开发者了解插件的使用情况。点击下方链接即可查看相同的数据。如果您希望关闭此功能,只需编辑 plugins/PluginMetrics/config.yml 文件,将 opt-out: false 改为 true。

语言与翻译
AntiFire 现在支持您自定义显示给玩家的字符串,并设置备用语言。这是通过 LanguageAPI 插件实现的。详情请参阅详细语言页面。
可能的功能:
- 当掉落物未被岩浆损坏时抑制嘶嘶声
- 允许针对不同世界配置不同的 timedcause 设置
将 timeNetherackToo 更改为基于世界的配置标志。 [2.9]
添加选项,使雨水仍能熄灭定时火焰 [2.8]
支持 LanguageAPI 进行翻译
可配置的游戏内消息
Is fire damaging your precious buildings or forests? Want to allow fire but restrict its mechanics? Or just log it? Or tp there and put it out? This plugin, inspired by @happypumkin and @x0pk1n, allows all that and more with detailed configurability. To be specific, it has the following features, all configurable by world:
- disable fire spreading, by world
- fire start controls:
- log fire starting with detailed world location (players only, or also lightning and lava)
- disable fire starting by lightning, fire spread, explosions, fireballs, explosions, ender crystals, and/or lava
- disable starting fire to blocks by players (with enable by Permissions)
- disable starting fire to mobs & players by players (with enable by Permissions)
- make certain block types fireproof! Configurable list of block IDs.
- fire duration controls:
- by the mechanism that started the fire, regardless of the underlying material
- disable fire damage to blocks, players, and/or non-player entries including mobs
- disable lava damage to blocks, players, and/or non-player entries
- disable lava placement by players, with permissions override support
- commands to view last few locations of fire starting, by whom
- commands to teleport to a log entry
- command to put out fires nearby you, or in entire world
- commands to view/set/save all config values, or reload from config.yml
- command to flush fire start log to disk
- option to make burnt logs drop charcoal.
- supports multiple languages [in 2.6]
- control fire duration by start type, providing fixed value or a range [in 2.7]
Configuration
Most of the controls of this plugin, like AntiCreeper, are solely by configuration flags. Almost all entries are lists of worlds in which that specific behavior will be active. You can either present them as a YML list of strings:
nospread:
- world
- world_the_end
But I found that to get hard to read when I have so many config items, so you can optionally present them on one line as a comma-separated list:
nospread: world, world_the_end
Blocklist
The .blocklist entry is the same as you'll find in AntiCreeper's blocklists. It's a list of comma-separated block names, and allows sub-type listings in form of "#:#"[3.0] which could be used, for example, to make jungle wood fireproof but allow burning other wood. If you wish to make almost everything fireproof except a few blocks, set .whitelist to true and then only list the ones that should burn. There are few rare cases where the block detection may not seem to work well, but this only happens if there is another burnable block adjacent to the fire location.
Configurable Fields
Description of configurable items. Most are lists of worlds per above.
nerf_fire.logstart:
- .player: if set for a world, logs player, date/time, and location to server.log
- .lava: if set for a world, logs event, date/time, and location to server.log
- .lightning: if set for a world, logs event, date/time, and location to server.log
- .fireball: if set for a world, logs event, date/time, and location to server.log
- .explosion: if set for a world, logs event, date/time, and location to server.log
- .crystal: if set for a world, logs event, date/time, and location to server.log
nerf_fire.whitelist: if false, blocks on blocklist are fireproof; if true, fire can only be started on blocks on blocklist
nerf_fire.blocklist: list of decimal block ids per above
nerf_fire.nospread: if set for a world, fire cannot spread from one block to another there.
nerf_fire.wooddropscharcoal: if set for a world, burnt logs drop 0-3 charcoal
nerf_fire.charcoaldrop: new node that modifies behavior when above is set for any world
- .max integer that sets maximum number of charcoal dropped
- .random [true|false] that sets if fixed to max or random from 1-max
- speciesmax node to set max drops by species of wood
- support for 1.7 types Acacia and Dark Oak
- Each entry underneath should be <some>_LOG: #
- See example in default below.
- anydropchance 0-100 integer to set chance of any kind of drop, whether random or fixed at max
- see table below for default chances, averages
| anydropchance |
max |
random average |
fixed (max) avg |
| 75% |
1 |
0.75 |
0.75 |
| 75% |
2 |
1.125 |
1.5 |
| 75% |
3 |
1.5 |
2.25 |
| 75% |
4 |
1.875 |
3 |
| 75% |
5 |
2.25 |
3.75 |
| 75% |
6 |
2.625 |
4.5 |
- [Deleted in 3.0]
.treetypemax list for setting max drops by type of wood
set in this order: Oak, Spruce, Birch, Jungle
must set all four or else defaults to charcoaldrop.max.
nerf_fire.nostartby: node with below items
- .op: if true, even Op cannot start a fire (without Permission set)
- .lightning: if set for a world, lightning not supposed to start a fire
- .fireball: if set for a world, fireballs from dispensers or other plugins not supposed to start a fire
- .lava: if set for a world, lava cannot start fire on adjacent block
- .player: if set for a world, NO players can start a fire in that world unless (a) they are Op or (b) have permission antifire.startfire set. Caution: Also means nerfed players can NOT enable a portal.
- .explosion: if set for a world, all explosions in that world do not start a fire. Overrides other plugins, like AntiCreeper
- .crystal: if set for a world, ender crystals do not start fires.
nerf_fire.nodamageto: node with below items
- .block: burning blocks will not be destroyed in listed worlds
- .player.fromlava: lava will not hurt players (2 hearts per tick) in listed worlds, but remember it also sets people on fire Refer to example config Walk on Lava
- .player.fromfire: players will not catch fire or incur fire damage in listed worlds
- nonplayer has now been replaced by the following:
- .hostilemob.fromfire: hostile mobs won't catch on fire in listed worlds
- .peacefulmob.fromfire:
- .mob.fromfire: applies to bats and when above not set
- .painting.fromfire: paintings won't catch fire in listed worlds
- .drops.fromfire: dropped items
- .item.fromfire: anything not in previous categories
- all of above items with fromlava work as well
nerf_fire.noburnmobby: node with below items
- .player: players cannot light mobs with flaming weapons or arrows in supplied worlds,
- unless they have permission antifire.burnmob
- .mob: mobs cannot do the same, if they were to have such
- .op: if true, OPs can NOT set mobs alight
- unless they have permission antifire.burnmob
nerf_fire.noburnplayerby: similar to above, but against players
- corresponding permission is antifire.burnplayer
nerf_fire.noplacelavaby: node controlling lava placement
- .player: if set for a world, NO players can place lava in that world unless (a) they are Op or (b) have permission antifire.placelava set
- .op: if true, even Op cannot place lava (without Permission set)
nerf_fire.timedcauses : node offering fixed or random fire durations. See its detailed description page.
nerf_fire.timeNetherackToo: if set for a world, even infinitely burning blocks like netherack will be subject to timedcauses.
nerf_fire.rainOverridesTimed: if set for a world, rain will put out blocks even if they are subject to timedcauses. [Added in 2.8]
nerf_fire.logplace.lava: node that adds lava placement to the Antifire log for listed worlds.
nerf_fire.logflushsecs: age in seconds of fire start log entries to flush to disk. This only happens when a new entry is added (in order to avoid overhead of a periodic tic) and if the current list of entries is more than ten (all that can fit in chat display).
Default Configuration
Most of the mechanics of this plugin are disabled by default, except logging fire start locations to your server log file. and now fire spreading is Off by default. But only if your server has a world named "world".
nerf_fire:
logstart:
player: world
lightning: world
whitelist: false
nospread: world
nostartby:
op: false
logflushsecs: 600
woodropscharcoal: world
charcoaldrop:
random: true
anydropchance: 75
max: 4
noplacelavaby:
op: false
nodamageto:
peacefulmob:
fromlava: world
fromfire: world
drops:
fromfire: world
logplace:
lava: world
rainOverridesTimed: false
Examples of timedcauses config is only found found here. It is not in the default config.
Permissions & Commands
Has been moved to another page here. That page has some example commands
Statistics
Since 1.4 the plugin now sends statistics to mcstats.org. These are completely anonymous and help me as a plugin developer know how the plugin is being used. You can view the same data by clicking below. If you want to turn it off, simply edit plugins/PluginMetrics/config.yml and change opt-out: false to true

Languages and Translations
AntiFire now supports you configuring your own strings used to players, and setting alternate languages as well. This is done with LanguageAPI plugin. See the detailed language page for more.
Possible features:
- Suppressing hissing sound when drops are not damaged by lava
- Allow different timedcause configuration per world
Change timeNetherackToo to a world-based config flag. [2.9]
Add an option for rain to still put out timed fires [2.8]
LanguageAPI support for translations
Configurable in-game messaging
评论 0
登录后参与评分
还没有评论,来抢沙发吧