Advertisement
konalisp

Emancipation Grill (grill.lua)

May 30th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local list = { "sand", "slime_ball" }
  2. local ra = 3
  3. local function main()
  4.     while (true) do
  5.         local c = commands.exec("testfor @a[r=" .. ra .. "]")
  6.         if redstone.getInput("left", true) or redstone.getInput("right", true) then
  7.            
  8.         else
  9.             for _, i in pairs(list) do
  10.                 commands.exec("clear @a[r=" .. ra .. "] minecraft:" .. i)
  11.             end
  12.         end
  13.     end
  14. end
  15.  
  16. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement