瀏覽代碼

stones and flints can be obtained from gravel by harvesting it by hand

Kolja Strohm 1 天之前
父節點
當前提交
b32fe8a9cd
共有 2 個文件被更改,包括 58 次插入1 次删除
  1. 47 1
      Windows Version/data/blocks/blockTypes.json
  2. 11 0
      Windows Version/data/items/itemTypes.json

+ 47 - 1
Windows Version/data/blocks/blockTypes.json

@@ -22,7 +22,7 @@
   {
     "type": "basicBlock",
     "name": "Stone",
-    "itemType": "Stone",
+    "itemType": "Stone Block",
     "model": {
       "modelPath": "cube",
       "texturePaths": [
@@ -213,6 +213,52 @@
     "hardness": 0.75,
     "groupNames": [
       "Shovel"
+    ],
+    "damagableByHand": true,
+    "drops": [
+      {
+        "type": "blockItem",
+        "condition": {
+          "type": "not",
+          "condition": {
+            "type": "noItem"
+          }
+        }
+      },
+      {
+        "type": "specificItem",
+        "condition": {
+          "type": "operator",
+          "operator": "AND",
+          "conditions": [
+            {
+              "type": "noItem"
+            },
+            {
+              "type": "chance",
+              "chance": 0.2
+            }
+          ]
+        },
+        "itemType": "Flint"
+      },
+      {
+        "type": "specificItem",
+        "condition": {
+          "type": "operator",
+          "operator": "AND",
+          "conditions": [
+            {
+              "type": "noItem"
+            },
+            {
+              "type": "chance",
+              "chance": 0.5
+            }
+          ]
+        },
+        "itemType": "Stone"
+      }
     ]
   },
   {

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

@@ -246,5 +246,16 @@
       ]
     },
     "itemName": "Tree bark"
+  },
+  {
+    "type": "basic",
+    "name": "Stone",
+    "model": {
+      "modelPath": "items.m3/stone",
+      "texturePaths": [
+        "blocks.ltdb/stone.png"
+      ]
+    },
+    "itemName": "Stone"
   }
 ]