KubeJS

KubeJS

69M Downloads

lava type fluids

najlitarvan opened this issue ยท 3 comments

commented

we can make fluids based on water texture, any chance we might lava based fluids?
texture(the color of the fuid overlayed on top of the animated lava texture

commented

sry and thank you

commented

Absolutely no worries, and feel free to ask more questions in our Discord or over in the Discussions tab if you need anything else!

commented

Already possible, this is known as a fluid with a thick texture (https://github.com/KubeJS-Mods/KubeJS/blob/master/common/src/main/resources/assets/kubejs/textures/fluid/fluid_thick.png)

Possible ways to achieve this include either using fluid.textureStill("kubejs:fluid/fluid_thick") and fluid.textureFlowing("kubejs:fluid/fluid_thick_flow") or just using this method directly if you want to tint the fluid as well:

public FluidBuilder textureThick(int color) {
return textureStill(KubeJS.id("fluid/fluid_thick")).textureFlowing(KubeJS.id("fluid/fluid_thick_flow")).color(color);
}