Started by
Logdawg940
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make an entity that summons when the player is below 4 hearts (8 health) and the player has a specific item in their invo. This entity fights off any hostille mobs. It acts sort of like a tamed wolf but it doesn't sit or anything. Please help me try and figure this out.
Use the "when item in inventory tick" trigger for the specific item.
Procedure:
About how to make it hostile, put this block in the mob AI section:
attacks entity <entity>
and replaces <entity> by the entity you want your minion to attack. Add this block again as many as you need different mobs to be targeted. Don't use EntityLiving as the mob will attack everything, including you.
If you want to make it follow you, you should find the block in the "target tasks" tab.
Thank you!
The only flaw with this method is that it'll activate at every tick if you don't heal and if you have summon items left.
I don't know yet how to make a cooldown ;-;
or just try to heal the player in the summon procedure.