Started by
Skittlq
on
Topic category: Help with Minecraft modding (Java Edition)
I am currently making a mod, one of the items is an armour set that has the ability to knockback entities, now I got all the cooldowns and other stuff, the only thing I'm stuck on is how I can knockback the entity.
Here is my code if you want to suggest anything.
Edited by Skittlq on Sun, 08/14/2022 - 04:56
try using the general procedure trigger "When Entity Attacked", use an if condition to see if the source entity is wearing the armor, and then use the procedure in this thread: https://mcreator.net/forum/72800/how-can-i-increase-knockback-sword
I tried implementing the procedure by Riverr from the link you sent me and it didn't move the entities at all.
Might require a bit of math to do.
I think I see the issue here. right above the "for each entity as entity iterator", you have "is event/target entity (sub)type of Monster entity" the procedure probably isn't working because it is looking to see if a mob is wearing the armor instead of the player.