Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Listen for events from the "crystal_interface" peripheral
- local crystalInterface = peripheral.find("crystal_interface")
- if not crystalInterface then
- print("Crystal interface peripheral not found!")
- return
- end
- -- Function to handle incoming events
- local function handleEvent(eventName, travelerType, displayName, uuid)
- if eventName == "stargate_reconstructing_entity" then
- print("Traveler Type:", travelerType)
- print("Entity Display Name:", displayName)
- print("UUID:", uuid)
- end
- end
- -- Main event loop
- while true do
- local event = {os.pullEvent()}
- handleEvent(unpack(event))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement