Provide a way to set a custom formula for a material at the point of definition in kubejs.
tomprince opened this issue ยท 0 comments
Cross-mod Integration
No response
Feature Description
This is currently possible to do, but it appears to require hooking into two different events:
GTCEuStartupEvents.registry('gtceu:material', event => {
event.create('ammonium_hexachloroplatinate')
.dust()
.color(0xfef0c2).iconSet('metallic')
.flags(GTMaterialFlags.DISABLE_DECOMPOSITION)
.components('2x nitrogen', '8x hydrogen', 'platinum', '6x chlorine')
}
GTCEuStartupEvents.materialModification(() => {
GTMaterials.get('ammonium_hexachloroplatinate').setFormula('(NH4)2PtCl6');
})
It would be nice if there was a way to do this that didn't require doing things into two places.