How do we INCREASE the random(0,1)?

Started by RealDa on Mon, 03/29/2021 - 17:47

Topic category: Help with modding (Java Edition)

Last seen on 21:01, 20. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do we INCREASE the random(0,1)?
Mon, 03/29/2021 - 17:47

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?

Last seen on 21:01, 20. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
and please show a picture of…
Mon, 03/29/2021 - 17:51

and please show a picture of a procedure, i cannot find some of them

Last seen on 23:33, 5. May 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay so the way Random 0,1…
Mon, 03/29/2021 - 18:03

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.

Last seen on 21:01, 20. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thanks for the reply but, i…
Mon, 03/29/2021 - 18:05

thanks for the reply but, i tried that and uhh u have to break the lucky block multiple times so the effect appear

 

Last seen on 23:33, 5. May 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay so you want a random…
Mon, 03/29/2021 - 18:24

Okay so you want a random effect/item/etc to happen each time the block is broken correct?

Last seen on 21:01, 20. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
yes but i have more than 1 i…
Mon, 03/29/2021 - 18:52

yes

but i have more than 1

i am at 2 something like that

Last seen on 21:01, 20. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
so half wont work because…
Mon, 03/29/2021 - 18:53

so half wont work because its random 0,1

and not 0,2

Last seen on 14:10, 6. May 2021
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Do "Random (0, 1]" and…
Mon, 03/29/2021 - 22:17

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.

Last seen on 21:01, 20. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks for the answer dudes…
Tue, 03/30/2021 - 11:59

Thanks for the answer dudes but for the round <>, I didn't quite understand.

Last seen on 21:01, 20. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
OOOH ok! Thanks!
Tue, 03/30/2021 - 12:00

OOOH ok! Thanks!