Kaynağa Gözat

add cotton plants, wool and thread

Kolja Strohm 3 ay önce
ebeveyn
işleme
e9505bdec4

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

@@ -921,114 +921,6 @@
       "Shovel"
     ]
   },
-  {
-    "type": "growingPlant",
-    "name": "WheatSeeds",
-    "readableName": "Growing wheat",
-    "blockTypeAfterGrowth": "Wheat",
-    "model": {
-      "modelPath": "grass",
-      "texturePaths": [
-        "plants.ltdb/wheatseeds.png"
-      ],
-      "transparent": true
-    },
-    "mapColor": "0x5076C011",
-    "hardness": 0.1,
-    "ticksNeeded": 18000,
-    "states": [
-      {
-        "percentage": 0.2,
-        "model": {
-          "modelPath": "grass",
-          "texturePaths": [
-            "plants.ltdb/wheatseedsa.png"
-          ],
-          "transparent": true
-        }
-      },
-      {
-        "percentage": 0.4,
-        "model": {
-          "modelPath": "grass",
-          "texturePaths": [
-            "plants.ltdb/wheatseedsb.png"
-          ],
-          "transparent": true
-        }
-      },
-      {
-        "percentage": 0.6,
-        "model": {
-          "modelPath": "grass",
-          "texturePaths": [
-            "plants.ltdb/wheatseedsc.png"
-          ],
-          "transparent": true
-        }
-      },
-      {
-        "percentage": 0.8,
-        "model": {
-          "modelPath": "grass",
-          "texturePaths": [
-            "plants.ltdb/wheatseedsd.png"
-          ],
-          "transparent": true
-        }
-      }
-    ]
-  },
-  {
-    "type": "basicBlock",
-    "name": "Wheat",
-    "itemType": null,
-    "model": {
-      "modelPath": "grass",
-      "texturePaths": [
-        "plants.ltdb/wheat.png"
-      ]
-    },
-    "mapColor": "0x90A8C011",
-    "drops": [
-      {
-        "type": "specificItem",
-        "condition": {
-          "type": "chance",
-          "chance": 0.6
-        },
-        "amount": 1,
-        "itemType": "Wheat"
-      },
-      {
-        "type": "specificItem",
-        "condition": {
-          "type": "chance",
-          "chance": 0.6
-        },
-        "amount": 1,
-        "itemType": "Wheat"
-      },
-      {
-        "type": "specificItem",
-        "condition": {
-          "type": "chance",
-          "chance": 0.6
-        },
-        "amount": 1,
-        "itemType": "Wheat"
-      },
-      {
-        "type": "specificItem",
-        "condition": {
-          "type": "chance",
-          "chance": 0.6
-        },
-        "amount": 1,
-        "itemType": "Wheat"
-      }
-    ]
-  },
   {
     "type": "fluid",
     "name": "Water",

+ 205 - 0
Windows Version/data/blocks/plants.json

@@ -0,0 +1,205 @@
+[
+    {
+        "type": "growingPlant",
+        "name": "WheatSeeds",
+        "readableName": "Growing wheat",
+        "blockTypeAfterGrowth": "Wheat",
+        "model": {
+            "modelPath": "grass",
+            "texturePaths": [
+                "plants.ltdb/wheatseeds.png"
+            ],
+            "transparent": true
+        },
+        "mapColor": "0x5076C011",
+        "hardness": 0.1,
+        "ticksNeeded": 18000,
+        "states": [
+            {
+                "percentage": 0.2,
+                "model": {
+                    "modelPath": "grass",
+                    "texturePaths": [
+                        "plants.ltdb/wheatseedsa.png"
+                    ],
+                    "transparent": true
+                }
+            },
+            {
+                "percentage": 0.4,
+                "model": {
+                    "modelPath": "grass",
+                    "texturePaths": [
+                        "plants.ltdb/wheatseedsb.png"
+                    ],
+                    "transparent": true
+                }
+            },
+            {
+                "percentage": 0.6,
+                "model": {
+                    "modelPath": "grass",
+                    "texturePaths": [
+                        "plants.ltdb/wheatseedsc.png"
+                    ],
+                    "transparent": true
+                }
+            },
+            {
+                "percentage": 0.8,
+                "model": {
+                    "modelPath": "grass",
+                    "texturePaths": [
+                        "plants.ltdb/wheatseedsd.png"
+                    ],
+                    "transparent": true
+                }
+            }
+        ]
+    },
+    {
+        "type": "basicBlock",
+        "name": "Wheat",
+        "itemType": null,
+        "model": {
+            "modelPath": "grass",
+            "texturePaths": [
+                "plants.ltdb/wheat.png"
+            ]
+        },
+        "mapColor": "0x90A8C011",
+        "drops": [
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.6
+                },
+                "amount": 1,
+                "itemType": "Wheat"
+            },
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.6
+                },
+                "amount": 1,
+                "itemType": "Wheat"
+            },
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.6
+                },
+                "amount": 1,
+                "itemType": "Wheat"
+            },
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.6
+                },
+                "amount": 1,
+                "itemType": "Wheat"
+            }
+        ]
+    },
+    {
+        "type": "growingPlant",
+        "name": "CottonSeeds",
+        "readableName": "Growing Cotton",
+        "blockTypeAfterGrowth": "Cotton Plant",
+        "model": {
+            "modelPath": "grass",
+            "texturePaths": [
+                "plants.ltdb/cottonseeds.png"
+            ],
+            "transparent": true
+        },
+        "mapColor": "0x909090",
+        "hardness": 0.1,
+        "ticksNeeded": 18000,
+        "states": [
+            {
+                "percentage": 0,
+                "model": {
+                    "modelPath": "plants.m3/smallPlant",
+                    "texturePaths": [
+                        "plants.ltdb/smallplant.png"
+                    ]
+                }
+            },
+            {
+                "percentage": 0.5,
+                "model": {
+                    "modelPath": "plants.m3/cotton_growing",
+                    "texturePaths": [
+                        "plants.ltdb/cottongrowing."
+                    ]
+                }
+            }
+        ]
+    },
+    {
+        "type": "basicBlock",
+        "name": "Cotton Plant",
+        "itemType": null,
+        "model": {
+            "modelPath": "plants.m3/cotton",
+            "texturePaths": [
+                "plants.ltdb/cotton.png"
+            ]
+        },
+        "mapColor": "0xB0B0B0",
+        "drops": [
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.75
+                },
+                "amount": 1,
+                "itemType": "Wool"
+            },
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.75
+                },
+                "amount": 1,
+                "itemType": "Wool"
+            },
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.75
+                },
+                "amount": 1,
+                "itemType": "Wool"
+            },
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.7
+                },
+                "amount": 1,
+                "itemType": "CottonSeeds"
+            },
+            {
+                "type": "specificItem",
+                "condition": {
+                    "type": "chance",
+                    "chance": 0.4
+                },
+                "amount": 1,
+                "itemType": "CottonSeeds"
+            }
+        ]
+    }
+]

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

@@ -275,5 +275,31 @@
     "itemName": "Glue",
     "hp": 1,
     "durability": 10
+  },
+  {
+    "type": "basic",
+    "name": "Wool",
+    "model": {
+      "modelPath": "items.m3/cottonpiece",
+      "texturePaths": [
+        "items.ltdb/cottonpiece.png"
+      ]
+    },
+    "itemName": "Wool",
+    "hp": 1,
+    "durability": 10
+  },
+  {
+    "type": "basic",
+    "name": "Thread",
+    "model": {
+      "modelPath": "items.m3/thread",
+      "texturePaths": [
+        "items.ltdb/thread.png"
+      ]
+    },
+    "itemName": "Thread",
+    "hp": 1,
+    "durability": 10
   }
 ]

+ 32 - 0
Windows Version/data/recipies/basicItems.json

@@ -452,5 +452,37 @@
     ],
     "type": "shaped",
     "width": 3
+  },
+  {
+    "type": "unshaped",
+    "group": "inventory",
+    "inputs": [
+      {
+        "amount": 1,
+        "filter": {
+          "type": "type",
+          "itemType": "Wool"
+        }
+      },
+      {
+        "amount": 1,
+        "filter": {
+          "type": "type",
+          "itemType": "Wool"
+        }
+      },
+      {
+        "amount": 1,
+        "filter": {
+          "type": "type",
+          "itemType": "Wool"
+        }
+      }
+    ],
+    "outputs": [
+      {
+        "itemType": "Thread"
+      }
+    ]
   }
 ]