Can't find Random possibility in procedures

Started by Kent15 on Sun, 05/06/2018 - 00:58

Topic category: Bugs and solutions

Last seen on 16:14, 8. Sep 2018
Joined Jan 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can't find Random possibility in procedures
Sun, 05/06/2018 - 00:58

Well from the previous version of MCreator, I used the Random possibility feature for growing plants. So at a random possibility of 5%, it will update the plant to the next stage.

This is the ONLY way I could get a plant to grow using MCreator. Now my mod is broken until this gets put in, or a work around is found in the Procedures. 

Please help.

 

Thanks ;)

Last seen on 07:04, 27. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I think there is a feature…
Sun, 05/06/2018 - 05:30

I think there is a feature for randomizing a variable. With a randomized variable you can use an "if" condition that checks if the variable is = to a number

Example: randomize variable Growing 1~100

If variable Growing = 100 - > Add Block

But I think there is this feature, I'm not sure

Anyways, in vanilla minecraft things grow by game ticks, not random conditions

Last seen on 17:52, 26. Jul 2020
Joined Apr 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The Random Block is stuck at…
Fri, 12/28/2018 - 04:48

The Random Block is stuck at 0,1

Last seen on 07:53, 28. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can multiply it with 5…
Fri, 12/28/2018 - 09:46

You can multiply it with 5 for example to get the 0,5 range. Check the Template library as there is one example on random numbers too.

Last seen on 19:54, 5. Jul 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
if you want a 5% chance that…
Thu, 04/23/2020 - 09:44

if you want a 5% chance that something happens then do this:

if random[0,1] < 0,05 

do something

 

- smyril