Paste #33388: Untitled Paste

Date: 2016/05/11 13:00:35 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


DispenserScript:
  type: world
  debug: true
  events:
    on block dispenses item:
    - if <inventory.contains[stone]> {
      - announce "bla5"
      }
    - if <server.has_flag[Entity]> == true {
      - random {
        - DETERMINE i@lingering_potion[potion_effects=li@POISON,false,false]
        - DETERMINE i@lingering_potion[potion_effects=li@INSTANT_DAMAGE,true,false]
        - DETERMINE i@lingering_potion[potion_effects=li@INSTANT_DAMAGE,false,false]
        - DETERMINE i@lingering_potion[potion_effects=li@POISON,true,false]
        - DETERMINE i@lingering_potion[potion_effects=li@SLOWNESS,false,true]
        - DETERMINE i@lingering_potion[potion_effects=li@POISON,false,true]
        - DETERMINE i@lingering_potion[potion_effects=li@SLOWNESS,false,false]
        - DETERMINE i@arrow
        }
      }
      else if <server.has_flag[Entity]> == false {
      - random {
        - flag server Entity duration:20
        - spawn zombie <context.location> save:entity8
        - spawn pig_zombie <context.location> save:entity7
        - spawn creeper <context.location> save:entity6
        - spawn spider <context.location> save:entity5
        }
      - random {
        - flag server Entity duration:20
        - spawn zombie <context.location> save:entity1
        - spawn pig_zombie <context.location> save:entity2
        - spawn creeper <context.location> save:entity3
        - spawn spider <context.location> save:entity4
        }
      }
    - DETERMINE CANCELLED