Started by
littledude47
on
Topic category: Help with Minecraft modding (Java Edition)
It seems really simple but I have no way of making the mob go to the end of the line without literally teleporting, is there a way to make a mob smoothly go to a position with procedures that isn't teleporting?
set entity movement vector with some math should work.
is there any sort of guide on how to use the movement vector block because I attempted to and it sent me 40k blocks away
it doesn't send you towards the cords you put it will add a amount of force on the axis you put a number in for example putting a 1 in the y value will make you jump up a bit. so you need to take the coordinates of the destination and the current position and do some math to get the right value.
how would I make it so it basically moves you in whatever direction you are facing? My goal is to make it so when the item is right clicked it moves you towards whatever direction you are facing by a certain amount of blocks
https://imgur.com/LXoSENc do this for each of the 3 directions making sure to change wich raycast and coordinate to match that of the movement vector block change the hundred to be smaller or bigger depending if you want the max range to be bigger or smaller and change the 1 at the end to be bigger or smaller if you want it to be faster make sure that the x and z axises both have the same number in the 1 slot or else it will get funky and if you change the y's 1 slot don't make it to big or you will flying in the air. you might also want to check to make sure the block at the e[nd of the raycast isn't air or you could grapple on nothing.
ok so I tried this and the item does nothing upon right clicking, the player just doesn't move at all
Create range item name it grappling hook.Then go to while bullet flying tick procedure and add if you have the new version add set location of (event/target entity) to x: (x) y: (y+1) z: (z)