Fluid rendering in graphics
This commit is contained in:
@@ -23,17 +23,17 @@ here has no block, so it can't be placed.
|
||||
}
|
||||
```
|
||||
|
||||
| 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. |
|
||||
| `texture` | no | What a [box of it](../blocks/visuals.md#fluids) is drawn with, tinted by its color, like NeoForge's still texture. See below. |
|
||||
| `base_sell_value` | no | What 1000 mB is worth sold in a [container](#containers), a whole number of 0 or more. None when not set. |
|
||||
| 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. |
|
||||
| `texture` | no | What a [box of it](../blocks/visuals.md#fluids) and [a slot of it](../gui/index.md#graphics) are drawn with, tinted by its color, like NeoForge's still texture. See below. |
|
||||
| `base_sell_value` | no | What 1000 mB is worth sold in a [container](#containers), a whole number of 0 or more. None when not set. |
|
||||
|
||||
Like a fluid container's layer, the texture is multiplied by the fluid's color, so a light gray one comes out in the
|
||||
fluid's own color, and its alpha is how much shows through. The base game's `bworld:water_still` is such a texture,
|
||||
animated, and any fluid can use it. Without one, a box of the fluid is drawn with the missing texture.
|
||||
animated, and any fluid can use it. Without one, the fluid is drawn with the missing texture.
|
||||
|
||||
## Fluids With Data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user