ContentTweaker Fluid Tinting in Lightwell
xt9 opened this issue ยท 4 comments
When adding lightwell recipes for ContentTweaker fluids the tinting/color code is not applied when rendering the liquid that's inside the Lightwell.
I compared a few tanks to see if they had similiar issues but it seems most of them render fluids from ContentTweaker with the specified color.
https://i.imgur.com/VhmJ1u2.png
The only other outlier I've seen is OpenBlocks tanks but they've already fixed it for an upcoming build OpenMods/OpenBlocks#894
Would be super cool if this was fixed.
Thanks in advance.
Would be good to have a list of the fluids you're sering this with, AS version, and Forge version.
Forge 14.23.4.2739
AstralSorcery-1.12.2-1.9.4.jar
ContentTweaker-1.12.2-4.7.0.jar
It's probably redundant to include all of the CT information since this is probably related to getColor() in the forge fluid API, but here it is none the less.
ContentTweaker script
#loader contenttweaker
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Fluid;
import mods.contenttweaker.Color;
var trollEyeGoop = VanillaFactory.createFluid("troll_eye_goop", Color.fromHex("CEA575"));
trollEyeGoop.register();
To fully reproduce you also need a blockstate for the fluid in the contenttweaker resources folder
resources/contenttweaker/blockstates/troll_eye_goop.json
{
"forge_marker": 1,
"defaults": {
"model": "forge:fluid",
"custom": {
"fluid": "troll_eye_goop"
}
},
"variants": {
"normal": [{}]
}
}
Yes, Tinkers' Construct fluids also render without their tint.
https://i.imgur.com/fDgfZRC.png
I also found that molten uranium from IE renders without a color.
https://i.imgur.com/GD2Hl6J.png