From 6ff1f468871abe154d3ebcb57fb24795a7be0d9d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 9 May 2017 19:05:08 +0200 Subject: [PATCH] Make eternal fire destroy stuff as well --- GROUPS.md | 1 + mods/ITEMS/mcl_fire/init.lua | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/GROUPS.md b/GROUPS.md index b7264abd9..41b0a0d7a 100644 --- a/GROUPS.md +++ b/GROUPS.md @@ -83,6 +83,7 @@ These groups are used mostly for informational purposes * `solid=1`: Solid full-cube block (automatically assigned) * `opaque=1`: Opaque block (automatically assigned) * `not_solid=1`: Block is sold (only assign this group for nodes which are automatically detected as “solid” in error +* `fire=1`: Fire * `water=1`: Water * `lava=1`: Lava * `torch`: Torch or torch-like node diff --git a/mods/ITEMS/mcl_fire/init.lua b/mods/ITEMS/mcl_fire/init.lua index 9bd130405..eddf06dc9 100644 --- a/mods/ITEMS/mcl_fire/init.lua +++ b/mods/ITEMS/mcl_fire/init.lua @@ -35,7 +35,7 @@ minetest.register_node("mcl_fire:fire", { buildable_to = true, sunlight_propagates = true, damage_per_second = 1, - groups = {igniter = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston=1}, + groups = {igniter = 1, fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston=1}, on_timer = function(pos) local f = minetest.find_node_near(pos, 1, {"group:flammable"}) if not f then @@ -76,7 +76,7 @@ minetest.register_node("mcl_fire:eternal_fire", { buildable_to = true, sunlight_propagates = true, damage_per_second = 1, - groups = {igniter = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1}, + groups = {igniter = 1, fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1}, sounds = {}, drop = "", _mcl_blast_resistance = 0, @@ -270,7 +270,7 @@ else -- Fire enabled minetest.register_abm({ label = "Remove flammable nodes", nodenames = {"mcl_fire:fire"}, - neighbors = "group:flammable", + neighbors = {"group:fire"}, interval = 5, chance = 18, catch_up = false,