Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Altar = peripheral.wrap("top");
- rs.setAnalogOutput("bottom", 0)
- while 0==0 do
- local slot = Altar.getStackInSlot(1) -- slot in altar
- if slot then -- check slot in centre pedestal
- rs.setAnalogOutput("bottom", 0) -- signal (pedestal in use) for bottom
- print(slot.display_name)
- check = 1
- while check == 1 do
- if Altar.getStackInSlot(1) then -- check pedestal is filled
- if Altar.getStackInSlot(1).display_name..Altar.getStackInSlot(1).dmg ~= slot.display_name..slot.dmg then -- check if item changed
- check = 0
- print("ungleich")
- turtle.suckUp() -- clear pedestal
- end
- else
- check = 0
- print("Pedestal unerwartet leer")
- end
- print("Item unveraendert")
- sleep(2)
- end
- else
- rs.setAnalogOutput("bottom", 15) -- signal (pedestal ready) for bottom
- print("Pedestal leer")
- end
- sleep(5)
- end
Add Comment
Please, Sign In to add comment