#(Mars) gravity well

24 messages · Page 1 of 1 (latest)

flat bobcat
#

I am making a "gravity well" spell, and the idea is that it will slowly draw any entities/players within 20 blocks towards the center. Is there a good way to do this outside of - push ?

It would also be awesome if the closer the entity gets toward the center, the faster it pulls, if possible but thats another beast

tired sealBOT
#

(Mars) gravity well

tired sealBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

grim echo
#

!m velocity

high nymphBOT
# grim echo !m velocity

Sets the entity's movement velocity vector.

Object

EntityTag

Input

LocationTag

Tags

<EntityTag.velocity> Returns the movement velocity of the entity. Note: Does not accurately calcul...

grim echo
#

i think i would do it like that:
- adjust <[target_entity]> velocity:<[gravity_well_location].sub[entity_location].normalize.mul[strength]>

flat bobcat
#

is there a better command to use than push ?

#

or thats it

grim echo
#

i just showed u

untold chasm
#

there’s push and there’s adjusting velocity as stewe demonstrated

#

as for making the magnitude stronger when they’re closer, you could work up some kind of exponential value with the distance between the two locations

grim echo
#

i only always have one issue with velocity, it cancells any other velocity / replaces it

flat bobcat
#

lemme see here

grim echo
#

you need to repeat it

crystal spruceBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@flat bobcat