Glass bottle, buckets and juice !
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user