Started by
Withie The Cryptid
on
Topic category: Help with Minecraft modding (Java Edition)
So, I'm making a sort of tank mob that will shoot 3 arrows from all 4 sides (without it aimed specifically at the player). I want it so that as it rotates, the source of the projectiles moves with it. That way, you won't be able to just stand southeast of it to dodge every arrow it shoots. I'm using procedures to try and make it. However, I've discovered that no matter what I try, the source of the projectiles stays in the exact same spot while the mob is rotating. If what I'm saying is confusing, I made a little diagram to show what I want and what's happening.
If anyone knows what to do, I'd love to hear it!
i made a tuto, it was to difficult to adjuste it to where the entity is looking at so i improvise :
https://youtu.be/ZKIMLSmoDAI?si=YKngc7FGkakn9PCS
Hope it will help
PS : i didnt make it so he shoot three arrow sorry
@Evistix466 Thanks for trying, but that didn't really help with my issue. The issue isn't that the arrows aren't randomized, the issue is that when the mob rotates, the projectile sources don't rotate with it. The mob has specific parts of it's body that are supposed to look like arrows are coming out of them when they shoot (sort of like dispensers), but if the projectile sources don't rotate with the mob, then if the mob rotates as it's moving, it will look a lot worse and more sloppy.
yep sorry, i have a hard time too trying to understand how the entity visualisation work, you might need to work with trygonometry, radiant, sin and cos to make it happen
This might help you : https://mcreator.net/forum/93481/it-possible-detect-where-you-being-attacked
Let me know if you suceed