Move farmers delight to bworld

This commit is contained in:
2026-11-01 00:49:05 -03:00
parent 4a713a85d1
commit 61693d611a
161 changed files with 403 additions and 466 deletions
+16 -16
View File
@@ -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 }
}
+1 -1
View File
@@ -205,7 +205,7 @@ A block that isn't a fluid can hold one, like Minecraft's waterlogged fences. `w
- Broken, it leaves a source of the fluid behind.
- Raycasts with `fluids` other than `"none"` hit the fluid in it, filling the block, and say the fluid's id.
The base game's wooden fences are waterloggable, and Farmer's Delight's rice is `waterlogged_only`.
The base game's wooden fences are waterloggable, and rice is `waterlogged_only`.
## Tinting
+1 -1
View File
@@ -97,4 +97,4 @@ look, 0 to 3. Pair it with turning variants, like the furnace:
A lit furnace facing east matches both `facing=1` (its turn) and `lit=1` (its textures).
Turning also turns a [displayed item](tiledata.md#showing-an-item), like the knife on Farmer's Delight's cutting board.
Turning also turns a [displayed item](tiledata.md#showing-an-item), like the knife on the cutting board.
+2 -2
View File
@@ -86,7 +86,7 @@ to every player near it.
## Showing an Item
A block with `item_display` draws one item lying on top of it, like the food on Farmer's Delight's cutting board:
A block with `item_display` draws one item lying on top of it, like the food on cutting board:
```json
"item_display": { "surface": 1 }
@@ -95,7 +95,7 @@ A block with `item_display` draws one item lying on top of it, like the food on
`surface` is the height in pixels the item lies at, 0 to 16. The server script sets the item:
```ts
ctx.world.set_block_item(x, y, z, { id: "farmersdelight:cabbage", count: 1 });
ctx.world.set_block_item(x, y, z, { id: "bworld:cabbage", count: 1 });
const shown = ctx.world.get_block_item(x, y, z); // a copy, or undefined
ctx.world.set_block_item(x, y, z, undefined); // shows nothing
```