Sometimes, we want to make Minecraft functions dependent on a value, however the game doesn’t let us use it like a variable in selectors. You can’t teleport a player in a direction as many blocks away as their score using just one command, and you can’t easily read which way they’re looking. If you know that the number of possible input values is low enough, you can solve the problem by hardcoding each value with a corresponding command. If someone were to, for example, implement a sine function with an accuracy of one degree, they could calculate the values for it with another program and write down 360 commands. This solution is, unfortunately, very inefficient, since too many commands is being run for no reason. Fortunately, the generator in this article allows for very good optimalisation in such situations.