ar10ch

PlayeDet

Mar 8th, 2021 (edited)
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_node("dadmin:womp_spawner", {
  2.     drawtype = "normal",
  3.     tiles = {"default_stone_block.png"},
  4.     groups = {admin=2},
  5.        
  6.     on_step = function(self, dtime, moveresult)
  7.  
  8.     hopethisworks = function(self, pos)
  9.        
  10.         local player = minetest.get_connected_players()
  11.  
  12.             for _,player in pairs(player) do
  13.            
  14.             minetest.get_objects_inside_radius(pos, 6)
  15.  
  16.                 if object:is_player() then
  17.                
  18.                     minetest.add_entity({x=pos.x, y=pos.y-1, z=pos.z}, "dadmin:womp")
  19.                 end
  20.                
  21.             end
  22.        
  23.     end,
RAW Paste Data