Minecraft Data Packs / Tool

Random Number Generator v2 (RNG)

  • check_circle Functions
  • 12,767 views, 4 today
  • 822 downloads, 0 today
  • 18
  • 14
  • 11
Zero_4793's Avatar Zero_4793
Level 54 : Grandmaster Technomancer
56
Functional Datapack for Datapack or adventure map creators.
Easy to use, Efficient. Random Number Generator

Give any entity an RNG score between 0 and 1,073,741,823
/scoreboard players give [​entity] RNG [​value]
And it will within a single tick return a value of NUM between 0 and the input RNG
To test its value:
/scoreboard players get [​entity] NUM

You do not need to credit me for this as, although i coded this by my self, it is a necessary function that everyone should have access to with out the fuss.

Regards - Zero#4793
CompatibilityMinecraft 1.13
toMinecraft 1.15
Tags

1 Update Logs

Update #1 : by Zero_4793 03/09/2020 10:09:59 pmMar 9th, 2020

I have greatly improved this datapack. But as you interact with it exactly the same as before. You should be able to simply replace the old version with no issues.
This RNG can now randomise between 0 and 1,073,741,823 seemlessly.
And can do multiple entities quite easily.
Though i would recommend excluding @e[type=area_effect_cloud,tag=RNG] as that is a game braking feedback loop

Create an account or sign in to comment.

1
08/22/2023 5:53 pm
Level 54 : Grandmaster Technomancer
Zero_4793
Zero_4793's Avatar
It is bitter sweet that Mojang is adding /random
It should have been a feature long ago. It's sad to now see this datapack will now be irrelevant in newer versions. But its also great to have a much easier method.
It's also gonna take a while for me to update my numerous other datapacks from using this RNG to the new inbuilt system.
1
08/04/2020 4:13 am
Level 1 : New Miner
Insane96MCP
Insane96MCP's Avatar
Is this compatible with 1.16.x?
1
01/19/2020 3:29 pm
Level 27 : Expert Miner
McJoeGames
McJoeGames's Avatar
2
01/20/2020 2:20 am
Level 54 : Grandmaster Technomancer
Zero_4793
Zero_4793's Avatar
Thats awesome.
3
07/12/2019 3:05 pm
Level 54 : Grandmaster Cyborg
binary1024
binary1024's Avatar
This is just what I was looking for!
3
07/11/2019 9:57 am
Level 65 : High Grandmaster Cake
TomatoCake
TomatoCake's Avatar
Thanks, I will use it in my new data pack! ;)
3
10/14/2019 1:32 am
Level 54 : Grandmaster Technomancer
Zero_4793
Zero_4793's Avatar
Could you show me (link me) to your new datapack?
2
11/02/2019 3:51 am
Level 65 : High Grandmaster Cake
TomatoCake
TomatoCake's Avatar
Actually I don't use it in my chest datapack - there I use loot tables because of better performance...
But on a new map, which is not released yet, I use it to generate numbers ;)
2
03/10/2020 7:48 pm
Level 54 : Grandmaster Technomancer
Zero_4793
Zero_4793's Avatar
Is your map released yet?
3
07/11/2019 6:04 am
Level 5 : Apprentice Explorer
MythicalMew
MythicalMew's Avatar
Pretty cool, I can think of a few uses for it but not sure how people are actually going to use it.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome