Advertisement
samuelask

Untitled

Jan 19th, 2025 (edited)
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. local term = require("term")
  2. local component = require("component")
  3. local modem = component.modem
  4. local reds = component.redstone
  5. local sg = component.stargate
  6. local zpm = component.zpmhub
  7. local sides = require("sides")
  8. local colors = require("colors")
  9. local port = 1234
  10. local asd = 1
  11. local IDC = "1337"
  12. local event = require("event")
  13. local os = require("os")
  14. local computer = require("computer")
  15. local serialization = require("serialization")
  16. local currentSymbolCount = 0 -- Tracks the number of successfully engaged symbols
  17. -- Debugging listener setup for stargate_incoming_wormhole
  18. print("Starting listener setup...")
  19.  
  20. local function onIncomingWormhole(address, caller, dialedAddressSize)
  21. print("Event Triggered: stargate_incoming_wormhole")
  22. print("Address: " .. tostring(address))
  23. print("Caller: " .. tostring(caller))
  24. print("Dialed Address Size: " .. tostring(dialedAddressSize))
  25. end
  26.  
  27. wormholeEventID = event.listen("stargate_incoming_wormhole", onIncomingWormhole)
  28.  
  29. if wormholeEventID then
  30. print("Wormhole event listener successfully registered!")
  31. else
  32. print("Failed to register wormhole event listener.")
  33. end
  34.  
  35. -- Keep program running to capture events
  36. while true do
  37. os.sleep(1)
  38. end
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement