How can I get the coordinates of a block the player is looking at?
问题 I want to get the coordinates of the block the player is looking at. I tried to do it with: double x = player.getLookVec().getX(); double y = player.getLookVec().getY(); double z = player.getLookVec().getZ(); But somehow these numbers are always between 0, 0, 0, and 1, 1, 1, so I didn't get the coordinates of the block. So how can I get the exact coordinates of a block? More code: @Mod.EventBusSubscriber (modid = FirstMod.MOD_ID, bus = Bus.FORGE) public class RightClickBlock { @SubscribeEvent