Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("top")
- m.clear()
- function fillTable()
- button.setTable("WitherSkeleton",wither,7,23,8,11)
- button.setTable("Blaze",blaze,7,23,13,16)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function wither()
- button.toggleButton("WitherSkeleton")
- if redstone.getOutput("right")
- then
- redstone.setOutput("right", false)
- else
- redstone.setOutput("right", true)
- end
- end
- function blaze()
- button.toggleButton("Blaze")
- if redstone.getOutput("left")
- then
- redstone.setOutput("left", false)
- else
- redstone.setOutput("left", true)
- end
- end
- fillTable()
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement