#A way to run functions with random chances

1 messages · Page 1 of 1 (latest)

slate wadi
#

A way to run multiple functions with random chances

rancid rampartBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

tough badger
#

/random

#

you can do execute store result ... run random ....

slate wadi
spiral lintel
slate wadi
rancid rampartBOT
# rancid rampart <@&1201956957406109788>

<@&1166082198152159386> <@&1202694677766348840>

🙇 Helpers Arise!

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

spiral lintel
#

You didn't even give me time to start typing a response

spiral lintel
#

Please have more than 30 seconds of patience

slate wadi
#

I'm just checking how does it works

spiral lintel
#

You can use execute if score to run different functions based on the value of the score

slate wadi
spiral lintel
#

The syntax is execute if score <scoreboard> <objective> matches <number> run ...

slate wadi
spiral lintel
#

The guide I linked above shows you how to store the random value into score

#

The above command is how you can use the random number to determine what function to run

slate wadi
#

Ooh it works on 1.20.2+ ok

fallen lichen
#

or they could use

#

uhh

#

loot tables!

tender kestrel
fallen lichen
#

its a 1.20 feature

weary flax
#

That's what we are discussing already :p