Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x,y,z = -109,61,-147
- local args = {...}
- --local id = tonumber(args[1] or 1) or 1
- local metad = 10
- local b = peripheral.wrap("back")
- local function r(s)
- b.setCommand(s)
- for i=1,2 do
- sleep(0)
- rs.setOutput("back",true)
- sleep(0)
- rs.setOutput("back",false)
- end
- end
- --while true do
- for id=1,os.getComputerID() do
- r(string.format("setblock %d %d %d minecraft:air",x,y,z))
- 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))
- --id = id + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment