I am kinda new to this things so instead of copy other people's code i tried to make my own things. Apparently I did everything wrong lol. The ItemTab class is supposed to return my mod item group if the boolean in CrystalConfig is true, then, if false it will return a vanilla item group. I'm going to totally rewrite my mod. Thanks everyone.