#How would i add a new coolant to Mekanism fission reactors

19 messages · Page 1 of 1 (latest)

tame scarab
#

hel p

small cloudBOT
#

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

round lotus
tame scarab
#

alr thank you

tame scarab
#

@round lotus oh btw do you know how to change the color of the gas

round lotus
round lotus
# tame scarab what i didnt understand

to register a mekanism gas (using kubejs as example) you need a gas-id ("gas_name") and a tint color (0x777777) so probably you need to find a way to filter by name all registered gasses and trying to change the tint color (idk if there are other ways to do that)

const $EventBuses = Java.loadClass(
  "dev.architectury.platform.forge.EventBuses"
);
const $GasDeferredRegister = Java.loadClass(
  "mekanism.common.registration.impl.GasDeferredRegister"
);
const GASES = new $GasDeferredRegister("kubejs");

GASES.register("gas_name", 0x777777);

GASES.register($EventBuses.getModEventBus("kubejs").get());
tame scarab
#

oh

#

ok ill try that

tame scarab
round lotus
tame scarab
#

ok thanks

tame scarab
# round lotus yes

now, i got the new gases added in but how do i give them a display name

round lotus
tame scarab
#

can i not do it with kubejs

round lotus