You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/guide/misc/raycasts/+page.svx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ player is looking at and do something to it, such as spawning an explosion.
12
12
This tutorial uses a neat thing called a **_recursive function_**. A recursive function is a function that runs itself over and over again.
13
13
:::
14
14
15
-
This method works due to a special behaviour of Minecraft functions - functions are always run at a position and rotation. THis means that we can run a function at a postition, move it forward in the direction, and run it again, over and over again. This is how we can make a raycast.
15
+
This method works due to a special behaviour of Minecraft functions - functions are always run at a position and rotation. This means that we can run a function at a postition, move it forward in the direction, and run it again, over and over again. This is how we can make a raycast.
16
16
17
17
## Method
18
18
This method will show you how to find what entity that a player is looking at. This is useful for many reasons - if you wanted to make a gun datapack, you'd need to damage the entity that a player is looking at in order to damage them.
0 commit comments