Quantcast
Channel: MythicCraft
Viewing all articles
Browse latest Browse all 11417

[Condition] TargetHolding

$
0
0
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

Code:
ExampleMob:
  type: Zombie
  display: "Adaptable Zombie"
  Health: 100
  Damage: 5
  Skills:
  - skill{s=swordattack} @trigger...
[Condition] TargetHolding <item>

Viewing all articles
Browse latest Browse all 11417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>