Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Settings--
- --Cable Side--
- local cableSide = "back"
- --ChestSide--
- local chestSide ="right"
- --Settings Over--
- while true do
- local chestEmpt = peripheral.wrap(chestSide)
- local itemList = chestEmpt.getAllStacks()
- if itemList[1] ~= nil then
- if itemList[1].name == "log" then
- redstone.setBundledOutput(cableSide, colors.lime)
- else
- end
- else
- redstone.setBundledOutput(cableSide, colors.red)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment