An idea I had whereas you could select a random coordinate when selecting coordinates for a specific command
Using the "&" symbol as an example to define this, say you wanted to teleport the player to a random coordinate with a maximum of 10 blocks on the x axis, given that the number defined after the "&" symbol is the cap, you could use the following command:
/tp @p &10 ~ ~
The command above would theoretically teleport the player to a random coordinate between 0 and 10 blocks along the X axis while retaining their y and z coordinate
Okay so another example could be: what if I wanted to set a block of stone a random distance within 30 blocks relative to myself on either the X, Y or Z axis or a combination, a combination of the random "&" selector and the current position "~" selector should be possible like this:
/setblock ~&30 ~&30 ~&30 minecraft:stone
The stone block would appear anywhere between 0 and 30 blocks away from myself on any axis, if my current coordinate was x=0 y=10 z=10 then the stone block could appear anywhere between my current position and x=30 y=40 z=40
If the command /setblock ~1&30 ~2&30 ~3&30 minecraft:stone is used and my position is still x=0 y=10 z=10 the stone block could appear anywhere between x=1 y=12 z=13 and x=30 y=40 z=40
I believe this could have many practical applications and would open up many options for map makers and server hosts, if you have made it this far I thank you for reading my proposal
Please sign in to leave a comment.
5 Comments