Pulling in Nearby Entities to a Block; Faster the Closer to the Block

Started by Thrash on

Topic category: Advanced modding

Last seen on 01:02, 10. Apr 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Pulling in Nearby Entities to a Block; Faster the Closer to the Block

I'm trying to make a black hole block move entities nearby toward the block using this: (Attempt to override motion vector of [Entity iterator] to vx: [{blockx}-{x position of entity}/{change}] vy: [{blocky-y position}/{change}] vz: [{blockz-z position}/{change}]), (See imageCode Snippet). Change is my variable and it makes it slower. The only problem with it is that it pulls entities realy fast the further away from the black hole they are. I'm wanting to make them get pulled more the closer they are, similar to an actual black hole. Is anyone able to change my original equation to fit that?

Last seen on 01:02, 10. Apr 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://ibb.co/6tPMLwg is…
Mon, 04/01/2024 - 23:45

https://ibb.co/6tPMLwg is the image URL if the image doesn't work