Maps Redstone Device

[Mapping Utilities] - Module #6 - Random number generator

  • 408 views 0 today
  • save_alt 40 downloads
Progress
100% complete
  • 1
  • 0
Noricum
Lvl 20Expert System
23
A real "random" number generator that create number from 0 to 9999 each gametick. This can be used for calculating chances for different custom mechanics like drop chances, unqiue paths based on values and such things.

These scoreboard values contains the generated numbers
▷ TargetName ▷ TargetObjective ▷ Description
▷ rand_10 ▷ RandomGen ▷ contains values from 0 to 9
▷ rand_100 ▷ RandomGen ▷ contains values from 0 to 99
▷ rand_1000 ▷ RandomGen ▷ contains values from 0 to 999
▷ rand_10000 ▷ RandomGen ▷ contains values from 0 to 9999

Transfer a number (0-99) to the nearest player
▷ /scoreboard players operation @p {yourobjective} rand_100 RandomGen

Testing for a value
▷/execute @a[score_{yourobjective}_min=0,score_{yourobjective}_min=9] ~ ~ ~ /{actions}
this a 10% chance to get executed

More like this

  Have something to say?

Welcome