Started by
Sagrestogamer
on
Topic category: Advanced modding
I was trying to make an item that make me teleport 20 blocks in front of me. I tried a lot but i could'nt do it.
Someone can help with it pls.
(sorry for the bad english)
Topic category: Advanced modding
I was trying to make an item that make me teleport 20 blocks in front of me. I tried a lot but i could'nt do it.
Someone can help with it pls.
(sorry for the bad english)
Like if entiditiy is looking to north(other direction this is an exemple) the entiditiy teleport 20 blocks to north(other direction this is an exemple).
Hey, I am sure, I have an idea for you: there is this blue thing called "entity's x/y/z looking direction";
You can make brute force of testing for all the four sides where player can look and for each you can just make teleport to "current coordinates" plus 20 in the direction you want;
The four possibilities are:
x+20, z+20, x-20, z-20