Minecraft Data Packs / Technology

RNG function (1.20)

  • check_circle Functions
  • 704 views, 3 today
  • 30 downloads, 0 today
  • 1
  • 0
Maarushi's Avatar Maarushi
Level 4 : Apprentice Miner
0
This datapack implements random number generator functions to get numbers from easily customizable ranges (customizable inside the datapack). (has examples inside as well)
TO USE:
function rng:rng/0to8
execute if score RNG rng_global matches 0..2 run # your function

I made this datapack since i couldn't find a good datapack anywhere else for this, although natural_power did come close but made biased rng.
My performance is actually good unlike the bad ones, that just crash my game when i run it 65,536 times.
Mine takes about half a second to run it 65,536 times.
CompatibilityMinecraft 1.20
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome