Paste #33386: Untitled Paste

Date: 2016/05/11 08:11:18 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 <server.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]
        }
      }
      else if !<server.flag[Entity]> == true {
      - random {
        - flag server Entity duration:20
        - spawn zombie <context.location>
        - spawn pig_zombie <context.location>
        - spawn creeper <context.location>
        - spawn spider <context.location>
        }
      - random {
        - flag server Entity duration:20
        - spawn zombie <context.location>
        - spawn pig_zombie <context.location>
        - spawn creeper <context.location>
        - spawn spider <context.location>
        }
      }
    - DETERMINE CANCELLED