Destroy items in fire
This commit is contained in:
parent
29040f9352
commit
0586c0ea18
2 changed files with 8 additions and 6 deletions
|
@ -35,7 +35,7 @@ minetest.register_node("mcl_fire:fire", {
|
|||
buildable_to = true,
|
||||
sunlight_propagates = true,
|
||||
damage_per_second = 1,
|
||||
groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston=1},
|
||||
groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston=1, destroys_items=1 },
|
||||
floodable = true,
|
||||
on_flood = function(pos, oldnode, newnode)
|
||||
if minetest.get_item_group(newnode.name, "water") ~= 0 then
|
||||
|
@ -114,7 +114,7 @@ minetest.register_node("mcl_fire:eternal_fire", {
|
|||
buildable_to = true,
|
||||
sunlight_propagates = true,
|
||||
damage_per_second = 1,
|
||||
groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1},
|
||||
groups = {fire = 1, dig_immediate = 3, not_in_creative_inventory = 1, dig_by_piston = 1, destroys_items = 1},
|
||||
floodable = true,
|
||||
on_flood = function(pos, oldnode, newnode)
|
||||
if minetest.get_item_group(newnode.name, "water") ~= 0 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue