forked from Mineclonia/Mineclonia
Make eternal fire destroy stuff as well
This commit is contained in:
parent
e9c8d33c6f
commit
6ff1f46887
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue