diff options
author | Chris Xiong <chirs241097@gmail.com> | 2021-07-24 16:59:58 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2021-07-24 16:59:58 +0800 |
commit | 77f0e689f84a601f5da4aaf2308bccf74a531346 (patch) | |
tree | 8154832f6c4ac0d071a771657c4a67c6a024f398 /data/bktsb/functions/rng.mcfunction | |
download | bktmc-skyblock-77f0e689f84a601f5da4aaf2308bccf74a531346.tar.xz |
Initial public release (minecraft 1.17.1).
Diffstat (limited to 'data/bktsb/functions/rng.mcfunction')
-rw-r--r-- | data/bktsb/functions/rng.mcfunction | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/data/bktsb/functions/rng.mcfunction b/data/bktsb/functions/rng.mcfunction new file mode 100644 index 0000000..cf10912 --- /dev/null +++ b/data/bktsb/functions/rng.mcfunction @@ -0,0 +1,7 @@ +#set lim before using +scoreboard players operation #a srand *= #a m +scoreboard players operation #a srand += #a c +scoreboard players operation #a srand %= #a p +scoreboard players operation #a randr = #a srand +scoreboard players operation #a randr %= #a lim +#result in randr |