/set home x,y,z
/go home
Jordach wrote:ill think about a portal gun.
Calinou wrote:Gameboom server has teleport pads which can teleport you to coordinates. Maybe you should ask ghostshell for the mod, it isn't released on the forums (I think).
mauvebic wrote:i was thinking of adding bookmarks. sortof likeYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.then type
- Code: Select all
/set home x,y,z
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.teleports there. portal nodes are doable but its been done
- Code: Select all
/go home
minetest.register_on_punchnode(function(p, node, puncher)
if node.name == "default:glass" then
local name = puncher:get_player_name()
if minetest.env:get_node({x = p.x, y = p.y + 1, z = p.z}).name == "default:mese" then
if minetest.env:get_node({x = p.x, y = p.y - 1, z = p.z}).name == "default:steelblock" then
pos_sur = p
minetest.chat_send_player(name, "Teleporting to Iron Caves..")
puncher:setpos({x = pos_sur.x + 1, y = -20022, z = pos_sur.z})
minetest.env:add_node({x = pos_sur.x, y = -20025, z = pos_sur.z}, {name="default:mese"})
minetest.env:add_node({x = pos_sur.x, y = -20024, z = pos_sur.z}, {name="default:glass"})
minetest.env:add_node({x = pos_sur.x, y = -20023, z = pos_sur.z}, {name="default:steelblock"})
end
end
end
end)
minetest.register_on_punchnode(function(p, node, puncher)
if node.name == "default:glass" then
local name = puncher:get_player_name()
if minetest.env:get_node({x = p.x, y = p.y + 1, z = p.z}).name == "default:steelblock" then
if minetest.env:get_node({x = p.x, y = p.y - 1, z = p.z}).name == "default:mese" then
minetest.chat_send_player(name, "Teleporting to surface..")
puncher:setpos({x = p.x + 1, y = pos_sur.y, z = p.z})
minetest.env:add_node({x = p.x, y = pos_sur.y - 1, z = p.z}, {name="default:steelblock"})
minetest.env:add_node({x = p.x, y = pos_sur.y, z = p.z}, {name="default:glass"})
minetest.env:add_node({x = p.x, y = pos_sur.y + 1, z = p.z}, {name="default:mese"})
end
end
end
end)
minetest.register_on_punchnode(function(p, node, puncher)
if node.name == "default:glass" then
local name = puncher:get_player_name()
if minetest.env:get_node({x = p.x, y = p.y + 1, z =
p.z}).name == "default:steelblock" then
if minetest.env:get_node({x = p.x, y = p.y - 1, z =
p.z}).name == "default:mese" then
minetest.chat_send_player(name, "Teleporting...")
puncher:setpos({x = -418, y = 8, z = 132})
end end end end)
Users browsing this forum: No registered users and 6 guests