Files
StargateControl/test.lua
2025-12-28 21:15:45 -05:00

13 lines
514 B
Lua

shell.run("clear")
local interface = peripheral.find("basic_interface") or peripheral.find("crystal_interface") or peripheral.find("advanced_crystal_interface")
interface.openIris()
while true do
local _, _, address = os.pullEvent("stargate_incoming_wormhole")
interface.closeIris()
print("Incoming connection from " .. interface.addressToString(address))
local _, _, _, name, _ = os.pullEvent(stargate_reconstructing_entity)
print(name .. " got squished")
interface.disconnectStargate()
interface.openIris()
end