Facebook
From Little Owl, 2 Years ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 67
  1. after_place_node = function(pos, placer, itemstack, pointed_thing)
  2.                
  3.                 local postr = minetest.pos_to_string({x=pos.x, y=pos.y, z=pos.z}, 2)
  4.                
  5.                 local player = placer:get_player_name()
  6.  
  7.                 local pmeta = player:get_meta():set_string("skypos", {postr})
  8.  
  9.     end
  10. })