Description: In this script I added an effect script to run, I added a check for which world their in and a delay so players don't spam the command. I hope you all enjoy!
Feel free to play around with the requirements for what you need it for.
Ingame simply do /vip command
Log:
Updated for version 0.93
'VIPNow':
type: world
events:
on vip command:
- ^if !<flag.p:VIPCooldown>
&& <player.location.world> == World run VIP
else if <player.location.world> != World run NotInWorld
else queue clear
- determine passively fulfilled
'VIP':
type: task
script:
- ^flag VIPCooldown duration:10
- ^narrate "<&c><&l>Going to VIP area"
- inject 'script:TPEffect'
- ^random 2
- teleport location:41,64,-49,World
- teleport location:41,64,-35,World
'NotInWorld':
type: task
script:
- narrate "<&c>You need to be at World to use this command."
'TPEffect':
type: task
script:
- ^playsound location:<player.location> sound:Breath volume:1 pitch:1
- ^cast blindness duration:2 power:1