User Tools

Site Tools


tutorial:pixel_raycast

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:pixel_raycast [2023/11/30 22:30] – [For arbitrary reach] Rewrote with a simpler solution famrofexltutorial: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;</code> in [[pixel_raycast#special_casecenter_pixel | Special Case: Center Pixel]] with the example below:+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> in [[pixel_raycast#special_casecenter_pixel | Special Case: Center Pixel]] with the example below:
  
 <code java [enable_line_numbers="true"]> <code java [enable_line_numbers="true"]>
tutorial/pixel_raycast.txt · Last modified: 2023/11/30 22:33 by famrofexl