Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("bottom")
- Chatbox="bottom"
- sside="top"
- term.clear()
- term.setCursorPos(1,1)
- print("-------------------------\n")
- print(" Chatcontrol\n")
- print("-------------------------\n")
- write("Chatbox = ") print(Chatbox)
- print("Scrap an/aus |yellow\nLicht an/aus |white\nSolar an/aus |purple\n")
- write("Outputs: ")
- print(sside)
- while true do
- event, player, message =os.pullEvent("chat")
- if string.find(message, "Scrap") and string.find(message, "aus") then
- redstone.setBundledOutput(sside, colors.combine(redstone.getBundledOutput(sside),colors.yellow))
- end
- if string.find(message, "Scrap") and string.find(message, "an") then
- redstone.setBundledOutput(sside,colors.subtract(redstone.getBundledOutput(sside),colors.yellow))
- end
- if string.find(message, "Licht") and string.find(message, "an") then
- redstone.setBundledOutput(sside,colors.combine(redstone.getBundledOutput(sside),colors.white))
- end
- if string.find(message, "Licht") and string.find(message, "aus") then
- redstone.setBundledOutput(sside,colors.subtract(redstone.getBundledOutput(sside),colors.white))
- end
- if string.find(message, "Solar") and string.find(message, "aus") then
- redstone.setBundledOutput(sside,colors.combine(redstone.getBundledOutput(sside),colors.purple))
- end
- if string.find(message, "Solar") and string.find(message, "an") then
- redstone.setBundledOutput(sside,colors.subtract(redstone.getBundledOutput(sside),colors.purple))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement