Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- replace these with whatever the peripheral name is. It can vary
- tank = peripheral.wrap("ender_tank_0")
- chest = peripheral.wrap("ender_chest_0")
- ender = nil
- while true do
- term.clear()
- term.setTextColor(colors.yellow)
- term.setCursorPos(1,1)
- print("Ender Storage Test System")
- print("1 - Modify ender chest color")
- print("2 - Modify ender tank color")
- print(" ")
- print("Please make a selection:")
- input = read()
- if input == "1" then
- ender = chest
- elseif input == "2" then
- ender = tank
- else
- term.setTextColor(colors.red)
- print("Invalid Selection! Please try again.")
- sleep(2)
- end
- if ender ~= nil then
- term.setTextColor(colors.purple)
- term.clear()
- term.setCursorPos(1,1)
- print("Please enter the value for the first color.")
- print("We will not validate these values!")
- print("Please use numberic values only")
- col1 = read()
- term.clear()
- term.setCursorPos(1,1)
- print("Please enter the value for the second color.")
- print("We will not validate these values!")
- print("Please use numberic values only")
- col2 = read()
- term.clear()
- term.setCursorPos(1,1)
- print("Please enter the value for the third color.")
- print("We will not validate these values!")
- print("Please use numberic values only")
- col3 = read()
- term.clear()
- term.setCursorPos(1,1)
- print("Setting color band...")
- ender.setColors(tonumber(col1), tonumber(col2), tonumber(col3) )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement