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

Allow setting material formula from builder. #2594

Open
wants to merge 1 commit into
base: 1.20.1
Choose a base branch
from

Conversation

tomprince
Copy link
Contributor

@tomprince tomprince commented Dec 19, 2024

What

Allow kubejs to set the formula for newly defined materials, without needing to use -GTCEuStartupEvents.materialModification in addition to GTCEuStartupEvents.registry('gtceu:material', ...).

Outcome

Fixes: #2515.

Example

event.create('naquadah_hydroxide')
    .dust()
    .color(0x1941a6).iconSet('dull')
    .components('naquadah', '3x hydrogen', '3x oxygen')
    .formula('Nq(OH)3');

@tomprince tomprince requested a review from a team as a code owner December 19, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a way to set a custom formula for a material at the point of definition in kubejs.
1 participant