📜  minecraft 随机数 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:42.777000             🧑  作者: Mango

代码示例1
# Bedrock
scoreboard players random    

# Java
## Many options, sadly none are as easy as the one above.
## Probably the one with the least commands is this one:
summon area_effect_cloud ~ ~ ~ {Tags:["random_uuid"]}
execute store result score @s random run data get entity @e[type=area_effect_cloud,tag=random_uuid,limit=1] UUID[0] 1
kill @e[type=area_effect_cloud,tag=random_uuid]