Guest User

Untitled

a guest
Dec 22nd, 2012
29
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local list = minetest.env:get_objects_in_radius(pos, 20);
  2. local count = #list;
  3. local MAX_ENTS = 15;
  4.  
  5. if (count > MAX_ENTS) then
  6. for i = (MAX_ENTS + 1), count do
  7. list[i]:remove();
  8. end
  9. end
  10.  
  11. check list[i]:get_name() ~= "peaceful_npc:npc"
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×