SHARE
TWEET

Untitled

a guest Jan 4th, 2013 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Chatcommand definition (spawn npc)
  2. {
  3.     description = "spawns a npc",
  4.     privs = {npcspawn=true},
  5.     func = function(name, param) minetest.env:add_entity({x=pos.x+math.random(-1,1),y=pos.y+math.random(2,3),z=pos.z+math.random(-1,1)}, ("peaceful_npc:npc"))
  6. }
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