Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = peripheral.wrap("top")
- local Side = {
- ["1"] = "top";
- ["2"] = "right";
- ["3"] = "bottom";
- ["4"] = "left";
- ["5"] = "front";
- ["6"] = "back";
- }
- while true do
- local item = p.listAll()[id]
- if (item == nil) then
- redstone.setOutput("side.1", false)
- elseif (redstone.getOutput("top") == true) then
- if (bones < 1000) then
- redstone.setOutput("top", false)
- end
- elseif (redstone.getOutput("top") == false) then
- if (bones > 2000) then
- redstone.setOutput("top", true)
- end
- end
- os.sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement