Рет қаралды 25
While I was experimenting with analytical geometry in Minecraft, I noticed I needed a way to turn scores into coordinates, which I made, and tested it by graphing linear equations.
The method used to turn scoreboard values into coordinates is by teleporting the entity by the given score. I obviously cant write every value in existence to test the score, so I used the geometric sequence, the reason for this is that it's basically similar to binary, you can make up any values with the numbers in the sequence.
The method I used to detect the x coordinate of the entity is by adding a value to a score that's used to detect the x axis each step it takes (+1 x score per block). Then I just plug the x value in the equation (y = mx + c).
Noticed how I label two of the repeating command blocks with 10m and 10c, this is because Minecraft doesn't support decimal values, so I multiplied it by 10.