Started by
ohsnapitsWOLFIE
on
Topic category: Help with MCreator software
Hi, ive been working on a mod recently that when you use a certain GUI table, it will apply a random enchant to the item in one of the slots, i have the chance thing working, and it works fine, but sometimes it will just randomly not enchant anything onto an item, and there is no missing percentage in the randomizing (everything is a 0.25% chance of applying and there are four items, adding up to 1 (100%)).
change it to:
set custom variable to random0-1
if variable > .75
do enchant 1
else if variable > .5
do enchant 2
else if variable > .25
do enchant 3
else
do enchant 4
that will work.
Sorry for the late answer.