INITIAL
This commit is contained in:
13
test.lua
Normal file
13
test.lua
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user