Started by
HuggyeBear
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make an enchantment that works pretty much like Aimbot, but all that I have found is either outdated, irrelevant, or it only works as an implicit procedure.
Popular
This isn't impossible, but it's going to be a little tricky with MCreator's tools. I imagine the general idea would be something like this:
Easier said than done, but yeah, not impossible. It'd be somewhat easier if you were using a custom projectile weapon, in that case you could just have the projectile adjust its velocity to aim towards the nearest non-shooter entity. I did something similar to this for homing arrows.
can you show a pic of this?
I don't have a picture that I can currently provide but adding to mindthemoods comment, you would need a local variable for things like the velocity and look angle and then you would use some math to calculate the path towards the XYZ of the entity. This wouldn't support things like pathfinding but it would definitely work.