SHARE
TWEET

Untitled

a guest Jul 14th, 2014 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   minetest.register_chatcommand("goldtouch", {
  2.         params = "singleplayer",
  3.         func = function (name, param)
  4.                 local player = minetest.env:get_player_by_name(param)
  5.  
  6.                 local playerPos = player:getpos()
  7.                 playerPos.x = math.floor(playerPos.x)
  8.                 playerPos.y = math.floor(playerPos.y)
  9.                 playerPos.z = math.floor(playerPos.z)
  10.                 minetest.set_node(playerPos, {name="default:goldblock"})
  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