#How do I make custom fluid in Kubejs?

25 messages · Page 1 of 1 (latest)

thorn birch
#

So question how would I go about making a fluid, and making it so i can pick it up in a bucket and place down so it flows?

void pastureBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

thorn birch
#

managed to make the fluid

#

but it turned black

#

even tough i gave it purple color

thorn birch
#
StartupEvents.registry('fluid', e => {
        e.create('molten_insanium')
        .displayName('Molten Insanium')
        .stillTexture('kubejs:block/molten_still')
        .flowingTexture('kubejs:block/molten_flowing')
        .bucketColor('a339d4')
        .thinTexture('a339d4')
})```
fickle current
#

don't use 'a339d4' and instead 0xa339d4

thorn birch
#

ok

thorn birch
#

and invisible in jei

fickle current
#

what is the texture in kubejs/assets/kubejs/block/molten_still.png

thorn birch
#

well

#

its a still texture

#

like the source block of liquids when its not flowing

fickle current
#

yea

#

hmm

#

wait don't use still/flowing and thin at the same time

#

just the pair or the other, both both

#

and if you want to tint it then use .color(0xABCDEF) or what ever

thorn birch
#

k

thorn birch
#

still did not work

#

still all black

void pastureBOT
#

@thorn birch Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!

lavish idol
#
StartupEvents.registry('fluid', e => {
        e.create('molten_insanium')
        .displayName('Molten Insanium')
        .stillTexture('kubejs:block/molten_still')
        .flowingTexture('kubejs:block/molten_flowing')
        .bucketColor(0xa339d4)
        .thinTexture(0xa339d4)
})
#

This should work, as I just had the same issue and resolved it by removing the ' <- from the color.