#/random with scoreboard

1 messages · Page 1 of 1 (latest)

uneven hawk
#

Can I use the command /random value and use scoreboard scores instead of minimum and maximum values

#

This is my code and I would like to modify the last line where is 1..4

waxen bane
#

Yes, but you'd need to use macros to do it

uneven hawk
#

What is a macro ?

waxen bane
#

It's a method of running a function using data from storage as variables

#

You would store the scoreboard values to a storage using execute store result ..., and then use function with ... to use that storage in any macro lines that are in that function. Then you define which lines are macro lines by starting them with $, and use the appropriate syntax wherever you want to use storage data in part of that command