Posted February 15, 20232 yr i got this trouble Vec3 works whit real numbers but block has this minusZero hurting mi calculations i need to calculate if an entity inside the block is close to the center on the block but block gets me BlockPos and entity gives me a vec3 when i converty i t by self it works excep if the entity is not on the block -0 causing the calculate value to move towars +0 anyway is there alredy in minecraft a function to return a BlockPos passing a Vec3 habing in count this MinusZero thing ??
February 15, 20232 yr There's no such thing as -0. The corners of each block represent the BlockPos. The center of the block is offset by 0.5.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.