AntiFire

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.

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/IDs, and allows sub-type listings in form of "#:#", 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 <species>_LOG: #
    • See example in default below.
  • New in 2.4: 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
anydropchancemaxrandom averagefixed (max) avg
75%10.750.75
75%21.1251.5
75%31.52.25
75%41.8753
75%52.253.75
75%62.6254.5
  • Deprecated .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.fromlava: mobs and creatures will incur no damage from lava
  • .nonplayer.fromfire: mobs and creatures won't catch fire. Beware of setting this, since it means mobs will NOT burn in sunlight

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 : NEW node offering fixed fire durations. See its detailed description page.

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
    speciesmax:
      JUNGLE_LOG: 0
      OAK_LOG: 2
      BIRCH_LOG: 1
      SPRUCE_LOG: 3
      ACACIA_LOG: 4
      DARKOAK_LOG: 5
    anydropchance: 75
  noplacelavaby: 
    op: false
  logplace: 
    lava: world

Example Configurations (click here)

Permissions & Commands

Has been moved to another page here.

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

AntiFire mcstats

Possible features:

  1. LanguageAPI support for translations
  2. Allow different timedcause configuration per world
  3. Configurable in-game messaging

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of filbert66 filbert66 Mar 09, 2014 at 21:29 UTC - 1 like

    @Wbfw: Go

    Fixed! I'll DM you a download link as it will take Bukkit staff a few days to approve.

    My plugins: Anticreeper, AntiFire, BedCheck, Thor, Unbreakable Items, Enchantment Limiter. Contributor: Tree-Assist

    BFAK:67982,3d6540176e18ca75f0a204a87213d75a51e4b745f16c619b8fcef59ccfeab5cb

  • Avatar of Wbfw Wbfw Mar 09, 2014 at 17:21 UTC - 0 likes

    @filbert66: Go

    I have used craftbukkit 3023 build and AntiFire 2.4 version. http://pastebin.com/VvkAi1QN << It's my config .yml

    Related ticket: #7
  • Avatar of filbert66 filbert66 Mar 09, 2014 at 07:18 UTC - 0 likes

    @Wbfw: Go

    Please DM me you config.yml and I can attempt to duplicate. Also what version of Bukkit and AntiFire are being used?

  • Avatar of Wbfw Wbfw Mar 09, 2014 at 07:16 UTC - 0 likes

    If TNT is burned by near fire, TNT vanished! This doesn't explode! How can I solve situation?

  • Avatar of filbert66 filbert66 Oct 24, 2013 at 21:30 UTC - 0 likes

    @rohan0444mc: Go

    Are you trying to set both FLINT_AND_STEEL and FIRECHARGE? Then you should have entered the below:

      timedcauses:
        FLINT_AND_STEEL: 5000
        charge: 5000
    

    Please see the example config for timedcauses here. I've tried to clarify it a bit.

    Or you could just use the new commands to change the config in-game and then save it.

    Last edited Oct 24, 2013 by filbert66: added commands reference.
  • Avatar of rohan0444mc rohan0444mc Oct 24, 2013 at 21:07 UTC - 0 likes

    The config is example is kinda confusing... or maybe im just dumb anyway I put in this

    nerf_fire: timedcauses: FLINT_AND_STEEL: charge: 5000 logstart: player: world lightning: world crystal: world

    1. lava:
    2. fireball:
    3. explosion: whitelist: false nospread: world nostartby: op: false

    and I added the

    timedcauses: FLINT_AND_STEEL: charge: 5000

    part because I thought thats what it said to do and I added nerf_fire.timedcauses to my perms but still doesnt work

    mc.v-p.us >> My kit pvp server :D

  • Avatar of filbert66 filbert66 Oct 10, 2013 at 07:53 UTC - 0 likes

    Just posted version 2.0. It requires Bukkit development 1.6.4 build 2894 or later. It adds new fire duration control.

    Last edited Oct 10, 2013 by filbert66
  • Avatar of PlayerToo PlayerToo Sep 16, 2013 at 19:34 UTC - 0 likes

    @filbert66: Go

    Thanks you.

  • Avatar of filbert66 filbert66 Sep 12, 2013 at 18:58 UTC - 0 likes

    @PlayerToo: Go

    That is not currently a feature. I could add it, if there is demand.

    What you can do is disable fire start by lava, and fire damage by lava to different entities. See Configurable Fields above.

  • Avatar of PlayerToo PlayerToo Sep 12, 2013 at 00:38 UTC - 0 likes

    How can you enable lava placement by players. I couldn't find it in the config.yml.

Facts

Date created
Apr 16, 2012
Categories
Last update
Mar 09, 2014
Development stage
Release
Language
  • enUS
License
GNU General Public License version 2 (GPLv2)
Curse link
AntiFire
Downloads
43,214
Recent files

Authors