Started by
RealDa
on
Topic category: Help with Minecraft modding (Java Edition)
I want to turn this
Set Local:Random to Random 0,1
to
Set Local:Random to Random 0,10
tried to do lucky block
possible?
Topic category: Help with Minecraft modding (Java Edition)
I want to turn this
Set Local:Random to Random 0,1
to
Set Local:Random to Random 0,10
tried to do lucky block
possible?
and please show a picture of a procedure, i cannot find some of them
Okay so the way Random 0,1 works is it will chose a number between 0 and 1, that means all numbers not just even, I.E 0.0001 is a possible number it will choose, so if you trying to make a item spawn at a random chance, then this is exactly what you need.
for example if random 0,1 < or equal to 0.125 would make your item have a 12.5% chance to spawn.
thanks for the reply but, i tried that and uhh u have to break the lucky block multiple times so the effect appear
Okay so you want a random effect/item/etc to happen each time the block is broken correct?
yes
but i have more than 1
i am at 2 something like that
so half wont work because its random 0,1
and not 0,2
and i saw this tutorial
https://mcreator.net/forum/45728/how-create-your-own-lucky-block-mod-us…
have x (something)
but i cant find it
Do "Random (0, 1]" and multiply it by however many outcomes you have, i.e. x20 if you have 20 different effects.
You should also use the "Round <>" block to round it to a whole number. This will make assigning each number to an outcome a lot easier.
Make sure to run the procedure on server-side only too
Thanks for the answer dudes but for the round <>, I didn't quite understand.
OOOH ok! Thanks!