Skip to content

Commit

Permalink
Add cocoa powder item
Browse files Browse the repository at this point in the history
Resolves #1
  • Loading branch information
matshou committed Apr 20, 2020
1 parent 3b27fa3 commit ba5cb65
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/yooksi/cococakes/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

public enum ModItems {

COCOA_POWDER(new ModItem(), "cocoa_powder");

private final Item item;

ModItems(Item item, String name) {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/cococakes/lang/en_US.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"itemGroup.cococakes": "CocoCakes",
"item.cococakes.cocoa_powder": "Cocoa Powder"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "cococakes:cocoa_powder"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "minecraft:crafting_shapeless",
"group": "brown_dye",
"ingredients": [
{
"item": "cococakes:cocoa_powder"
}
],
"result": {
"item": "minecraft:brown_dye"
}
}
14 changes: 14 additions & 0 deletions src/main/resources/data/cococakes/recipes/cocoa_powder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": "crafting_shapeless",
"ingredients": [
{
"item": "minecraft:cobblestone"
},
{
"item": "minecraft:cocoa_beans"
}
],
"result": {
"item": "cococakes:cocoa_powder"
}
}

0 comments on commit ba5cb65

Please sign in to comment.