![]() ![]() ![]() And you can continue, if you want the position to be even more precise. After that you can half the search area again and again, until after just 27 steps you have narrowed down this 60 million block range into less than one block range. There you select half of the remaining world again, in this case for example from X=0 to X=15000000. If the player is in the negative half, you continue there, otherwise in the positive half. How this works: You first select half of the world, for example from X=0 to X=30000000 and check whether the player is in it (using the x, y, z, dx, dy, dz selector arguments). But 1.12 has neither of these commands, so you need to do something called a "binary search" through the entire world. This process is very simple in 1.13+, you only need to use /execute store together with /data get to store a player's " Pos" array into three scores (instructions see here). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |