nick = "_Ziper_" local modem = peripheral.find("modem") modem.open(19276) a = false b = false while true do local event, username, message, uuid, isHidden = os.pullEvent("chat") local words = {} for word in string.gmatch(message, "%S+") do table.insert(words, word) end if username == "_Ziper_" or username == nick then if words[1] == "go" then print(message) if a == false then print("T") redstone.setOutput("top", true) a = true elseif a == true then print("F") redstone.setOutput("top", false) a = false end elseif words[1] == "st" then redstone.setOutput("front", true) redstone.setOutput("top", false) a = false sleep(5) redstone.setOutput("front", false) elseif words[1] == "dostyp" and username ~= nick then nick = tostring(words[2]) end elseif words[1] == "lift" then blocks = mwords[2] modem.transmit(19276, 19276, blocks) end end end