Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- os.loadAPI("output")
- m = peripheral.wrap("top")
- m.clear()
- output.alloff()
- function fillTable()
- button.setTable("ON", on, 22,32,3,5, false)
- button.setTable("OFF", off, 38,48,3,5, false)
- button.setTable("Wither Skeletons", wither, 2,22,7,9, false)
- button.setTable("Endermen", enderman, 2,22,11,13, false)
- button.setTable("Angry Zombies", zombie, 2,22,15,17, false)
- button.setTable("Slimes", slime, 2,22,19,21, false)
- button.setTable("Spiders", spider, 2,22,23,25, false)
- button.setTable("Witches", witch, 25,45,7,9, false)
- button.setTable("Blazes", blaze, 25,45,11,13, false)
- button.setTable("Ghasts", ghast, 25,45,15,17, false)
- button.setTable("Zombie Pigmen", pigman, 25,45,19,21, false)
- button.setTable("Cows", cow, 25,45,23,25, false)
- button.setTable("Chickens", chicken, 48,68,7,9, false)
- button.setTable("Sheeps", sheep, 48,68,11,13, false)
- button.setTable("Creepers", creeper, 48,68,15,17, false)
- button.setTable("Magma Cubes", magma, 48,68,19,21, false)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function on()
- button.flash("ON")
- button.ButtonOn("Wither Skeletons")
- button.ButtonOn("Endermen")
- button.ButtonOn("Angry Zombies")
- button.ButtonOn("Slimes")
- button.ButtonOn("Spiders")
- button.ButtonOn("Witches")
- button.ButtonOn("Blazes")
- button.ButtonOn("Ghasts")
- button.ButtonOn("Zombie Pigmen")
- button.ButtonOn("Cows")
- button.ButtonOn("Chickens")
- button.ButtonOn("Sheeps")
- button.ButtonOn("Creepers")
- button.ButtonOn("Magma Cubes")
- output.setside("back")
- output.set("white", true)
- output.set("orange", true)
- output.set("magenta", true)
- output.set("lightBlue", true)
- output.set("yellow", true)
- output.set("lime", true)
- output.set("pink", true)
- output.set("gray", true)
- output.set("lightGray", true)
- output.set("cyan", true)
- output.set("purple", true)
- output.set("blue", true)
- output.set("brown", true)
- output.set("green", true)
- end
- function off()
- button.flash("OFF")
- button.ButtonOff("Wither Skeletons")
- button.ButtonOff("Endermen")
- button.ButtonOff("Angry Zombies")
- button.ButtonOff("Slimes")
- button.ButtonOff("Spiders")
- button.ButtonOff("Witches")
- button.ButtonOff("Blazes")
- button.ButtonOff("Ghasts")
- button.ButtonOff("Zombie Pigmen")
- button.ButtonOff("Cows")
- button.ButtonOff("Chickens")
- button.ButtonOff("Sheeps")
- button.ButtonOff("Creepers")
- button.ButtonOff("Magma Cubes")
- output.setside("back")
- output.set("white", false)
- output.set("orange", false)
- output.set("magenta", false)
- output.set("lightBlue", false)
- output.set("yellow", false)
- output.set("lime", false)
- output.set("pink", false)
- output.set("gray", false)
- output.set("lightGray", false)
- output.set("cyan", false)
- output.set("purple", false)
- output.set("blue", false)
- output.set("brown", false)
- output.set("green", false)
- end
- function wither()
- button.toggleButton("Wither Skeletons")
- output.setside("back")
- output.toggle("white")
- print("Wither")
- end
- function enderman()
- button.toggleButton("Endermen")
- output.setside("back")
- output.toggle("orange")
- print("Endermen")
- end
- function zombie()
- button.toggleButton("Angry Zombies")
- output.setside("back")
- output.toggle("magenta")
- print("Angry Zombies")
- end
- function slime()
- button.toggleButton("Slimes")
- output.setside("back")
- output.toggle("lightBlue")
- print("Slimes")
- end
- function spider()
- button.toggleButton("Spiders")
- output.setside("back")
- output.toggle("yellow")
- print("Spiders")
- end
- function witch()
- button.toggleButton("Witches")
- output.setside("back")
- output.toggle("lime")
- print("Witches")
- end
- function blaze()
- button.toggleButton("Blazes")
- output.setside("back")
- output.toggle("pink")
- print("Blazes")
- end
- function ghast()
- button.toggleButton("Ghasts")
- output.setside("back")
- output.toggle("gray")
- print("Ghasts")
- end
- function pigman()
- button.toggleButton("Zombie Pigmen")
- output.setside("back")
- output.toggle("lightGray")
- print("Zombie Pigmen")
- end
- function cow()
- button.toggleButton("Cows")
- output.setside("back")
- output.toggle("cyan")
- print("Cows")
- end
- function chicken()
- button.toggleButton("Chickens")
- output.setside("back")
- output.toggle("purple")
- print("Chickens")
- end
- function sheep()
- button.toggleButton("Sheeps")
- output.setside("back")
- output.toggle("blue")
- print("Sheeps")
- end
- function creeper()
- button.toggleButton("Creepers")
- output.setside("back")
- output.toggle("brown")
- print("Creepers")
- end
- function magma()
- button.toggleButton("Magma Cubes")
- output.setside("back")
- output.toggle("green")
- print("Magma Cubes")
- end
- fillTable()
- button.heading("Soul Shards Control Screen")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement