that says "attempt to call nil"
os.loadAPI("button")
m = peripheral.wrap("left")
rednet.open("bottom")
function mainTable()
button.clearTable()
button.heading("Choose a Dimension")
button.setTable("Rayvash", Rayvash3r, 5,15,5,9)
button.setTable("_jream_",_jream_,25,35,5,9)
button.setTable("Burned",BurnedSpaghetti,5,15,11,15)
button.setTable("twilight", Twilight, 25,35,11,15)
button.screen()
end
function mystBook(slot,name)
button.toggleButton(name)
rednet.send(131,tostring(slot))
sleep(5)
button.toggleButton(name)
end
function Burned()
mystBook(3, "BurnedSpaghetti")
end
function Rayvash()
mystBook(2,"Rayvash3r")
end
function _jream_()
mystBook(0,"_jream_")
end
function twilight()
mystBook(1,"Twilight Forest")
end
function mystportal()
mystTable()
getClick()
mainTable()
end
function getClick()
event,side,x,y = os.pullEvent("monitor_touch")
button.checkxy(x,y)
end
while true do
mainTable()
getClick()
end