Jump to content

Recommended Posts

Posted

i got this trouble 

Captura-de-pantalla-de-2023-02-14-20-14-

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 ??

 

 

 

 

 

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.