Random item creation

Started by Meowmere on Fri, 09/23/2016 - 14:38

Topic category: Help with MCreator modding

Last seen on 04:30, 7. Oct 2016
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Random item creation
Fri, 09/23/2016 - 14:38

Hopefully the buggy messes get sorted out, in the meantime, I was making a mod that would give you an item when you rightclicked with an unlocked case, the only problem is... How do I make it randomly give you 1 item from a predefined list, like TF2, 

 

ITEM1  -  2%

ITEM2  -  50%

ITEM3  -  20%

ITEM4  -  0.2%

and it would give only one of those

Last seen on 10:58, 2. Dec 2018
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
thats a good question...
Wed, 09/28/2016 - 03:08

thats a good question...

Last seen on 10:58, 2. Dec 2018
Joined Sep 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
oh i just found that there is
Wed, 09/28/2016 - 15:55

oh i just found that there is a 'randomPossibility[] condition now on events, so you can try to do somethng there.. hope it helps