Add a checkbox to make item look as if enchanted

Published by FlashFyre on Mon, 02/26/2018 - 18:03
Status
Fixed
Product/platform
Not applicable
Priority
Normal
Issue description

The code for this one has been around for a while now, but it would still be better overall if this was added to MCreator.

Make sure to import this:
import net.minecraftforge.fml.relauncher.SideOnly;

Add this directly under the 3rd last curly bracket:
          @SideOnly(Side.CLIENT);
          public boolean hasEffect(ItemStack par1ItemStack)
          {
          return true;
          }

 

Issue comments



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.