#Syntax help

11 messages · Page 1 of 1 (latest)

carmine rose
#

Hi there, looking for some quick help with what I think is a syntax issue I'm not smart enough to solve. I want to add some custom fluids in the startup-script, so far I have:

onEvent('fluid.registry', event =>
{
    event.create('thick_fluid')
    .displayName('molten copper')
    .thickTexture(0xFF0000)
    .bucketColor(0xFF0000)

    event.create('thick_fluid')
    .displayName('molten tin')
    .thickTexture(0xFF0000)
    .bucketColor(0xFF0000)

    event.create('thick_fluid')
    .displayName('molten bronze')
    .thickTexture(0xFF0000)
    .bucketColor(0xFF0000)

    event.create('thick_fluid')
    .displayName('molten silver')
    .thickTexture(0xFF0000)
    .bucketColor(0xFF0000)

    event.create('thick_fluid')
    .displayName('molten iron')
    .thickTexture(0xFF0000)
    .bucketColor(0xFF0000)

    event.create('thick_fluid')
    .displayName('molten gold')
    .thickTexture(0xFF0000)
    .bucketColor(0xFF0000)

    event.create('thick_fluid')
    .displayName('molten steel')
    .thickTexture(0xFF0000)
    .bucketColor(0xFF0000)
})

Using: https://wiki.latvian.dev/books/kubejs-legacy/page/custom-fluids

Though only the very first fluid actually gets created 🤔

hybrid flameBOT
#

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

steel nova
#

You are registering thick_fluid 7 times in a row.
Name the liquids differently.

carmine rose
#

Aha, I'm a nonce

steel nova
#

(the thick_liquid is an ID)

carmine rose
#

Iiiii see

steel nova
#

So molten_copper, molten_steel, etc.

carmine rose
#

Gotcha

#

Yeah I'm used to Crafttweaker, only just started to learn Kube

#

But thanks for the help