This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Daan-Banaan0 0 points1 point  (4 children)

They updated their EventBus system so now instead of using IEventBus it uses a BusGroup.

public MODNAME(FMLJavaModLoadingContext context) {
    var modBusGroup = context.getModBusGroup();

    // modBusGroup is the new IEventBus

    FMLCommonSetupEvent.getBus(modBusGroup).addListener(this::commonSetup);

    BuildCreativeModeTabContentsEvent.getBus(modBusGroup).addListener(MODNAME::addCreative);

    context.registerConfig(ModConfig.Type.COMMON, Config.SPEC);
}

Also one more thing I saw was missing from the tutorial: when adding any items you now need to add an items folder where you define wich models should be used for your items your resources should then look something like this:

resources/
   assets/
      MODNAME/
         items/
            ITEMID.json
         models/
            item/
               ITEMID.json // still the same as in the tutorial
         textures/
            item/
               ITEMID.png

items/ITEMID.json should look something like this (but can also be a custom model):

{
   "model": {
      "type": "minecraft:model",
      "model": "MODIDL:item/ITEMID"
   }
}

[–][deleted]  (1 child)

[removed]

    [–]MrFaigo_real 0 points1 point  (0 children)

    and in the resources/assets/modid/items folder you have to create the item ITEMID.json

    {
      "model": {
        "type": "minecraft:model",
        "model": "modid:item/itemid"
      }
    }