Advertisement
kman2010

mobspawner

Aug 3rd, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("button")
  2. m = peripheral.wrap("top")
  3. m.clear()
  4.  
  5. function fillTable()
  6.    button.setTable("WitherSkeleton",wither,7,23,8,11)
  7.    button.setTable("Blaze",blaze,7,23,13,16)
  8.    button.screen()
  9. end
  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.    if redstone.getOutput("right")
  19.    then
  20.    redstone.setOutput("right", false)
  21.    else
  22.    redstone.setOutput("right", true)
  23.    end
  24. end
  25.  
  26. function blaze()
  27.    button.toggleButton("Blaze")
  28.    if redstone.getOutput("left")
  29.    then
  30.    redstone.setOutput("left", false)
  31.    else
  32.    redstone.setOutput("left", true)
  33.    end
  34. end
  35.  
  36. fillTable()
  37. while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement