#Issues renaming fluid

10 messages · Page 1 of 1 (latest)

velvet beacon
#

Hi, I'm able to rename items just fine but when attempting to rename a fluid I run into some issues. See images for the code lines I've tried. I also looked through the previous posts and found one (which inspired me to create the top 2 lines). none have been successful yet!

Any solution?

dark dewBOT
#

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

velvet beacon
#

I also tried
event.renameBlock(Fluid.of(createbigcannons:molten_nethersteel), 'Molten Kingsteel');
yet it didnt work either XD

velvet beacon
#

:(

round kayak
#

This is broken

#

I tried to do the same a while back

#

I think i got something working in the end doing this ^

kind glenBOT
#

[➤](#1390649998311424020 message)
at client scripts

let newLang = {
  "fluid.kubejs.jelly": "Jam",
  "fluid_type.kubejs.jelly": "Jam",
  "block.kubejs.jelly": "Jam",
  "fluid.kubejs.flowing_jelly": "Flowing Jam",
  "item.kubejs.jelly_bucket": "Jam Bucket"
}

let newLangByCountry = {
  "en_gb": newLang,
  "en_nz": newLang,
  "en_au": newLang
}

for (let lang in newLangByCountry) {
  ClientEvents.lang(lang, event => {
    event.addAll(newLangByCountry[lang])
  })
}

at startup:

StartupEvents.registry("fluid", event => {
    let thickFluid = event.create("kubejs:jelly", "thick")
      .tint(0xFF0000)
})