Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to disable tiny/small dusts for custom materials added through KJS at the point of definition.. #2514

Open
tomprince opened this issue Dec 8, 2024 · 0 comments · May be fixed by #2595 or #2627
Labels
type: feature New feature or request

Comments

@tomprince
Copy link
Contributor

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('iridium_dioxide_residue')
        .dust()
        .color(0x17182e).iconSet('rough')
        .flags(GTMaterialFlags.DISABLE_DECOMPOSITION)
        .components('iridium', '2x oxygen', 'rare_earth');
}

GTCEuStartupEvents.materialModification(() => {
    TagPrefix.dustTiny.setIgnored( GTMaterials.get('iridium_dioxide_residue'));
})

It would be nice if there was a way to do this that didn't require doing things into two places (perhaps a GTMaterialFlag).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
1 participant