mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
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)
|
* `solid=1`: Solid full-cube block (automatically assigned)
|
||||||
* `opaque=1`: Opaque 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
|
* `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
|
* `water=1`: Water
|
||||||
* `lava=1`: Lava
|
* `lava=1`: Lava
|
||||||
* `torch`: Torch or torch-like node
|
* `torch`: Torch or torch-like node
|
||||||
|
@ -35,7 +35,7 @@ minetest.register_node("mcl_fire:fire", {
|
|||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
damage_per_second = 1,
|
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)
|
on_timer = function(pos)
|
||||||
local f = minetest.find_node_near(pos, 1, {"group:flammable"})
|
local f = minetest.find_node_near(pos, 1, {"group:flammable"})
|
||||||
if not f then
|
if not f then
|
||||||
@ -76,7 +76,7 @@ minetest.register_node("mcl_fire:eternal_fire", {
|
|||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
damage_per_second = 1,
|
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 = {},
|
sounds = {},
|
||||||
drop = "",
|
drop = "",
|
||||||
_mcl_blast_resistance = 0,
|
_mcl_blast_resistance = 0,
|
||||||
@ -270,7 +270,7 @@ else -- Fire enabled
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "Remove flammable nodes",
|
label = "Remove flammable nodes",
|
||||||
nodenames = {"mcl_fire:fire"},
|
nodenames = {"mcl_fire:fire"},
|
||||||
neighbors = "group:flammable",
|
neighbors = {"group:fire"},
|
||||||
interval = 5,
|
interval = 5,
|
||||||
chance = 18,
|
chance = 18,
|
||||||
catch_up = false,
|
catch_up = false,
|
||||||
|
Loading…
Reference in New Issue
Block a user