Started by
YourNightmxre
on
Topic category: Help with Minecraft modding (Java Edition)
Hello,
Im currently working on a mod that among other things adds the ability to set a home and teleport to it,
Everything works except for the fact that when you teleport it teleports you on the edge of the block.
I don´t know whats causing it or how to fix it, please help.
Edited by YourNightmxre on Thu, 06/23/2022 - 21:41
Hello there,
I think that if you want to make it teleport to the center, you should set the coordinate to X+0.5 and Z+0.5. Here is the example that I try base on your original one.
https://ibb.co/CJHS94w
Anyway, hope this helps and good luck on your mod.
Thanks tuonkhung, it works now :)