Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This is my code for Auto-Spawner I am building
- --verison of spawner
- ----This is the function to center text
- local w, h = term.getSize()
- --function to centertext
- local function cenText(text,y)
- math.floor(w-#text/2)
- term.write(text)
- end
- local function setup()
- term.clear()
- term.setCursorPos(1,1)
- end
- local function verison()
- term.setTextColor(colors.yellow)
- cenText("Auto-Spawner Verison 1.0",1)
- end
- menuOptions = {
- [1]= {text = "Zombie"},
- [2]= {text = "Blaze"},
- [3]= {text = "Skelton"},
- [4]= {text = "Sheep"},
- [5]= {text = "Reset"},
- }
- local function mainMenu()
- setup()
- verison()
- end
- mainMenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement