Explorar o código

add camp fire

Kolja Strohm hai 2 días
pai
achega
e429f374c1

+ 26 - 0
Windows Version/data/blocks/blockTypes.json

@@ -179,6 +179,7 @@
     },
     "mapColor": "0xFF6A7C37",
     "hardness": 0.1,
+    "damagableByHand": true,
     "drops": [
       {
         "type": "specificItem",
@@ -188,6 +189,15 @@
         },
         "amount": 1,
         "itemType": "Oak Wood Sapling"
+      },
+      {
+        "type": "specificItem",
+        "condition": {
+          "type": "chance",
+          "chance": 0.2
+        },
+        "amount": 1,
+        "itemType": "Wooden Stick"
       }
     ],
     "groupNames": [
@@ -417,6 +427,7 @@
     },
     "mapColor": "0xFF6A7C37",
     "hardness": 0.1,
+    "damagableByHand": true,
     "drops": [
       {
         "type": "specificItem",
@@ -562,6 +573,7 @@
     },
     "mapColor": "0xFF6A7C37",
     "hardness": 0.1,
+    "damagableByHand": true,
     "drops": [
       {
         "type": "specificItem",
@@ -742,6 +754,7 @@
     },
     "mapColor": "0xFF6A7C37",
     "hardness": 0.1,
+    "damagableByHand": true,
     "drops": [
       {
         "type": "specificItem",
@@ -1075,5 +1088,18 @@
     "groupNames": [
       "Wood"
     ]
+  },
+  {
+    "type": "lightSource",
+    "name": "Campfire",
+    "itemType": "Campfire",
+    "model": {
+      "modelPath": "blocks.m3/campfire",
+      "texturePaths": [
+        "blocks.ltdb/campfire.png"
+      ]
+    },
+    "mapColor": "0xFFE25822",
+    "lightColor": "0x00E25822"
   }
 ]

+ 104 - 1
Windows Version/data/recipies/blocks.json

@@ -1,6 +1,6 @@
 [
     {
-        "type":"shaped",
+        "type": "shaped",
         "group": "inventory",
         "width": 3,
         "height": 3,
@@ -101,5 +101,108 @@
                 "itemType": "Wooden Chest"
             }
         ]
+    },
+    {
+        "type": "shaped",
+        "group": "inventory",
+        "width": 3,
+        "height": 3,
+        "inputs": [
+            {
+                "x": 1,
+                "y": 1,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Tree bark"
+                    }
+                }
+            },
+            {
+                "x": 0,
+                "y": 0,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Stone"
+                    }
+                }
+            },
+            {
+                "x": 0,
+                "y": 1,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Wooden Stick"
+                    }
+                }
+            },
+            {
+                "x": 0,
+                "y": 2,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Stone"
+                    }
+                }
+            },
+            {
+                "x": 1,
+                "y": 0,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Wooden Stick"
+                    }
+                }
+            },
+            {
+                "x": 1,
+                "y": 2,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Wooden Stick"
+                    }
+                }
+            },
+            {
+                "x": 2,
+                "y": 0,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Stone"
+                    }
+                }
+            },
+            {
+                "x": 2,
+                "y": 1,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Wooden Stick"
+                    }
+                }
+            },
+            {
+                "x": 2,
+                "y": 2,
+                "input": {
+                    "filter": {
+                        "type": "type",
+                        "itemType": "Stone"
+                    }
+                }
+            }
+        ],
+        "outputs": [
+            {
+                "itemType": "Campfire"
+            }
+        ]
     }
 ]