Lion4ever

Pc Replace

Mar 14th, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local x,y,z = -109,61,-147
  2.  
  3. local args = {...}
  4. --local id = tonumber(args[1] or 1) or 1
  5. local metad = 10
  6. local b = peripheral.wrap("back")
  7.  
  8. local function r(s)
  9. b.setCommand(s)
  10. for i=1,2 do
  11. sleep(0)
  12. rs.setOutput("back",true)
  13. sleep(0)
  14. rs.setOutput("back",false)
  15. end
  16. end
  17. --while true do
  18. for id=1,os.getComputerID() do
  19. r(string.format("setblock %d %d %d minecraft:air",x,y,z))
  20. r(string.format('setblock %d %d %d ComputerCraft:CC-Computer %d replace {on:1,computerID:%d,x:%d,y:%d,z:%d,id:computer,label:"Random"}',x,y,z,metad,id,x,y,z))
  21. --id = id + 1
  22. end
Advertisement
Add Comment
Please, Sign In to add comment