Fluid registry
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Fluids
|
||||
|
||||
Fluids are what bottles and tanks hold, like juice or oil. They work like NeoForge's `FluidType`s: a fluid is defined
|
||||
once, apart from any block, container or amount.
|
||||
|
||||
This isn't the same as a [block with `fluid`](../blocks/index.md#fluids), like water, which flows in the world. A fluid
|
||||
here has no block, so it can't be placed.
|
||||
|
||||
## Defining a Fluid
|
||||
|
||||
`fluids/maple_syrup.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"format_version": 1,
|
||||
"fluid": {
|
||||
"id": "copper_tools:maple_syrup",
|
||||
"name": "Maple Syrup",
|
||||
"color": "#a0522d"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
| Field | Required | What it does |
|
||||
| ------- | -------- | ------------------------------------------------------------------------------------------- |
|
||||
| `id` | yes | The fluid's id, in the mod's [namespace](../concepts/registries.md#identifiers). |
|
||||
| `name` | no | What players see. `copper_tools:maple_syrup` is "Maple Syrup" when not set, like an item's. |
|
||||
| `color` | yes | Its color, like `"#a0522d"`, for whatever shows it. |
|
||||
Reference in New Issue
Block a user