** Update 26.3.2017 v0.82a
Conditions:
activemob %activemob% has immunitytable
- Test if activemob has immunitytable enabled
Effects:
set damage of activemob %activemob% to %number%
- Change the attackdamage
set knockbackresist of activemob %activemob% to %number%
- Change Knockback resist
set armor of activemob %activemob% to %number%
- Change armor stats (only >1.9)
set attackspeed of activemob %activemob% to %number%
- Change attackspeed (only >1.9)
set followrange of activemob %activemob% to %number%
- Change follow range
set speed of activemob %activemob% to %number%
- Change movement speed
trigger %string% for activemob %activemob%
trigger %string% for activemob %activemob% with triggerentity %entity%
- Trigger activemob for trigger defined in %string%
- Valid triggers are: DEFAULT, ATTACK, BOW_HIT, BLOCK, COMBAT, CROUCH, UNCROUCH, DAMAGED, DROPCOMBAT, DEATH, ENTERCOMBAT, EXPLODE, INTERACT, KILL, KILLPLAYER, PLAYERDEATH, SHOOT, SIGNAL, SPAWN, SPLASH_POTION, SWING, TARGETCHANGE, TELEPORT, TIMER, USE, READY
Example:
code_language.skript:
skript part:
on damage of entity:
victim instanceof activemob
event-entity is arrow
set {_am} to activemob of victim
trigger "bow_hit" for activemob {_am} with triggerentity attacker
Mob.yml:
Monkey:
Type: zombie
Display: "MythicMobs Monkey"
Health: 40
Armor: 10
Skills:
- message{msg="Ouch! Stop shooting arrows at me!"} @trigger ~onBowHit 1