RNG with game time
作者:rebot | 分类:模组
Minecraft 版本: 1.13 1.13.1 1.13.2 1.14 1.14.1 1.14.2 1.14.3 1.14.4 1.15 1.15.1 1.15.2 1.16 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.17 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1
平台: datapack
标签: utility
This is just a small datapack that adds a rng function.
Description:
This functions generates a random number by using only the game time, an offset value, and the range value that the player has to set (defaults to 1 if the range is none, 0 or negative)
Setting RNG range:
You can set the range value with : /scoreboard players set rng.range rng <range value> (the number generated can have all values from 0 to rng.range -1)
Generate a number:
To generate a number, execute the command /function rng:rng. The Number gets stored in the scoreboard rng.rng.
请登录后举报
暂无评论,抢个沙发吧~