jordan wrote:sfan5 wrote:just modify the "local MESE_TNT_RANGE = 12" Line xD
Where do I find that?
-- Mesecon Stuff:
if minetest.get_modpath("mesecons") then
mesecon:register_on_signal_on(function(pos, node)
--activate the TNT here
end)
end
-- Mesecon Stuff:
if minetest.get_modpath("mesecons") then
mesecon:register_on_signal_on(function(pos, node)
if node.name:find("nuke:") then
minetest.env:remove_node(p)
spawn_tnt(p, node.name)
nodeupdate(p)
end
end)
end
-- Mesecon Stuff:
mesecon:register_effector("nuke:iron_tnt", "nuke:iron_tnt")
mesecon:register_effector("nuke:mese_tnt", "nuke:mese_tnt")
mesecon:register_effector("nuke:hardcore_iron_tnt", "nuke:hardcore_iron_tnt")
mesecon:register_effector("nuke:hardcore_mese_tnt", "nuke:hardcore_mese_tnt")
if minetest.get_modpath("mesecons") then
mesecon:register_on_signal_on(function(pos, node)
if node.name:find("^nuke:") then
minetest.env:remove_node(pos)
spawn_tnt(pos, node.name)
nodeupdate(pos)
end
end)
end
Temperest wrote:The problem was that the code didn't register the effectors:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
-- Mesecon Stuff:
mesecon:register_effector("nuke:iron_tnt", "nuke:iron_tnt")
mesecon:register_effector("nuke:mese_tnt", "nuke:mese_tnt")
mesecon:register_effector("nuke:hardcore_iron_tnt", "nuke:hardcore_iron_tnt")
mesecon:register_effector("nuke:hardcore_mese_tnt", "nuke:hardcore_mese_tnt")
if minetest.get_modpath("mesecons") then
mesecon:register_on_signal_on(function(pos, node)
if node.name:find("^nuke:") then
minetest.env:remove_node(pos)
spawn_tnt(pos, node.name)
nodeupdate(pos)
end
end)
end
Put this at the end of the init.lua and activate your TNT with Mesecons!
prof-turbo wrote:why do you don't add sounds now?
Users browsing this forum: Bing [Bot] and 34 guests