Glass bottle, buckets and juice !

This commit is contained in:
2026-10-25 15:22:50 -03:00
parent 436f68ce33
commit 583cce88c1
9 changed files with 170 additions and 10 deletions
+22
View File
@@ -23,6 +23,28 @@ An item with a `food` property can be eaten. Players eat by right clicking while
Food that places a block, like potatoes with `places`, is planted when clicked somewhere it can go and eaten otherwise.
## Juice
Items that can be juiced, like fruit, have the base game's `bworld:juiceable` component:
```json
"components": {
"bworld:juiceable": { "juice": 100, "color": "#c42d39" }
}
```
| Param | What it does |
| ------- | ------------------------------------------------- |
| `juice` | How much juice one makes, in mB. A bottle is 250. |
| `color` | The juice's color, like `"#c42d39"`. |
All juice is one [fluid](../resources/fluids.md), `bworld:juice`, and the item it's made from is in its data:
`{ "id": "bworld:juice", "data": { "item": "bworld:strawberry" } }`. The base game's rules name it after that item,
"Strawberry Juice", in the color its component says, so juice from another mod's item needs nothing but the component.
Juices from different items are different fluids, so they never share a bottle or a tank. Glass bottles
(`bworld:glass_bottle`, 250 mB) and buckets (`bworld:bucket`, 1000 mB) hold it, and whatever makes juice reads the
component.
## Hunger and Health
Hunger and health work like Minecraft's: