Started by
Stewie
on
Topic category: Help with Minecraft modding (Java Edition)
Im currently trying to add a teleport wand to my mod, but I cant seem to figure out how to grab the coordinates of the block a player is looking at.
Topic category: Help with Minecraft modding (Java Edition)
Im currently trying to add a teleport wand to my mod, but I cant seem to figure out how to grab the coordinates of the block a player is looking at.
You're going to have to mess around with the 'raytrace coordinates' block in the player management section- these should get you the location the player's currently targeting, though by default it just checks the block highlighted. I haven't used this much, but it seems to work pretty consistently.