diff --git a/src/main/java/io/yooksi/cococakes/item/ModItems.java b/src/main/java/io/yooksi/cococakes/item/ModItems.java index 61c9e46..df5abab 100644 --- a/src/main/java/io/yooksi/cococakes/item/ModItems.java +++ b/src/main/java/io/yooksi/cococakes/item/ModItems.java @@ -6,6 +6,8 @@ public enum ModItems { + COCOA_POWDER(new ModItem(), "cocoa_powder"); + private final Item item; ModItems(Item item, String name) { diff --git a/src/main/resources/assets/cococakes/lang/en_US.json b/src/main/resources/assets/cococakes/lang/en_US.json index 27bb1c3..15a0c78 100644 --- a/src/main/resources/assets/cococakes/lang/en_US.json +++ b/src/main/resources/assets/cococakes/lang/en_US.json @@ -1,3 +1,4 @@ { "itemGroup.cococakes": "CocoCakes", + "item.cococakes.cocoa_powder": "Cocoa Powder" } diff --git a/src/main/resources/assets/cococakes/models/item/cocoa_powder.json b/src/main/resources/assets/cococakes/models/item/cocoa_powder.json new file mode 100644 index 0000000..0753e86 --- /dev/null +++ b/src/main/resources/assets/cococakes/models/item/cocoa_powder.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "cococakes:cocoa_powder" + } +} diff --git a/src/main/resources/data/cococakes/recipes/brown_dye_from_cocoa.json b/src/main/resources/data/cococakes/recipes/brown_dye_from_cocoa.json new file mode 100644 index 0000000..5a9ece0 --- /dev/null +++ b/src/main/resources/data/cococakes/recipes/brown_dye_from_cocoa.json @@ -0,0 +1,12 @@ +{ + "type": "minecraft:crafting_shapeless", + "group": "brown_dye", + "ingredients": [ + { + "item": "cococakes:cocoa_powder" + } + ], + "result": { + "item": "minecraft:brown_dye" + } +} diff --git a/src/main/resources/data/cococakes/recipes/cocoa_powder.json b/src/main/resources/data/cococakes/recipes/cocoa_powder.json new file mode 100644 index 0000000..f2cd71b --- /dev/null +++ b/src/main/resources/data/cococakes/recipes/cocoa_powder.json @@ -0,0 +1,14 @@ +{ + "type": "crafting_shapeless", + "ingredients": [ + { + "item": "minecraft:cobblestone" + }, + { + "item": "minecraft:cocoa_beans" + } + ], + "result": { + "item": "cococakes:cocoa_powder" + } +}