Started by
CptPICHU
on
Topic category: Help with Minecraft modding (Java Edition)
Hey there!
So i made a block and linked a procedure to it, that triggers when something walks on it.
I simply want the entity that walked on the block to slightly get pushed back. Important part is: It must push exactly the opposite of the entitys walking direction.
So how can i pull this off? Theres the velocity-thing to move entitys but i'm not sure how to use it here.
overwrite the motion vector of that entity by vx: playerX - blockX; vy: playerY - blockY; vz: playerZ - blockZ
I also recommend multiplying that value
DumbPocket, what is -block? does that mean the block that the player is on? doesn that mean the block that the player is looking at? what block? have you tried building it and taking a screenshot?