- check_circle Functions
Published May 8th, 2022, 5/8/22 2:54 pm
- 4,146 views, 4 today
- 487 downloads, 0 today
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
Compatibility | Minecraft 1.16 |
to | Minecraft 1.19 |
Tags |
5573742
119
Create an account or sign in to comment.
for exaple it matches the number 2 and than it says hi it worked
/execute if score out rng matches <number> run <command>