Minecraft Data Packs / Other

Random Choices and Possibilities | library for DP Creators

  • check_circle Functions
  • check_circle Predicates
  • 1,744 views, 3 today
  • 142 downloads, 0 today
  • 14
  • 10
  • 1
UltroGhast's Avatar UltroGhast
Level 68 : High Grandmaster Engineer
180
What is this?
As you can test, this is a totally useless datapack for players, but it is very useful for datapack creators.

It allows you to easily get a random value from 1 to 3, from 1 to 56 or from 1 to 64. (some examples)

It also gives 99 predicates for random chances from 1% to 99%.
So, if I want a command is executed with a 50% of possibility, I can use /execute if predicate _random:50percent.

How should I include it in my pack?
You could download the datapack and use it, but players would need to install your datapack and this library both. Instead, you can download only the _random folder or take it from the datapack, and place it inside YourDatapack/data.


I'm not offended if you don't mention me in the credits, but at least don't remove the credits file placed in my _random folder. Or I will cry till I flood your house.

So easy to include, so easy to use.
CompatibilityMinecraft 1.15
toMinecraft 1.16
Tags

Create an account or sign in to comment.

1
03/16/2021 8:45 am
Level 1 : New Miner
Luknown
Luknown's Avatar
looks cool
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome