Paste #58915: WILD COMMAND

Date: 2019/10/06 06:41:19 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


wildd:
  type: command
  name: wild
  usage: /wild
  script:
    - if <player.has_flag[wildspawn]>:
      - define ranx <util.random.int[1000].to[3000]>
      - define ranz <util.random.int[1000].to[3000]>
      - define rannx <util.random.int[-1000].to[-3000]>
      - define rannz <util.random.int[-1000].to[-3000]>
      - narrate "<&7>[<&6><&l>O<&1><&l>P<&4><&l>H<&7>] <&c>Finding you a random spot to teleport to..."
      - wait 3
      - cast slow_falling d:5 p:1
      - playsound <player> sound:entity.enderman.teleport pitch:1 
      - playsound <player> sound:block.portal.travel pitch:1
      - random:
        - teleport <location[<def[ranx]> 100 <def[ranz]>]>
        - teleport <location[<def[rannx]> 100 <def[ranz]>]>
        - teleport <location[<def[ranx]> 100 <def[rannz]>]>
        - teleport <location[<def[rannx]> 100 <def[rannz]>]>
      - wait 0.5
      - narrate "<&7>[<&6><&l>O<&1><&l>P<&4><&l>H<&7>] <&c>Teleported :D"
    - else:
      - narrate "<&7>[<&6><&l>O<&1><&l>P<&4><&l>H<&7>] <&4>You have to be at spawn to use this command!"