Paste #14325: Untitled Paste

Date: 2015/03/07 18:46:26 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


MyWorldGuard:
  type: world
  debug: false
  events:
    on player teleports:
    - playsound <player.location> effect:portal_travel volume:2.0 pitch:2

    on player breaks block in msborder:
    - if <player.has_flag[MSFlowerFetchCount]> && <context.material> == m@blue_orchid && <player.location.is_within[<cu@mshill>]> {
      - ^determine i@MistyShoresBlueOrchid }
      else if !<player.is_op> {
      - ^determine cancelled }

    on player places block in msborder:
    - if !<player.is_op> {
      - ^determine cancelled }

    on player changes sign in msborder:
    - if !<player.is_op> {
      - ^determine cancelled }

    on player places hanging:
    - if <context.location.is_within[cu@msborder]> {
      - ^determine cancelled }

    # on player opens inventory:
    # - if <context.inventory.location.is_within[cu@msborder]> {
      # - ^determine }

    # on potion splash:
    # - determine

    on block spreads:
    - if <context.location.is_within[cu@msborder]> {
      - announce "<context.material> spread in Misty Shores!" }

    on liquid spreads:
    - if <context.location.is_within[cu@msborder]> {
      - determine cancelled }

    on block burns:
    - if <context.location.is_within[cu@msborder]> {
      - determine cancelled }

    on entity changes block in msborder:
    - determine cancelled

    on entity explodes:
    - if <context.entity.location.is_within[cu@msborder]> {
      - determine cancelled }

    on entity spawns in mistyshores:
    - if <context.entity.entity_type> == MUSHROOM_COW || <context.entity.entity_type> == HORSE {
      - determine cancelled }
    - if !<global.has_flag[MSZombieHorde]> && !<context.entity.location.is_within[<cu@mschurchcrypt>]> && !<context.entity.location.is_within[<cu@mslowercrypt>]> {
      - if <context.entity.entity_type> == ZOMBIE || <context.entity.entity_type> == CREEPER || <context.entity.entity_type> == SKELETON || <context.entity.entity_type> == ENDERMAN || <context.entity.entity_type> == SPIDER || <context.entity.entity_type> == WITCH {
        - determine cancelled }
      }