|
|
|
@@ -7,7 +7,7 @@ Crops grow on Stardew Valley's clock with Minecraft's rules: every morning at 06
|
|
|
|
|
the day before grows a day, then all farmland dries out. The crop shows the stage for how far along it is. A crop with
|
|
|
|
|
`seasons` dies the first morning that's in another season, turning into a `bworld:dead_bush`, so a summer crop has to be
|
|
|
|
|
harvested before autumn comes. The season is its biome's, so a crop that only grows in summer is always out of season in
|
|
|
|
|
a snowy biome. `mods/farmersdelight` adds its cabbages, onions, tomatoes and rice this way.
|
|
|
|
|
a snowy biome.
|
|
|
|
|
|
|
|
|
|
## A Basic Crop
|
|
|
|
|
|
|
|
|
@@ -17,17 +17,17 @@ a snowy biome. `mods/farmersdelight` adds its cabbages, onions, tomatoes and ric
|
|
|
|
|
{
|
|
|
|
|
"format_version": 1,
|
|
|
|
|
"block": {
|
|
|
|
|
"id": "farmersdelight:cabbages",
|
|
|
|
|
"id": "bworld:cabbages",
|
|
|
|
|
"model": "engine:cross",
|
|
|
|
|
"textures": { "cross": "farmersdelight:cabbages_stage0" },
|
|
|
|
|
"textures": { "cross": "bworld:cabbages_stage0" },
|
|
|
|
|
"variants": {
|
|
|
|
|
"age=1": { "textures": { "cross": "farmersdelight:cabbages_stage1" } },
|
|
|
|
|
"age=2": { "textures": { "cross": "farmersdelight:cabbages_stage2" } }
|
|
|
|
|
"age=1": { "textures": { "cross": "bworld:cabbages_stage1" } },
|
|
|
|
|
"age=2": { "textures": { "cross": "bworld:cabbages_stage2" } }
|
|
|
|
|
},
|
|
|
|
|
"render_layer": "cutout",
|
|
|
|
|
"collision": false,
|
|
|
|
|
"mining": { "toughness": 0 },
|
|
|
|
|
"loot_table": "farmersdelight:blocks/cabbages",
|
|
|
|
|
"loot_table": "bworld:blocks/cabbages",
|
|
|
|
|
"item": false,
|
|
|
|
|
"place_on": ["bworld:hoed_dirt"],
|
|
|
|
|
"states": [{ "name": "age", "bits": 3, "default": 0 }],
|
|
|
|
@@ -48,9 +48,9 @@ a snowy biome. `mods/farmersdelight` adds its cabbages, onions, tomatoes and ric
|
|
|
|
|
{
|
|
|
|
|
"format_version": 1,
|
|
|
|
|
"item": {
|
|
|
|
|
"id": "farmersdelight:cabbage_seeds",
|
|
|
|
|
"texture": "farmersdelight:cabbage_seeds",
|
|
|
|
|
"places": "farmersdelight:cabbages"
|
|
|
|
|
"id": "bworld:cabbage_seeds",
|
|
|
|
|
"texture": "bworld:cabbage_seeds",
|
|
|
|
|
"places": "bworld:cabbages"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
@@ -71,11 +71,11 @@ and 1 to 4 seeds, like Minecraft's wheat:
|
|
|
|
|
{
|
|
|
|
|
"entries": [
|
|
|
|
|
{
|
|
|
|
|
"item": "farmersdelight:cabbage",
|
|
|
|
|
"item": "bworld:cabbage",
|
|
|
|
|
"conditions": [{ "condition": "block_state", "states": { "age": 7 } }]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"item": "farmersdelight:cabbage_seeds",
|
|
|
|
|
"item": "bworld:cabbage_seeds",
|
|
|
|
|
"conditions": [
|
|
|
|
|
{ "condition": "inverted", "term": { "condition": "block_state", "states": { "age": 7 } } }
|
|
|
|
|
]
|
|
|
|
@@ -86,7 +86,7 @@ and 1 to 4 seeds, like Minecraft's wheat:
|
|
|
|
|
"conditions": [{ "condition": "block_state", "states": { "age": 7 } }],
|
|
|
|
|
"entries": [
|
|
|
|
|
{
|
|
|
|
|
"item": "farmersdelight:cabbage_seeds",
|
|
|
|
|
"item": "bworld:cabbage_seeds",
|
|
|
|
|
"functions": [{ "function": "set_count", "count": { "n": 3, "p": 0.5714 }, "add": true }]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -119,7 +119,7 @@ Tomatoes are picked instead of broken:
|
|
|
|
|
"days": 11,
|
|
|
|
|
"stages": 8,
|
|
|
|
|
"regrow_days": 4,
|
|
|
|
|
"harvest": "farmersdelight:harvest/tomatoes"
|
|
|
|
|
"harvest": "bworld:harvest/tomatoes"
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@@ -129,7 +129,7 @@ with `loot_tables/harvest/tomatoes.json` giving 1 or 2 tomatoes:
|
|
|
|
|
{
|
|
|
|
|
"format_version": 1,
|
|
|
|
|
"loot_table": {
|
|
|
|
|
"pools": [{ "entries": [{ "item": "farmersdelight:tomato", "count": { "min": 1, "max": 2 } }] }]
|
|
|
|
|
"pools": [{ "entries": [{ "item": "bworld:tomato", "count": { "min": 1, "max": 2 } }] }]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
@@ -147,7 +147,7 @@ block goes through its own `stages`:
|
|
|
|
|
"days": 6,
|
|
|
|
|
"stages": 4,
|
|
|
|
|
"water": "always",
|
|
|
|
|
"upper": { "block": "farmersdelight:rice_panicles", "stages": 4, "supporting_age": 4 },
|
|
|
|
|
"upper": { "block": "bworld:rice_panicles", "stages": 4, "supporting_age": 4 },
|
|
|
|
|
"leaves": "bworld:water"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -157,7 +157,7 @@ The top block uses `bworld:crop_top` with its own `stages`, and its own loot tab
|
|
|
|
|
whole plant:
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
"loot_table": "farmersdelight:blocks/rice_panicles",
|
|
|
|
|
"loot_table": "bworld:blocks/rice_panicles",
|
|
|
|
|
"components": {
|
|
|
|
|
"bworld:crop_top": { "stages": 4 }
|
|
|
|
|
}
|
|
|
|
|