• 5/8/22 2:54 pm
- 6.6k views • 0 today
- save_alt 713 downloads
- Compatibility
- Minecraft 1.16
- to version
- Minecraft 1.19
- Changes include
- Functions
16
Get jus the .mcfunction file
A very simple and easy to use RNG for datapacks
This datapack/.mcfunction file allows you to easily generate a random number for all your randomizing needs!
HOW TO USE:
INSTALLATION:
Simply get the .mcfunction file out of the datapack and put it into your datapack!
USE:
1. Run "/scoreboard players set min rng <minimum number>" to set a minimum number
2. Run "/scoreboard players set max rng <maximum number>" to set a maximum number
3. Run "/function <pack_name>:rng" to generate the number
4. Your ranom number between the given minimum and maximum is now stored as "out" in "rng"
(Get it with "/scoreboard players operation <PLAYER> <SCOREBOARD> = out rng")
*You don't need to set the minimum and maximum every time, it'll use the last used
or the base which is min 0, max 100
CREDIT: You're free to use this datapack for anything as long as the credits that are there stay inside the .mcfunction file
A very simple and easy to use RNG for datapacks
This datapack/.mcfunction file allows you to easily generate a random number for all your randomizing needs!
HOW TO USE:
INSTALLATION:
Simply get the .mcfunction file out of the datapack and put it into your datapack!
USE:
1. Run "/scoreboard players set min rng <minimum number>" to set a minimum number
2. Run "/scoreboard players set max rng <maximum number>" to set a maximum number
3. Run "/function <pack_name>:rng" to generate the number
4. Your ranom number between the given minimum and maximum is now stored as "out" in "rng"
(Get it with "/scoreboard players operation <PLAYER> <SCOREBOARD> = out rng")
*You don't need to set the minimum and maximum every time, it'll use the last used
or the base which is min 0, max 100
CREDIT: You're free to use this datapack for anything as long as the credits that are there stay inside the .mcfunction file
More like this
5573742
119



Have something to say?
for exaple it matches the number 2 and than it says hi it worked
/execute if score out rng matches <number> run <command>