Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local integrator = peripheral.find("colonyIntegrator")
- local box = peripheral.find("chatBox") -- check for the chatbox
- redstone.setOutput("bottom", true)
- if integrator.isInColony() then
- print("Block is inside a colony!")
- else
- print("Not in a colony!")
- end
- while true do
- --if integrator.isUnderAttack() == true then
- --redstone.setOutput("bottom", false)
- --print("under attack")
- --end
- --try to figure out what is sending the under attack message
- local event, username, message, uuid, isHidden = os.pullEvent("chat")
- print("The 'chat' event was fired with the username " .. username .. " and the message " .. message)
- --if(param2 == "totem") then -- param2 is the message and param1 is the player's name
- sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement