View difference between Paste ID: svrWKbdP and Sg6igrxZ
SHOW: | | - or go back to the newest paste.
1
print("Lockdown Enabled")
2
-- Listen for events from the "crystal_interface" peripheral
3
local crystalInterface = peripheral.find("crystal_interface")
4
if not crystalInterface then
5
    print("Crystal interface peripheral not found!")
6
    return
7
end
8-
-- Function to handle incoming events
8+
9-
local function handleEvent(eventName, travelerType, displayName, uuid)
9+
10-
    if eventName == "stargate_reconstructing_entity" then
10+
11-
        print("Traveler Type:", travelerType)
11+
    crystalInterface.disconnectStargate()
12-
        print("Entity Display Name:", displayName)
12+