--#load the touchpoint API
os.loadAPI("touchpoint")
--# initialize a new button set on the top monitor
local t = touchpoint.new("top")
--# Add a new button
t:add("To get your adventure properly started", nil, 5, 2, 45, 3, colors.black, colors.black)
t:add("click below for a free start kit", nil, 5, 4, 45, 5, colors.black, colors.black)
t:add("Thermal Kit", nil, 5, 6, 17, 8, colors.blue, colors.lightBlue)
t:add("Thaumic Kit", nil, 19, 6, 31, 8, colors.blue, colors.lightBlue)
t:add("Botania Kit", nil, 33, 6, 45, 8, colors.blue, colors.lightBlue)
t:add(" AE2 Kit ", nil, 5, 11, 17, 13, colors.blue, colors.lightBlue)
t:add(" Miner Kit ", nil, 19, 11, 31, 13, 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, p1 = t:handleEvents(os.pullEvent())
if event == "button_click" then
if p1 == "Thermal Kit" then
commands.exec("give @p 2438 1") --# Redstone Furnace
commands.exec("give @p 2438:1 1") --# Pulverizer
commands.exec("give @p 2440 1") --# Steam Dynamo
commands.exec("give @p 2442:1 1") --# Portable Tank
commands.exec("give @p 4878 1") --# Crescent Hammer
commands.exec("give @p 2308 8") --# Leadstone Fluxduct
commands.exec("give @p 7077:12 1") --# Backpack
elseif p1 == "Thaumic Kit" then
commands.exec("give @p 5056 1") --# Iron Capped Wand
commands.exec("give @p 5078 1") --# Thaumometer
commands.exec("give @p 5077 1") --# Thaumonomicon
commands.exec("give @p 5111:1 1") --# Wood Golem
commands.exec("give @p 5112:4 1") --# Guard Core
commands.exec("give @p 5074 6") --# Air Shard
commands.exec("give @p 5074:1 6") --# Fire Shard
commands.exec("give @p 5074:2 6") --# Water Shard
commands.exec("give @p 5074:3 6") --# Earth Shard
commands.exec("give @p 5074:4 6") --# Ordo Shard
commands.exec("give @p 5074:5 6") --# Entropy Shard
commands.exec("give @p 7077:12 1") --# Backpack
elseif p1 == "AE2" then
commands.exec("give @p 425 1") --# Inscriber
commands.exec("give @p 437 1") --# ME Chest
commands.exec("give @p 4336 1") --# 1k ME Storage Drive
commands.exec("give @p 4348 6") --# Certus Quartz Crystal
commands.exec("give @p 4348:1 6") --# Charge Certus Quartz Crystal
commands.exec("give @p 4348:7 6") --# Fluix Crystal
commands.exec("give @p 4348:13 1") --# Inscriber Calculation Press
commands.exec("give @p 4348:14 1") --# Inscriber Engineering Press
commands.exec("give @p 4348:15 1") --# Inscriber Logic Press
commands.exec("give @p 4348:19 1") --# Inscriber Silicon Press
commands.exec("give @p 4349 6") --# ME Glass Cable
commands.exec("give @p 7077:12 1") --# Backpack
commands.exec("give @p 1715 1") --# Furnace Generator
elseif p1 == "Botania Kit" then
commands.exec("give @p 5164 1") --# Botania Book
commands.exec("give @p 961 1") --# Pure Daisy
commands.exec("give @p 957 10") --# White Flower
commands.exec("give @p 957:2 10") --# Orange Flower
commands.exec("give @p 957:3 10") --# Light Blue Flower
commands.exec("give @p 957:4 10") --# Yellow Flower
commands.exec("give @p 958:8 1") --# Petal Apothecary
commands.exec("give @p 962 1") --# Mana Spreader
commands.exec("give @p 963:2 2") --# Diluted Mana Pool
commands.exec("give @p 5168 1") --# Wand of the Forest
commands.exec("give @p 7077:12 1") --# Backpack
elseif p1 == "Miner Kit" then
commands.exec("give @p 2475 3") --# Dense Iron Ore
commands.exec("give @p 2475:1 3") --# Dense Gold Ore
commands.exec("give @p 2475:2 3") --# Dense Lapis Lazuli
commands.exec("give @p 2475:4 3") --# Dense Emerald Ore
commands.exec("give @p 2475:5 3") --# Dense Redstone Ore
commands.exec("give @p 2475:6 3") --# Dense Coal Ore
commands.exec("give @p 2475:7 3") --# Dense Nether Quartz Ore
commands.exec("give @p 6460:13 1") --# TiC Copper Pickaxe Head
commands.exec("give @p 6463 1") --# TiC Wood Binding
commands.exec("give @p 6458 1") --# TiC Wood Tool Rod
commands.exec("give @p 1930 1") --# TiC Tool Forge
commands.exec("give @p 7077:12 1") --# Backpack
end
t:flash(p1)
--# and do something else
commands.exec("/pex promote @p")
commands.tp("@p", 841, 1035, 156)
end
end