mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Splitted comments in fire mod to keep dungeon master behavior
- Fire placed by dungeon master and fire arrows will remove direct-connected nodes and will disappear
This commit is contained in:
parent
a93eed6950
commit
926ea585ce
@ -16,16 +16,16 @@ minetest.register_node("fire:basic_flame", {
|
|||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
damage_per_second = 4,
|
damage_per_second = 4,
|
||||||
|
|
||||||
--[[ on_construct = function(pos, placer)
|
on_construct = function(pos, placer)
|
||||||
fire.on_flame_add_at(pos)
|
fire.on_flame_add_at(pos)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_destruct = function(pos, oldnode, oldmetadata, digger)
|
on_destruct = function(pos, oldnode, oldmetadata, digger)
|
||||||
fire.on_flame_remove_at(pos)
|
fire.on_flame_remove_at(pos)
|
||||||
end,]]
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[
|
|
||||||
fire.D = 6
|
fire.D = 6
|
||||||
-- key: position hash of low corner of area
|
-- key: position hash of low corner of area
|
||||||
-- value: {handle=sound handle, name=sound name}
|
-- value: {handle=sound handle, name=sound name}
|
||||||
@ -102,7 +102,7 @@ function fire.flame_should_extinguish(pos)
|
|||||||
return (#ps ~= 0)
|
return (#ps ~= 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Ignite neighboring nodes
|
--[[-- Ignite neighboring nodes
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"group:flammable"},
|
nodenames = {"group:flammable"},
|
||||||
neighbors = {"group:igniter"},
|
neighbors = {"group:igniter"},
|
||||||
@ -144,7 +144,7 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})]]
|
||||||
|
|
||||||
-- Remove flammable nodes and flame
|
-- Remove flammable nodes and flame
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
@ -183,5 +183,3 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
]]--
|
|
||||||
|
Loading…
Reference in New Issue
Block a user