- check_circle Functions
- check_circle Loot Tables
- check_circle Predicates
- 2,002 views, 1 today
- 140 downloads, 0 today
6
A datapack that implements a customizable random number generator for datapack development.
This datapack adds 2 simple functions.
The simpler one is "anyrandom".
This function simply returns a random number within the integer limit.
The second one is "limitrandom"
Here, you have to first set the scores of "brng.system".
The scores are named "randomnummin" and "randomnummax" respectively.
I think it should be obvious what you have to set them to.
After you set them to whatever you want, you just run the command and let the magic happen.
You can append "entity/" to the function names to run a different version of them.
This version will use the scores of the executing entity, instead of a system score.
New: You can now append "loot/" and "loot/entity/" respectively to use a newer version of the generator. Same functionality, except faster, just in case you ever needed to generate 500 random numbers per tick.
Full credit for this feature goes to Furiã, who posted this idea in the MinecraftCommands discord server.
This datapack adds 2 simple functions.
The simpler one is "anyrandom".
This function simply returns a random number within the integer limit.
The second one is "limitrandom"
Here, you have to first set the scores of "brng.system".
The scores are named "randomnummin" and "randomnummax" respectively.
I think it should be obvious what you have to set them to.
After you set them to whatever you want, you just run the command and let the magic happen.
You can append "entity/" to the function names to run a different version of them.
This version will use the scores of the executing entity, instead of a system score.
New: You can now append "loot/" and "loot/entity/" respectively to use a newer version of the generator. Same functionality, except faster, just in case you ever needed to generate 500 random numbers per tick.
Full credit for this feature goes to Furiã, who posted this idea in the MinecraftCommands discord server.
Credit | Furiã |
Compatibility | Minecraft 1.17 |
Tags |
5 Update Logs
Update #5 : by PBalint817 11/02/2021 3:30:50 pmNov 2nd, 2021
Added functions based on top of Furiã's idea.
LOAD MORE LOGS
tools/tracking
5350394
119
minecraft-rng-with-custom-range
Create an account or sign in to comment.