Making black hole/ orb pulls entities into it

Started by Aplhau on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making black hole/ orb pulls entities into it
Fri, 07/09/2021 - 16:53 (edited)

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.

this is the procedure im using. the bottom if statement is for it to despawn after 5 seconnds

Edited by Aplhau on Fri, 07/09/2021 - 16:53
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
easiest way: create 3 or 4…
Fri, 02/07/2025 - 11:42

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