Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --#load the touchpoint API
- os.loadAPI("touchpoint")
- os.sleep(1)
- --# wrap the modem to the computer
- local cmodem = peripheral.wrap("right")
- --# initialize the button instance set on the monitor
- local t = touchpoint.new("left")
- --# Add a new button
- t:add("WWCS - Online", nil, 5, 2, 45, 3, colors.black, colors.black)
- t:add("Click to Enable/Disable", nil, 5, 4, 45, 5, colors.black, colors.black)
- t:add("Shulker", nil, 5, 5, 17, 7, colors.blue, colors.lightBlue)
- t:add("Wither", nil, 19, 5, 31, 7, colors.blue, colors.lightBlue)
- t:add("Feral Ghoul", nil, 33, 5, 45, 7, colors.blue, colors.lightBlue)
- t:add("Evoker", nil, 5, 10, 17, 12, colors.blue, colors.lightBlue)
- t:add("Z Pigman", nil, 19, 10, 31, 12, colors.blue, colors.lightBlue)
- t:add("Ghast", nil, 33, 10, 45, 12, colors.blue, colors.lightBlue)
- t:add("Skeleton", nil, 5, 15, 17, 17, colors.blue, colors.lightBlue)
- t:add("Z Miner", nil, 19, 15, 31, 17, colors.blue, colors.lightBlue)
- t:add("Witch", nil, 33, 15, 45, 17, colors.blue, colors.lightBlue)
- t:add("Blizz", nil, 5, 20, 17, 22, colors.blue, colors.lightBlue)
- t:add("Slime", nil, 19, 20, 31, 22, colors.blue, colors.lightBlue)
- t:add("Cyberdemon", nil, 33, 20, 45, 22, colors.blue, colors.lightBlue)
- t:add("Spider", nil, 5, 25, 17, 27, colors.blue, colors.lightBlue)
- t:add("Enderman", nil, 19, 25, 31, 27, colors.blue, colors.lightBlue)
- --t:add("You will be teleported upon picking a kit", nil, 3, 17, 47, 18, colors.black, colors.black)
- --# draw the buttons
- t:draw()
- while true do
- --# handleEvents will convert monitor_touch events to button_click if it was on a button
- local event, kit = t:handleEvents(os.pullEvent())
- if event == "button_click" then
- if kit == "Thermal Kit" then
- os.shutdown()
- --# Gives the player the Thermal Expansion Starter Kit #--
- elseif kit == "Thaumic Kit" then
- os.shutdown()
- --# Gives the player the Thaumcraft Starter Kit #--
- elseif kit == "AE2 Kit" then
- os.shutdown()
- --# Gives the player the AE2 Starter Kit #--
- elseif kit == "Botania Kit" then
- os.shutdown()
- --# Gives the player the Botania Starter Kit #--
- elseif kit == "Miner Kit" then
- os.shutdown()
- --# Gives the player the Miner Start Kit #--
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement