SHARE
TWEET

Untitled

Win4Win Jul 17th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. players2 = {}
  2. t = peripheral.wrap("top")
  3. while true do
  4. -- reports if enemy is inside!
  5.    
  6.     local people = t.getPlayers()
  7.    
  8.     for i,v in pairs(people) do
  9.         if players2[v.name] == nil then
  10.         -- whitelist names here (otherwise will spam!)
  11.             if
  12.             v.name ~= "Inevitableness" and
  13.             v.name ~= "AndyE8" and
  14.             v.name ~= "Pr0vid3nce" and
  15.             v.name ~= "Nagsor_Inaste" and
  16.             v.name ~= "JonyHubi" and
  17.             v.name ~= "ThePvpGod1119" and
  18.             v.name ~= "SooJuicy" and
  19.             v.name ~= "SacredReaper" and
  20.             v.name ~= "ZLife_Vladimir" and
  21.             v.name ~= "SacredCross" and
  22.             v.name ~= "  "
  23.             then    
  24.                 players2[v.name] = t.getPlayerByName(v.name).all()
  25.                 x2 = players2[v.name].position.x
  26.                 y2 = players2[v.name].position.y
  27.                 z2 = players2[v.name].position.z
  28.                 -- ONLY REPORTS WHEN IN RANGE OF 10. Change values to your liking
  29.                 if (x2 < 10 and x2 > -10 and y2 < 10 and y2 > -10 and z2 < 10 and z2 > -10) then
  30.        
  31.                     http.get("https://minecraftbot2.herokuapp.com/?searchterm=" .. v.name .. "%20is%20inside%20YOUR_BASE_NAME")
  32.                     sleep(30.00)
  33.                 end    
  34.             end    
  35.             players2[v] = nil
  36.         end
  37.     end
  38.    
  39.     local people = nil
  40.     players2 = {}
  41.    
  42. sleep(0.05)
  43. end
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