Advertisement
Guest User

Untitled

a guest
Dec 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. minetest.register_node("test:tp", {
  2. drawtype = "signlike",
  3. on_use = function(itemstack, user, pointed_thing)
  4. if pointed_thing.type == "node" then
  5. local dc = pointed_thing.above
  6. local dst = {x=dc.x, y=dc.y, z=dc.z}
  7. user:set_pos(dst)
  8. end
  9. end
  10. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement