Paste #28113: Untitled Paste

Date: 2016/01/09 07:40:31 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


ZItemsWorld:
  type: World
  events:
    on player right clicks with ZItemsMagicCompass:
    - if !<player.flag[MagicCompassCooldown]> {
        - if <player.xp.level> >= 1 {
            - experience take level 1
        } else {
            - take ZItemsMagicCompass
        }
        - playsound <player> zombie_unfect
        - wait 2s
        - teleport <player> <player.bed_spawn>
        - flag player MagicCompassCooldown duration:12s
    } else {
      - narrate "The mirror is still cooling down!"
    }
    on player right clicks with ZItemsGrapplingHook:
    - if !<player.flag[GrapplingHookCooldown] &&     <player.location.cursor_on.ignore[i@water|i@lava].distance[<player.location>]> < 15 {
      - flag player GrapplingHookCooldown duration:3s
      - flag player GrapplingHookTarget:<player.location.cursor_on.ignore[i@water|i@lava]>
      - fly <player> controller:<player> origin:<player.location> destination:<player.flag[GrapplingHookTarget]> speed:0.8 rotationthreshold:360
      #Break flight after 3s
      - wait 3s
      - fly cancel <player> controller:<player>
      }