'PortEvents': type: world speed: 1t debug: true events: on port command: - determine passively fulfilled - define arg1 - if li@free|starter|intermediate|advanced !contains %arg1% { - narrate "That world does not exist!" - queue stop } - if _WarpQueue]> { - narrate "You are already waiting to teleport..." - queue stop } - narrate "<&c>Warping in 5s... Please stand still!" - run locally warp id:_WarpQueue def:%arg1% - listen travel type:distance distance:1 script:CancelWarp id:_WarpCancel warp: - ^define counter - ^if { - listen cancel id:_WarpCancel - adjust 'show_boss_bar:0|<&3><&l>Teleporting Now!' - wait 2t - narrate "<&b><&o><&f> has just teleported to the <&b><&o><&f> world." targets: - playeffect effect:cloud qty:100 data:1 - teleport l@0.5,17,0.5,%1% - wait 1s - adjust 'show_boss_bar:200|<&3><&l>Now in the world' - adjust show_boss_bar - queue stop } - ^define barLevel - ^adjust 'show_boss_bar:%barLevel%|<&6>Teleporting in<&co> <&c><&l>%counter%' - ^playeffect effect:cloud qty:100 data:0.07 - ^define counter - ^wait 1s - ^inject locally warp