Guest User

Untitled

a guest
Jul 27th, 2014
245
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×