Browse Source

add knife item

Kolja Strohm 2 weeks ago
parent
commit
531411e182

+ 13 - 0
Windows Version/data/items/itemTypes.json

@@ -327,5 +327,18 @@
     "itemName": "Thread",
     "hp": 1,
     "durability": 10
+  },
+  {
+    "type": "basic",
+    "name": "Knife",
+    "model": {
+      "modelPath": "data/models/tools.m3/knife",
+      "texturePaths": [
+        "data/textures/tools.ltdb/knife.png"
+      ]
+    },
+    "itemName": "Knife",
+    "hp": 1,
+    "durability": 10
   }
 ]

BIN
Windows Version/data/models/tools.m3


+ 96 - 53
Windows Version/data/recipies/tools.json

@@ -1,57 +1,100 @@
 [
-    {
-        "type": "shaped",
-        "group": "inventory",
-        "width": 2,
-        "height": 3,
-        "inputs": [
-            {
-                "x": 0,
-                "y": 0,
-                "input": {
-                    "filter": {
-                        "type": "type",
-                        "itemType": "Flint"
-                    }
-                }
-            },
-            {
-                "x": 1,
-                "y": 0,
-                "input": {
-                    "filter": {
-                        "type": "type",
-                        "itemType": "Flint"
-                    }
-                }
-            },
-            {
-                "x": 1,
-                "y": 1,
-                "input": {
-                    "filter": {
-                        "type": "type",
-                        "itemType": "Wooden Stick"
-                    }
-                }
-            },
-            {
-                "x": 1,
-                "y": 2,
-                "input": {
-                    "filter": {
-                        "type": "type",
-                        "itemType": "Wooden Stick"
-                    }
-                }
-            }
-        ],
-        "outputs": [
-            {
-                "itemType": "Hoe"
-            }
-        ]
-    },
+  {
+    "type": "shaped",
+    "group": "inventory",
+    "width": 1,
+    "height": 3,
+    "inputs": [
+      {
+        "x": 0,
+        "y": 0,
+        "input": {
+          "filter": {
+            "type": "type",
+            "itemType": "Flint"
+          }
+        }
+      },
+      {
+        "x": 0,
+        "y": 1,
+        "input": {
+          "filter": {
+            "type": "type",
+            "itemType": "Thread"
+          }
+        }
+      },
+      {
+        "x": 0,
+        "y": 2,
+        "input": {
+          "filter": {
+            "type": "type",
+            "itemType": "Wooden Stick"
+          }
+        }
+      }
+    ],
+    "outputs": [
+      {
+        "itemType": "Knife"
+      }
+    ]
+  },
+  {
+    "type": "shaped",
+    "group": "inventory",
+    "width": 2,
+    "height": 3,
+    "inputs": [
+      {
+        "x": 0,
+        "y": 0,
+        "input": {
+          "filter": {
+            "type": "type",
+            "itemType": "Flint"
+          }
+        }
+      },
+      {
+        "x": 1,
+        "y": 0,
+        "input": {
+          "filter": {
+            "type": "type",
+            "itemType": "Flint"
+          }
+        }
+      },
+      {
+        "x": 1,
+        "y": 1,
+        "input": {
+          "filter": {
+            "type": "type",
+            "itemType": "Wooden Stick"
+          }
+        }
+      },
+      {
+        "x": 1,
+        "y": 2,
+        "input": {
+          "filter": {
+            "type": "type",
+            "itemType": "Wooden Stick"
+          }
+        }
+      }
+    ],
+    "outputs": [
+      {
+        "itemType": "Hoe"
+      }
+    ]
+  },
   {
     "type": "shaped",
     "group": "inventory",