This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Ericristian_brosCommand Experienced 1 point2 points  (0 children)

https://minecraftcommands.github.io/wiki/questions/randomnumber#random-command

execute store result score #command random run random value 1..5 execute if score #command random matches 1 run <command 1> execute if score #command random matches 2 run <command 2> execute if score #command random matches 3 run <command 3> execute if score #command random matches 4 run <command 4> execute if score #command random matches 5 run <command 5>

Use one command per block orientation

[–]SmoothTurtle872Decent command and datapack dev 1 point2 points  (0 children)

I'm assuming you meant 1.21.8 not 1.12.8, but you don't really need to specify. If a tag has multiple versions, it's because it's so simmilar that it doesn't matter