Browse Source

allow crafting lecterns with mod bookshelves

Kajetan Johannes Hammerle 2 years ago
parent
commit
70f51adf32

+ 11 - 0
src/main/resources/data/km/tags/blocks/bookshelf.json

@@ -0,0 +1,11 @@
+{
+    "replace": false,
+    "values": [
+        "minecraft:bookshelf",
+        "km:bookshelf_birch",
+        "km:bookshelf_spruce",
+        "km:bookshelf_jungle",
+        "km:bookshelf_acacia",
+        "km:bookshelf_dark_oak"
+    ]
+}

+ 11 - 0
src/main/resources/data/km/tags/items/bookshelf.json

@@ -0,0 +1,11 @@
+{
+    "replace": false,
+    "values": [
+        "minecraft:bookshelf",
+        "km:bookshelf_birch",
+        "km:bookshelf_spruce",
+        "km:bookshelf_jungle",
+        "km:bookshelf_acacia",
+        "km:bookshelf_dark_oak"
+    ]
+}

+ 16 - 16
src/main/resources/data/minecraft/recipes/bookshelf.json

@@ -1,19 +1,19 @@
 {
-  "type": "minecraft:crafting_shaped",
-  "pattern": [
-    "###",
-    "XXX",
-    "###"
-  ],
-  "key": {
-    "#": {
-      "item": "minecraft:oak_planks"
+    "type": "minecraft:crafting_shaped",
+    "pattern": [
+        "###",
+        "XXX",
+        "###"
+    ],
+    "key": {
+        "#": {
+            "item": "minecraft:oak_planks"
+        },
+        "X": {
+            "item": "minecraft:book"
+        }
     },
-    "X": {
-      "item": "minecraft:book"
+    "result": {
+        "item": "minecraft:bookshelf"
     }
-  },
-  "result": {
-    "item": "minecraft:bookshelf"
-  }
-}
+}

+ 19 - 0
src/main/resources/data/minecraft/recipes/lectern.json

@@ -0,0 +1,19 @@
+{
+    "type": "minecraft:crafting_shaped",
+    "pattern": [
+        "SSS",
+        " B ",
+        " S "
+    ],
+    "key": {
+        "S": {
+            "tag": "minecraft:wooden_slabs"
+        },
+        "B": {
+            "tag": "km:bookshelf"
+        }
+    },
+    "result": {
+        "item": "minecraft:lectern"
+    }
+}