Started by
Shlokplayzz
on
Topic category: Help with Minecraft modding (Java Edition)
So I'm trying to make an ender pearl like item called prism pearl which teleports you where you throw it at but I want it to be so that it moves in a straight line and never falls down and you only get teleported if it hits something.
This can be done through ranged weapons.
Teleport is a simple part, ( Set location of [Event/target entity] to XYZ )
But how to make a projectile flying just in a straight line is a good question...
Well- I have two possible ideas although I can only explain them-
First way would be to override the movement of the projectile
Or just straight up use ray-tracing
How can I override the projectile's movement?