- check_circle Functions
Published Jun 17th, 2023, 6/17/23 10:13 am
- 1,469 views, 2 today
- 64 downloads, 0 today
70
This is just a small datapack that adds a rng function.
Description:
This functions generates a random number by using only the game time, an offset value, and the range value that the player has to set (defaults to 1 if the range is none, 0 or negative)
Setting RNG range:
You can set the range value with : /scoreboard players set rng.range rng <range value> (the number generated can have all values from 0 to rng.range -1)
Generate a number:
To generate a number, execute the command /function rng:rng. The Number gets stored in the scoreboard rng.rng.
Description:
This functions generates a random number by using only the game time, an offset value, and the range value that the player has to set (defaults to 1 if the range is none, 0 or negative)
Setting RNG range:
You can set the range value with : /scoreboard players set rng.range rng <range value> (the number generated can have all values from 0 to rng.range -1)
Generate a number:
To generate a number, execute the command /function rng:rng. The Number gets stored in the scoreboard rng.rng.
Compatibility | Minecraft 1.13 |
to | Minecraft 1.20 |
Tags |
1 Update Logs
Update #1 : by HeDeAn 06/17/2023 1:39:20 pmJun 17th, 2023
removed a debug command that I forgot
tools/tracking
5659874
119
rng-with-gametime
Create an account or sign in to comment.