Open Mrkuff opened 6 years ago
Another typos in RegistrationHandler section
Method registerModels need to be used instead of registerItems to register Models
Basic items Page: @Mod.EventBusSubscriber public static class RegistrationHandler {
// ...
@SubscribeEvent
public static void registerItems(ModelRegistryEvent event) { -----registerModels
ModItems.registerModels();
}
}
in ModItems and ModBlocks the registering models method are .registerModels() Basic Blocks page: @Mod.EventBusSubscriber public static class RegistrationHandler {
// ...
@SubscribeEvent
public static void registerItems(RegistryEvent.Register<Item> event) {
ModItems.register(event.getRegistry());
ModBlocks.registerItemBlocks(event.getRegistry());
}
@SubscribeEvent
public static void registerModels(ModelRegistryEvent event) {
ModItems.registerItemModels(); ----- ModItems.registerModels();
ModBlocks.registerItemModels(); ----- ModBlocks.registerModels();
}
}
One more : cornSeed in ModItems in Crops page :
// ... public static ItemCornSeed cornSeed = new ItemCornSeed();
public static void register(IForgeRegistry
public static void registerModels() { // ... corn.registerItemModel(); <---- cornSeed.registerItemModel(); } // ...
These all really bugged me.
It's me again! Found this on 1.12 tuto Basic block:
public class ModBlocks {
register.registerAll = registry.registerAll(