Guest User

Untitled

a guest
Jan 4th, 2013
43
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