1.1 KiB
1.1 KiB
Fluids
Fluids are what bottles and tanks hold, like juice or oil. They work like NeoForge's FluidTypes: a fluid is defined
once, apart from any block, container or amount.
This isn't the same as a block with fluid, 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:
{
"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. |
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. |