Skills:
  - Aura{auraName=mexbot_amphibian_animation-Aura;onTick=mexbot_amphibian_animation-Tick;interval=2;d=916000000} @self
  
mexbot_amphibian_animation-Tick:
  Conditions:
  - blocktype WATER castinstead mexbot_amphibian_animation_swim-Tick
  - hastag{t=ground} false
  - hastag{t=swim} true
  Skills:
  - addtag{t=ground} @self
  - removetag{t=swim} @self
  - defaultstate{t=idle;s=idle} @self
  - defaultstate{t=walk;s=walk} @self

mexbot_amphibian_animation_swim-Tick:
  Conditions:
  - hastag{t=swim} false
  Skills:
  - removetag{t=ground} @self
  - addtag{t=swim} @self
  - defaultstate{t=idle;s=idle_inwater} @self
  - defaultstate{t=walk;s=walk_inwater} @self

mexbot_pet-posture-passive:
  Skills:
  - message{m=&ePet will follow its master and ignore attacks on itself.} @owner
  - setstance{s=passive} @self
  - runaitargetselector{target=clear}
  
mexbot_pet-posture-defensive:
  Skills:
  - message{m=&ePet will attack any mob that attacks its master.} @owner
  - setstance{s=defensive} @self
  - runaitargetselector{target=clear}
  - runaitargetselector{target=ownerattacker}
  - runaitargetselector{target=attacker}
  
mexbot_pet-posture-assist:
  Skills:
  - message{m=&ePet will attack its master's target.} @owner
  - setstance{s=defensive} @self
  - runaitargetselector{target=clear}
  - runaitargetselector{target=ownerhurttarget}
  
mexbot_pet-order-move:
  Skills:
  - message{m=&ePet moves towards direction.} @owner
  - leap{velocity=200} @ownertarget