Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- About: This script is used for tuning ender chests to a certain channel
- local args = {...}
- local scriptName = "tune"
- dofile("constants")
- if #args < 1 then
- print("Usage: " .. scriptName .. " <channel>")
- return
- end
- local success, data = turtle.inspect()
- if not success or data.name ~= BLOCKS.enderChest.name then
- print("Place an ender chest in front of the turtle")
- return
- end
- local enderChest = peripheral.wrap("front")
- if enderChest == nil then
- print("Failed to connect to ender chest")
- return
- end
- enderChest.setColors(unpack(COLOR_CHANNELS[args[1]]))
- print("Ender chest is now tuned to : '" .. args[1] .. "'")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement