Custom Command


Author: danton1983
Created: 2013-05-13T18:26:26-0400
Edited: 2013-11-29T17:43:40-0500
Denizen Version: 0.93
Views: 60
Downloads: 795
Likes: 3


WGET
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  




Comments
No one has posted a comment! Post one below: