TargetConditions::
  - onground{} true
  Skills:
  - damage{a=4}
  - skill{s=toro_minotaur_stomp_knockback}

trex-autoattack:
  TargetConditions:
  - distance{d=1to7} true
  - lineofsight true
  Skills:
  - state{s=attack;li=0;lo=0} @self
  - delay 10
  - damage{a="<caster.score.growing_fury> * 1"} @EntitiesInCone{angle=45;range=6;rotation=0}
  - effect:sound{s=entity.fox.bite;v=2;p=0;} @EIR{r=20}
  - effect:sound{s=entity.generic.hurt;v=1;p=1;} @EntitiesInCone{angle=45;range=8;rotation=0}
  - throw{velocity=5;velocityY=5} @EntitiesInCone{angle=45;range=8;rotation=0}
  - effect:particles{p=dripLava;vs=0.5;hs=0.5;a=50;s=0;} @EntitiesInCone{angle=45;range=8;rotation=0}
  - effect:particlering{p=sweepAttack;a=1;vs=0.5;hs=0.5;s=0;y=-0.7;points=20;radius=0.1} @EntitiesInCone{angle=45;range=8;rotation=0}
 
oondasta-growingfury:
  Skills:
  - modifytargetscore{o=growing_fury;a=add;v=1} @self
  - message{m="&cOondasta's Fury keeps growing!"} @PIR{r=20}
  - message{m="&cOondasta's Fury keeps growing!"} @Self
  - effect:sound{s=entity.ravager.roar;v=2;p=0;repeat=3;repeatInterval=5} @EIR{r=20}
  - effect:particlering{p=damageIndicator;a=1;vs=0.5;hs=0.5;s=0;y=0.7;points=20;radius=1} @Self
  - delay 2
  - effect:sound{s=entity.generic.extinguish_fire;v=1;p=0} @self
  - effect:particlering{p=damageIndicator;a=1;vs=0.5;hs=0.5;s=0;y=0.7;points=20;radius=2} @Self
  - delay 2
  - effect:sound{s=entity.generic.extinguish_fire;v=1;p=0} @self
  - effect:particlering{p=damageIndicator;a=1;vs=0.5;hs=0.5;s=0;y=0.7;points=20;radius=3} @Self
  - delay 2
  - effect:sound{s=entity.generic.extinguish_fire;v=1;p=0} @self
  - effect:particlering{p=damageIndicator;a=1;vs=0.5;hs=0.5;s=0;y=0.7;points=20;radius=4} @Self
 
oondasta-alphamale:
  Conditions:
  - damageamount{amount=>25} true
#TriggerConditions:
#- haspermission{p=permission.class.tank} true
  Skills:
  - threat{amount=10000} @trigger
 
oondasta-crush:
  Conditions:
  - Incombat true
  TargetConditions:
  - lineofsight true
  Skills:
  - effect:sound{s=entity.ender_dragon.growl;v=2;p=0;repeat=3;repeatInterval=5} @EIR{r=20}
  - effect:particlering{p=damageIndicator;a=1;vs=0.5;hs=0.5;s=0;y=0.7;points=20;radius=1} @Self
  - delay 2
  - effect:sound{s=entity.generic.extinguish_fire;v=1;p=0} @self
  - effect:particlering{p=damageIndicator;a=1;vs=0.5;hs=0.5;s=0;y=0.7;points=20;radius=2} @Self
  - delay 2
  - effect:sound{s=entity.generic.extinguish_fire;v=1;p=0} @self
  - effect:particlering{p=damageIndicator;a=1;vs=0.5;hs=0.5;s=0;y=0.7;points=20;radius=3} @Self
  - delay 2
  - effect:sound{s=entity.generic.extinguish_fire;v=1;p=0} @self
  - effect:particlering{p=damageIndicator;a=1;vs=0.5;hs=0.5;s=0;y=0.7;points=20;radius=4} @Self
  - state{s=crush;li=0;lo=0} @self
  - delay 10
  - damage{a="<caster.score.growing_fury> * 10"} @EntitiesInCone{angle=45;range=6;rotation=0}
  - mountmodel{mode=force_walking} @EntitiesInCone{angle=45;range=8;rotation=0;ignore=players}
  - pull{v=10;to=true} @EntitiesInCone{angle=45;range=7;rotation=0}
  - effect:sound{s=entity.fox.bite;v=2;p=0;} @EIR{r=20}
  - effect:sound{s=block.anvil.land;v=1;p=1;} @EIR{r=20}
  - effect:particlering{p=driplava;a=50;vs=0.1;hs=0.1;s=0;y=0.7;points=20;radius=1.5} @EntitiesInCone{angle=45;range=8;rotation=0}
  - effect:particlering{p=sweepAttack;a=1;vs=0.5;hs=0.5;s=0;y=-0.7;points=20;radius=0.1} @EntitiesInCone{angle=45;range=8;rotation=0}
  - damagearmor{a=all;d=20} @EntitiesInCone{angle=45;range=8;rotation=0} 0.5
  - potion{t=WEAKNESS;d=1200;l=3} @EntitiesInCone{angle=45;range=8;rotation=0}
  - delay 50
  - ejectpassenger @EIR{r=5;ignore=players}
  - dismountmodel @EIR{r=5;ignore=players}
 
oondasta-piercingroar:
  Conditions:
  - Incombat true
  TargetConditions:
  - lineofsight true
  Skills:
  - look{headOnly=false;immediately=true} @Target
  - potion{type=SLOW;duration=40;level=250;} @self
  - stun{d=40;f=false} @self
  - state{s=warning;lo=3} @self
  - skill{s=oondasta-piercingroar_particle;delay=20} @Target
oondasta-piercingroar_particle:
  Skills:
  - projectile{onTick=oondasta-piercingroar-Tick;onHit=oondasta-piercingroar-Hit;v=10;i=1;hR=2;vR=2;hnp=true;mr=20;sE=false;syo=1.5;sfo=3;tyo=2;syo=3;repeat=3;repeatInterval=5} @Forward{f=20;y=0.0}
  - projectile{onTick=oondasta-piercingroarside-Tick;onHit=oondasta-piercingroar-Hit;v=10;i=1;hR=2;vR=2;hnp=true;mr=20;sE=false;syo=1.5;hO=30;tyo=2;syo=3;sfo=3;repeat=3;repeatInterval=5} @Forward{f=20;y=0.0}
  - projectile{onTick=oondasta-piercingroarside-Tick;onHit=oondasta-piercingroar-Hit;v=10;i=3;hR=2;vR=2;hnp=true;mr=20;sE=false;syo=1.5;hO=-30;tyo=2;syo=3;sfo=3;repeat=3;repeatInterval=5} @Forward{f=20;y=0.0}
  - effect:sound{s=entity.ender_dragon.growl;v=2;p=2;repeat=3;repeatInterval=5} @PIR{r=50}
oondasta-piercingroar-Tick:
  Skills:
  - effect:particles{p=angryvillager;amount=5;speed=0;hS=1;vS=0.1;s=0} @origin
oondasta-piercingroarside-Tick:
  Skills:
  - effect:particles{p=angryvillager;amount=5;speed=0;hS=0.5;vS=0.1;s=0} @origin
oondasta-piercingroar-Hit:
  Skills:
  - throw{velocity=20;velocityY=1}
  - effect:smokeswirl{duration=100;interval=20;a=100}
  - damage{a="<caster.score.growing_fury> * 5"}
  - stun{d=100;f=false} @self
 
oondasta-frillblast:
  Conditions:
  - Incombat true
  Skills:
  - potion{type=SLOW;duration=40;level=250;} @self
  - stun{d=20;f=false} @self
  - state{s=warning;lo=3} @self
  - delay 20
  - effect:sound{s=entity.ender_dragon.growl;v=2;p=2;repeat=3;repeatInterval=5} @PIR{r=20}
  - projectile{onTick=oondasta-frillblast-Tick;onHit=oondasta-frillblast-Hit;v=20;i=1;hR=1;vR=1;mr=30;md=100;hnp=false;sso=2;tyo=5;syo=3;repeat=1;repeatInterval=5} @Forward{f=20;y=0.0}
  - projectile{onTick=oondasta-frillblast-Tick;onHit=oondasta-frillblast-Hit;v=20;i=1;hR=1;vR=1;mr=30;md=100;hnp=false;sso=-2;tyo=5;syo=3;repeat=1;repeatInterval=5} @Forward{f=20;y=0.0}
  - effect:sound{s=item.trident.thunder;v=1;p=2} @EIR{r=20}
oondasta-frillblast-Tick:
  Skills:
  - effect:particles{p=magiccrit;amount=30;speed=0;hS=0;vS=0;y=0} @origin
  - effect:particles{p=nautilus;amount=10;speed=0;hS=0;vS=0} @origin
  - effect:sound{s=entity.blaze.burn;v=1;p=2} @PIR{r=20}
  - effect:particlesphere{particle=soul;amount=50;radius=0.5} @origin
  - effect:sound{s=entity.bee.hurt;v=1;p=0} @EIR{r=20}
  - effect:particles{p=reddust;amount=20;speed=0;hS=0.1;vS=0.1;i=1;c=#FFFFFF} @origin
oondasta-frillblast-Hit:
  Skills:
  - effect:firework{t=4;d=3;f=true;tr=true} @PIR{r=2}
  - effect:flames @PIR{r=2}
  - effect:smokeswirl{duration=10;interval=10;a=100} @PIR{r=2}
  - effect:particles{p=angryVillager;amount=20;speed=0;hS=0.1;vS=0.1;i=1} @target
  - effect:sound{s=entity.firework_rocket.blast;v=1;p=1} @PIR{r=20}
  - consume{d="<caster.score.growing_fury> * 5";h="<caster.score.growing_fury> * 2";ia=false}
 
trex-death:
  Skills:
  - effect:sound{s=eot.stone.rock.impact;v=1;p=0;} @self
  - effect:sound{s=eot.stone.rock.movingrock;v=1;p=0.4;} @self
  - effect:sound{s=eot.action.melee.punch;v=1;p=0;} @self
  - playanimation{id=0} @self
  - effect:particlesphere{particle=blockcrack;m=coarse_dirt;amount=100;radius=0.5}} @Ring{radius=2;points=8}
  - basedamage{m=5.0} @EIR{ignore=players;r=2;ignore=players}
  - throw{velocity=1;velocityY=2} @EIR{;r=2}
  - delay 3
  - effect:particlesphere{particle=blockcrack;m=coarse_dirt;amount=100;radius=0.5} @Ring{radius=3;points=10}
  - basedamage{m=5.0} @EIR{ignore=players;r=3;ignore=players}
  - potion{type=WEAKNESS;duration=60;lvl=250} @EIR{ignore=players;r=3}
  - throw{velocity=1;velocityY=2} @EIR{;r=3}
  - delay 5
  - effect:particlesphere{particle=blockcrack;m=coarse_dirt;amount=100;radius=0.5} @Ring{radius=4;points=12}
  - basedamage{m=5.0} @EIR{ignore=players;r=4;ignore=players}
  - potion{type=WEAKNESS;duration=60;lvl=250} @EIR{ignore=players;r=4}
  - throw{velocity=1;velocityY=2} @EIR{r=4}
 
oondasta-spiritcannon:
  Skills:
  - setAI{ai=false} @self
  - projectile{onTick=oondasta-spiritcannon-Tick;onHit=oondasta-spiritcannon-Hit;v=20;i=1;hR=1;vR=1;mr=30;md=100;hnp=true;sso=1;syo=1;repeat=1;repeatInterval=5} @TargetLocation
  - effect:sound{s=item.trident.thunder;v=1;p=2} @EIR{r=20}
  - effect:sound{s=item.trident.thunder;v=1;p=2} @Self
  - setAI{ai=true;delay=20} @self
oondasta-spiritcannon-Tick:
  Skills:
  - effect:particles{p=magiccrit;amount=30;speed=0;hS=0;vS=0;y=0} @origin
  - effect:particles{p=nautilus;amount=10;speed=0;hS=0;vS=0} @origin
  - effect:sound{s=entity.blaze.burn;v=1;p=2} @PIR{r=20}
  - effect:particlesphere{particle=soul;amount=50;radius=0.5} @origin
  - effect:sound{s=entity.bee.hurt;v=1;p=0} @EIR{r=20}
  - effect:particles{p=reddust;amount=20;speed=0;hS=0.1;vS=0.1;i=1;c=#FFFFFF} @origin
oondasta-spiritcannon-Hit:
  Skills:
  - effect:firework{t=4;d=3;f=true;tr=true} @PIR{r=2}
  - effect:flames @PIR{r=2}
  - effect:smokeswirl{duration=10;interval=10;a=100} @PIR{r=2}
  - effect:particles{p=angryVillager;amount=20;speed=0;hS=0.1;vS=0.1;i=1} @target
  - effect:sound{s=entity.firework_rocket.blast;v=1;p=1} @PIR{r=20}
  - consume{d="10";h="5";ia=false}
 
 
oondasta-spiritcannonleft:
  Skills:
  - projectile{onTick=oondasta-spiritcannon-Tick2;onHit=oondasta-spiritcannon-Hit2;v=20;i=1;hR=1;vR=1;mr=30;md=100;hnp=true;sso=1;syo=1;repeat=1;repeatInterval=5} @TargetLocation
  - projectile{onTick=oondasta-spiritcannon-Tick2;onHit=oondasta-spiritcannon-Hit2;v=20;i=1;hR=1;vR=1;mr=30;md=100;hnp=true;sso=-1;syo=1;repeat=1;repeatInterval=5} @TargetLocation
  - effect:sound{s=item.trident.thunder;v=1;p=2} @EIR{r=20}
  - effect:sound{s=item.trident.thunder;v=1;p=2} @Self
oondasta-spiritcannon-Tick2:
  Skills:
  - effect:particles{p=magiccrit;amount=30;speed=0;hS=0;vS=0;y=0} @origin
  - effect:particles{p=nautilus;amount=10;speed=0;hS=0;vS=0} @origin
  - effect:sound{s=entity.blaze.burn;v=1;p=2} @PIR{r=20}
  - effect:particlesphere{particle=soul;amount=50;radius=0.5} @origin
  - effect:sound{s=entity.bee.hurt;v=1;p=0} @EIR{r=20}
  - effect:particles{p=reddust;amount=20;speed=0;hS=0.1;vS=0.1;i=1;c=#FFFFFF} @origin
oondasta-spiritcannon-Hit2:
  Skills:
  - effect:firework{t=4;d=3;f=true;tr=true} @PIR{r=2}
  - effect:flames @PIR{r=2}
  - effect:smokeswirl{duration=10;interval=10;a=100} @PIR{r=2}
  - effect:particles{p=angryVillager;amount=20;speed=0;hS=0.1;vS=0.1;i=1} @target
  - effect:sound{s=entity.firework_rocket.blast;v=1;p=1} @PIR{r=20}
  - consume{d="7";h="3";ia=false}
 
oondasta_pet-spiritcannon:
  Cooldown: 25
  Skills:
  - message{m="&ePet uses&c Spirit Blast&e!"} @owner
  - state{s=warning;lo=3} @self
  - setAI{ai=false} @self
  - delay 10
  - projectile{onTick=oondasta_pet-spiritcannon-Tick;onHit=oondasta_pet-spiritcannon-Hit;v=20;i=1;hR=1;vR=1;mr=30;md=100;hnp=true;hp=false;sso=1;syo=1;repeat=1;repeatInterval=5} @Forward{y=1.5}
  - projectile{onTick=oondasta_pet-spiritcannon-Tick;onHit=oondasta_pet-spiritcannon-Hit;v=20;i=1;hR=1;vR=1;mr=30;md=100;hnp=true;hp=false;sso=-1;syo=1;repeat=1;repeatInterval=5} @Forward{y=1.5}
  - effect:sound{s=item.trident.thunder;v=1;p=2} @EIR{r=20}
  - effect:sound{s=item.trident.thunder;v=1;p=2} @Owner
  - setAI{ai=true;delay=50} @self
oondasta_pet-spiritcannon-Tick:
  Skills:
  - effect:particles{p=magiccrit;amount=10;speed=0;hS=0;vS=0;y=0} @origin
  - effect:particles{p=nautilus;amount=5;speed=0;hS=0;vS=0} @origin
  - effect:sound{s=entity.blaze.burn;v=1;p=2} @PIR{r=20}
  - effect:particlesphere{particle=soul;amount=10;radius=0.5} @origin
  - effect:sound{s=entity.bee.hurt;v=1;p=0} @EIR{r=20}
  - effect:particles{p=reddust;amount=10;speed=0;hS=0.1;vS=0.1;i=1;c=#FFFFFF} @origin
oondasta_pet-spiritcannon-Hit:
  Skills:
  - effect:firework{t=4;d=3;f=true;tr=true} @PIR{r=2}
  - effect:flames @PIR{r=2}
  - effect:smokeswirl{duration=10;interval=10;a=100} @PIR{r=2}
  - effect:particles{p=angryVillager;amount=20;speed=0;hS=0.1;vS=0.1;i=1} @target
  - effect:sound{s=entity.firework_rocket.blast;v=1;p=1} @PIR{r=20}
  - consume{d="100";h="100";ia=true}
  - basedamage{m=2.0}
 
oondasta_pet-piercingroar:
  Cooldown: 10
  Skills:
  - message{m="&ePet uses&c Piercing Roar&e!"} @owner
  - state{s=warning;lo=3} @self
  - setAI{ai=false} @self
  - delay 10
  - projectile{onTick=oondasta_pet-piercingroar-Tick;onHit=oondasta_pet-piercingroar-Hit;v=10;i=1;hR=2;vR=2;hnp=true;hp=false;mr=5;sE=false;syo=0.5;sfo=2;tyo=2;repeat=3;repeatInterval=5} @Forward{f=20;y=0.0}
  - projectile{onTick=oondasta_pet-piercingroarside-Tick;onHit=oondasta_pet-piercingroar-Hit;v=10;i=1;hR=2;vR=2;hnp=true;hp=false;mr=5;sE=false;syo=0.5;hO=30;tyo=2;sfo=2;repeat=3;repeatInterval=5} @Forward{f=20;y=1.0}
  - projectile{onTick=oondasta_pet-piercingroarside-Tick;onHit=oondasta_pet-piercingroar-Hit;v=10;i=3;hR=2;vR=2;hnp=true;hp=false;mr=5;sE=false;syo=0.5;hO=-30;tyo=2;sfo=2;repeat=3;repeatInterval=5} @Forward{f=20;y=1.0}
  - effect:sound{s=entity.ender_dragon.growl;v=2;p=2;repeat=3;repeatInterval=5} @PIR{r=50}
  - setAI{ai=true;delay=50} @self
oondasta_pet-piercingroar-Tick:
  Skills:
  - effect:particles{p=angryvillager;amount=2;speed=0;hS=1;vS=0.1;s=0} @origin
oondasta_pet-piercingroarside-Tick:
  Skills:
  - effect:particles{p=angryvillager;amount=2;speed=0;hS=0.5;vS=0.1;s=0} @origin
oondasta_pet-piercingroar-Hit:
  Skills:
  - throw{velocity=20;velocityY=1}
  - effect:smokeswirl{duration=100;interval=20;a=100}
  - basedamage{m=0.3}