Started by
Aplhau
on
Topic category: Help with Minecraft modding (Java Edition)
Hello hope everyone is having a nice day. I need some help with making an orb the spawns where the cursor is and entities start to get pulled into it and it despawns after 5 seconds. I have figured out how to spawn the orb where the cursor is. I have a procedure that pulls entities in but I don't know if it is ok because it looks like it teleports the entities to Narnia. If this way works can you tell me how to make it slower.
Edited by Aplhau on Fri, 07/09/2021 - 16:53
easiest way: create 3 or 4 number variables
dx = X position of event target - X position of iterator
dy = Y position of event target - Y position of iterator
dz = Z position of event target - Z position of iterator
speed = (the higher the number the lower the speed)
then
Attempt to override motion vector
x= dx/speed
y= dy/speed
z= dz/speed
dont forget to make it on entity tick update (or player) well idk its just supposed to be on tick update