Minecraft ArmorStand moving with Java?

Br
9

I would like to drop an armor stand from top to bottom.

I could just issue the gravity, but I want it to go through blocks. For that I have to move it myself. Can this be done with a Vector? The important thing would be that it gets faster and faster and can pass through blocks

kn

Give him a tag like "pizza" and then tp down all entities with the tag pizza

Br

But that would look a bit hooky, I really want to drive it down gently

Wo

Hope you mean the Spigot or Craftbukkit API.

Possibility Number 1

Hmhh, going through blocks becomes difficult with a vector. But what you can do is convert the final position (location) to a vector (1) and then the vector of the position of the AS (2) from subtracting V1 (to) - V2 (from) or v1.subtract (v2) , Then set the Y higher depending on the distance of the positions (Location # distance). But that would have to be done every second. Unfortunately, I don't know how it goes through blocks.

Possibility 2

Otherwise just teleport down all the time and do the same with the two positions, i.e. Distance, the shorter the distance, the more increments ΔY depending on the shorter distance. Do everything evenly, every tick or something.

Lo

You can give the armorstand a motion day

kn

If you use 1.14 Plus you can use something that gives you an impetus. Take a look at TheJocraft in the new redstoneworld where he programmed the skis. You can see how it works

Br

Unfortunately I use 1.8,

got it now with a Vector, thank you anyway

Br

Yes, I mean that. I have now got it with a Vector, where you can also move the ArmorStand through blocks. By the way, you can do this by setting noclip from ArmorStand to true

((CraftEntity) armorstand) .getHandle (). Noclip = true;

Wo

I didn't know well in the 3 years of coding.

kn

Kk