Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Turtle (Merged with Chunk Loader upgrade item: "Cc Turtle Chunk")
- -- Made by StiGMaT - https://discord.gg/MqMF4ucy9R"
- local p = peripheral.wrap("right")
- local pFoundSide = ""
- if not p then
- print("No peripheral on right")
- -- Try to find on the left
- p = peripheral.wrap("left")
- if not p then
- print("No peripheral on left")
- error("Chunk loader peripheral: NOT FOUND!")
- else
- pFoundSide = "left"
- end
- else
- pFoundSide = "right"
- end
- if not p then
- error("Chunk loader peripheral not found.")
- else
- print("Chunk loader found! On " .. pFoundSide .. " side.")
- -- Prompt for password
- write("Enter password: ")
- local password = read("*") -- hides input while typing
- -- Trying to Start Chunk Loader
- local ok, msg = p.enableChunkLoader(password)
- print("EnabledState:", ok, msg)
- -- Debug getStatus
- local status = p.getStatus and p.getStatus() or {}
- print("getStatus:", textutils.serialize(status))
- end
Advertisement
Add Comment
Please, Sign In to add comment