Started by
Golden64
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make an item that makes it so when you right click the item it finds an entity the player is looking at and swaps places with them.
Topic category: Help with Minecraft modding (Java Edition)
I want to make an item that makes it so when you right click the item it finds an entity the player is looking at and swaps places with them.
procedure to detect when the player is looking at an entity:
https://imgur.com/qZfZp7z
if you want to change the distance change the first 3 numbers, if you want to change the precision change the last one (too high or too low values may cause bugs, I suggest to use 5 for precision)
Thank you
You're welcome