portal_linking: type: world enabled: true events: on entity teleported by portal: - announce - if matches : - define world ]>]> - if matches : - define world _nether]>]> - if !<[world]>: - narrate "<&c>There is no world to teleport you to." t: - determine cancelled - determine TARGET_WORLD:<[world].get[1]> on player enters portal: - flag entered_portal expire:5s on player uses portal: - if matches : - define world ]>]> - announce <[world]> - announce <[world].get[1].spawn_location> - determine <[world].get[1].spawn_location> - if matches : - define world _the_end]>]> - determine ]> - if !<[world]>: - narrate "<&c>There is no world to teleport you to." t: - announce Fired! - determine cancelled