diff --git a/src/main/java/net/prehistoricdiner/RegistrationHandler.java b/src/main/java/net/prehistoricdiner/RegistrationHandler.java index 2b430cf..e97d99c 100644 --- a/src/main/java/net/prehistoricdiner/RegistrationHandler.java +++ b/src/main/java/net/prehistoricdiner/RegistrationHandler.java @@ -17,16 +17,20 @@ public RegistrationHandler() { @SubscribeEvent public static void registerItems(RegistryEvent.Register event) { Item[] items = new Item[]{ - ((Item)(new ItemFood(2, 1F, false)).setRegistryName("prehistoricdiner", "food_item")).setTranslationKey("prehistoricdiner.food_item").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), + //Example ("amount" is amount of health bars restored, "saturation" is how much it gives you health once hunbger is full (0.5 is about 1-2 hearts). + ((Item)(new ItemFood(2, 0.5F, false)).setRegistryName("prehistoricdiner", "food_item")).setTranslationKey("prehistoricdiner.food_item").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), + + //Food items: ((Item)(new ItemFood(3, 1F, false)).setRegistryName("prehistoricdiner", "grilled_fish_skewer")).setTranslationKey("prehistoricdiner.grilled_fish_skewer").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), + //Non-food items: ((Item)(new ItemDamageableCrafted()).setRegistryName("prehistoricdiner", "skillet")).setTranslationKey("prehistoricdiner.skillet").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), ((Item)(new ItemDamageableCrafted()).setRegistryName("prehistoricdiner", "pot")).setTranslationKey("prehistoricdiner.pot").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), ((Item)(new ItemDamageableCrafted()).setRegistryName("prehistoricdiner", "knife")).setTranslationKey("prehistoricdiner.knife").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), ((Item)(new ItemDamageableCrafted()).setRegistryName("prehistoricdiner", "ladle")).setTranslationKey("prehistoricdiner.ladle").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), ((Item)(new ItemDamageableCrafted()).setRegistryName("prehistoricdiner", "grinder")).setTranslationKey("prehistoricdiner.grinder").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), - ((Item)(new ItemDamageableCrafted()).setRegistryName("prehistoricdiner", "rolling_pin")).setTranslationKey("prehistoricdiner.rolling_pin").setCreativeTab(PrehistoricDiner.CREATIVE_TAB), + ((Item)(new ItemDamageableCrafted()).setRegistryName("prehistoricdiner", "rolling_pin")).setTranslationKey("prehistoricdiner.rolling_pin").setCreativeTab(PrehistoricDiner.CREATIVE_TAB) }; diff --git a/src/main/java/net/prehistoricdiner/client/ModelRegistrationHandler.java b/src/main/java/net/prehistoricdiner/client/ModelRegistrationHandler.java index 455fd09..71975b2 100644 --- a/src/main/java/net/prehistoricdiner/client/ModelRegistrationHandler.java +++ b/src/main/java/net/prehistoricdiner/client/ModelRegistrationHandler.java @@ -19,8 +19,14 @@ public ModelRegistrationHandler() { @SubscribeEvent public static void registerModels(ModelRegistryEvent event) { + //Example: registerModel(ModItems.food_item, 0); + + //Food items: registerModel(ModItems.grilled_fish_skewer, 0); + + + //Non-food items: registerModel(ModItems.skillet, 0); registerModel(ModItems.pot, 0); registerModel(ModItems.grinder, 0); diff --git a/src/main/java/net/prehistoricdiner/init/ModItems.java b/src/main/java/net/prehistoricdiner/init/ModItems.java index e05b6d9..f256d47 100644 --- a/src/main/java/net/prehistoricdiner/init/ModItems.java +++ b/src/main/java/net/prehistoricdiner/init/ModItems.java @@ -5,8 +5,14 @@ @ObjectHolder("prehistoricdiner") public class ModItems { + //Example: public static final Item food_item = null; + + //Food items: public static final Item grilled_fish_skewer = null; + + + //Non-food items: public static final Item skillet = null; public static final Item pot = null; public static final Item grinder = null;