SHARE
TWEET

Untitled

a guest Jul 27th, 2014 231 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_chatcommand("bothere", {
  2.         parms = "" ,
  3.         description = "Spawn bot atop pointed block",
  4.  
  5.         func = function(name, pointed_thing) -- I Don't really know. Without pointed_thing there, it just crashes.
  6.                 player = minetest.get_player_by_name(name)
  7.                 pos = player:getpos() -- WORKS
  8. --              pos = minetest.get_pointed_thing_position(pointed_thing, above) -- DOSEN'T
  9.  
  10.                 return true, minetest.pos_to_string(pos)
  11.         end
  12. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top