Open nics-le opened 6 months ago
for now, ill make the barrel appear closed, this should fix the liquid level issue (we could possible add an animation where the lid moves (like what happens with chest.
for the Cauldron we can have a full state and a empty state. we could add a third stage so we have;
Empty (at 0% full) Half full (under 50%) full (over 50%)
I think the best solution is ti use the two stage approach
Means: an empty barrel should look like an empty barrel (as it does in status quo in every state), a half filled barrel should look like a half filled barrel and a full barrel should look like a full barrel. And liquids surface color should match with it's ingredients too.
Problems: While modifying the top texture (for liquid surface) could be done by filters etc (so we can even set its color dynamically by malts EBC value) it's not so easy to dynamically change the nodebox model to show liquids current volume. Actually it's not possible since minetest engine doesn't support it.
So our only option is to register a node for each liquid volume level and dynamically replace the nodes if barrel/cauldron got filled (or liquid is taken from it).
Questions: