#fluids are not created correctly

12 messages · Page 1 of 1 (latest)

potent sparrow
#

I created two fluids, the first one worked, however, the color turned white and in the water style, instead of the lava style that I put, and the second one wasn't even created

onEvent('fluid.registry', event => {
    event.create('molten_andesite')
        .thickTexture(0x898989)
        .bucketColor(0x898989)
        .displayName('Molten Andesite')
        .luminosity(8)
    
    event.create('molten_andesite_alloy')
        .thickTexture(0x6e7870)
        .bucketColor(0x6e7870)
        .displayName('Molten Andesite Alloy')
        .luminosity(8)
})```
pliant skyBOT
#

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

dusty plank
#

show me your startup.txt

#

you can also remove the .displayName()

potent sparrow
dusty plank
#

/logs/kubejs/startup.txt

potent sparrow
#
[14:52:35] [INFO ] Hello, World! (You will only see this line once in console, during startup)
[14:52:35] [INFO ] Loaded script startup_scripts:script.js in 0.621 s
[14:52:35] [INFO ] Loaded 1/1 KubeJS startup scripts in 1.458 s
[14:52:36] [ERR  ] Error occurred while handling event 'fluid.registry': TypeError: Cannot find function thickTexture in object dev.latvian.kubejs.fluid.FluidBuilder@417bbc21. (startup_scripts:script.js#20)
dusty plank
#

ah

#

try textureThick()

potent sparrow
#

same error

dusty plank
#

show me again hmmm

potent sparrow
#

work