Jump to content

Recommended Posts

Posted

I'm assuming I should use rayTraceBlocks but I'm not sure how to use it. Can anyone help?

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Posted

Still not sufficient enough. Define "ground".

 

Ground can be world height in given place or ANY block that is below you (which would also count if you were high on floating island or deep down in caves.

 

No, you don't need to use rayTrace, if you just want to check what is below you you take player's pos and iterate down and check what block is on "player.posY - iteration". Now depending on "ground" definition - if ground would be ANY block that's it, but if you want to have ground height then it can get harder. Solutions may include saving world's height in given x/z into chunkData when world is generated.

1.7.10 is no longer supported by forge, you are on your own.

Posted

Look at lines 510, 524, and 537

You can link to specific lines on Github either by appending
#L<line>

to the URL or just clicking on the line. You can also link to a range of lines using

#L<start>-L<end>

at the end of the URL.

In addition, you can link a range of lines by clicking a line number and then shift-clicking another line number.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.