on block dispenses item: - if !]||false> { - if contains { - if ! { - playsound sound:ENTITY_ENDERDRAGON_GROWL pitch:-100 - ^spawn skeleton save:DungeonBoss - ^flag server "DungeonSpawns:|:" - ^health 30 - ^heal - ^adjust "custom_name:DungeonBoss" - flag server dungeonboss duration:5m - DETERMINE CANCELLED } } - if contains { - if ! { - playsound sound:ENTITY_LIGHTNING_THUNDER pitch:-100 - ^spawn skeleton save:DungeonGuardian - ^flag server "DungeonSpawns:|:" - ^health 30 - ^heal - ^adjust "custom_name:DungeonGuardian" - flag server DungeonGuardian duration:1m - DETERMINE CANCELLED } } - if contains { - if ! { - playsound sound:ENTITY_LIGHTNING_IMPACT pitch:-100 - ^spawn skeleton save:DungeonGhost - ^flag server "DungeonSpawns:|:" - ^health 30 - ^heal - ^adjust "custom_name:DungeonGhost" - flag server DungeonGhost duration:1m - DETERMINE CANCELLED } } - if contains { - if == true { - if == false { - 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@SLOWNESS,false,true] - DETERMINE i@AncientDungeonsArrow } - DETERMINE CANCELLED - flag server LaggOFix duration:20 } } else if == false { - random { - spawn zombie - spawn pig_zombie - spawn creeper - spawn spider - DETERMINE CANCELLED } - random { - flag server Entity duration:5m - spawn zombie - spawn pig_zombie - spawn spider - DETERMINE CANCELLED } - DETERMINE CANCELLED } } } - DETERMINE CANCELLED }