Started by
npcsacha
on
Topic category: Help with Minecraft modding (Java Edition)
Hi! I am creating a mod that adds a lot of entities, and I want to create one that has a huge shield in front of it.
I created my model and added the mob. It parries projectiles when they arrive and looks in the direction of the source.
Now, I want it to cancel sword damage when it is looking at the player (so it can only be hit from the back), but I can't find the procedure block to do it.
Do you know a solution to my problem, please?
Thanks! :)
This is my current procedure :
https://postimg.cc/2bBxknZd
I think this could help you: https://mcreator.net/forum/108716/find-entity-player-looking you only have to set the procedure on the entity tick update instead of player tick update, replace mob entity with player in the last block and reduce the raytrace distance
Thanks ! It's perfect
You're welcome