Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Chatcommand definition (spawn npc)
- {
- description = "spawns a npc",
- privs = {npcspawn=true},
- 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"))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement