View difference between Paste ID: 0t99SmVt and cHWBR0N0
SHOW: | | - or go back to the newest paste.
1
os.loadAPI("button")
2
m = peripheral.wrap("top")
3-
rednet.open("left")
3+
4
5
function fillTable()
6
   button.setTable("WitherSkeleton",wither,7,23,8,11)
7-
   button.setTable("Sheep",sheer,10,25,3,6)
7+
   button.setTable("Blaze",blaze,7,23,13,16)
8-
   button.setTable("Place Mobs",place,10,25,8,11)
8+
9-
   button.setTable("Remove Mobs",remove,10,25,13,16)
9+
10
11
function getClick()
12
   event,side,x,y = os.pullEvent("monitor_touch")
13
   button.checkxy(x,y)
14
end
15
16
function wither()
17
   button.toggleButton("WitherSkeleton")
18-
function place()
18+
   if redstone.getOutput("right")
19-
   button.toggleButton("Place Mobs")
19+
   then
20-
   shell.run("sendmsg","place")
20+
   redstone.setOutput("right", false)
21-
   button.toggleButton("Place Mobs")
21+
   else
22
   redstone.setOutput("right", true)
23
   end
24-
function remove()
24+
25-
   button.toggleButton("Remove Mobs")
25+
26-
   shell.run("sendmsg","remove2")
26+
function blaze()
27-
   button.toggleButton("Remove Mobs")
27+
   button.toggleButton("Blaze")
28
   if redstone.getOutput("left")
29
   then
30-
function sheer()
30+
   redstone.setOutput("left", false)
31-
   button.flash("Sheep")
31+
   else
32-
   shell.run("sheepmsg")
32+
   redstone.setOutput("left", true)
33
   end
34
end
35
36
fillTable()
37
while true do getClick() end