tutorial:pixel_raycast
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tutorial:pixel_raycast [2023/11/30 22:30] – [For arbitrary reach] Rewrote with a simpler solution famrofexl | tutorial:pixel_raycast [2023/11/30 22:33] (current) – [For arbitrary reach] Naming fix famrofexl | ||
---|---|---|---|
Line 34: | Line 34: | ||
==== For arbitrary reach ==== | ==== For arbitrary reach ==== | ||
- | The code above allows for the normal reach, 3 blocks for survival and 4.5 in creative. If you want the raycast to reach farther you need to replace <code java> HitResult hit = client.cameraEntity;</ | + | The code above allows for the normal reach, 3 blocks for survival and 4.5 in creative. If you want the raycast to reach farther you need to replace <code java> HitResult hit = client.crosshairTarget;</ |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" |
tutorial/pixel_raycast.txt · Last modified: 2023/11/30 22:33 by famrofexl