I'm thinking it would be great if there was a way to execute a skill if the targeter (trigger or target, or playersinrange etc) is holding a specific item, or one of an array of items.
eg. If the player has a diaomd_sword,iron_sword,Stone_sword,wooden_sword then the mob can execute a melee skill, if the player has a bow, then a ranged skill is triggered etc
[Condition] TargetHolding <item>
eg. If the player has a diaomd_sword,iron_sword,Stone_sword,wooden_sword then the mob can execute a melee skill, if the player has a bow, then a ranged skill is triggered etc
Code:
ExampleMob: type: Zombie display: "Adaptable Zombie" Health: 100 Damage: 5 Skills: - skill{s=swordattack} @trigger...