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

[Feature] Material Generation #2

Open
6 of 7 tasks
bioastroiner opened this issue Dec 29, 2023 · 0 comments · May be fixed by #3
Open
6 of 7 tasks

[Feature] Material Generation #2

bioastroiner opened this issue Dec 29, 2023 · 0 comments · May be fixed by #3
Assignees
Labels
enhancement New feature or request feature add this new feature pweees

Comments

@bioastroiner
Copy link
Owner

bioastroiner commented Dec 29, 2023

Implement a way to generate new Materials for gregtech 6 using MineTweaker

Materials

  • Material Builder
  • Command for Material Tags
    ~~- [ ] Material Removal ~~ will not be implemented
  • Material Hiding
  • MaterialData Removal And Addition to/from Items
    - [ ] Json Materaial Dumper post poned
  • EventBased Material Registeration (if possible only register materials on loading the game and not on reload done)

Prefix

  • Prefix Builder
  • Prefix Registerstion

Materials can be made by calling the static method IMaterial.createNewMaterial where you pass an ID a the first argument and for second argument an OreDict Name, Optionaly you can pass LocalName for the third argument as well as it can be canged later using the builder.

Note that there is now 2 new script folders postPreInit and AfterInit the first used for material registeration and is called right after all mods are done trough their PreInit phase so the chance for conflict is minimized!

The latter AfterInit is not fully implemented yet and is going to be used for features such as adding new Machines TileEntities and all that good stuff!

This will return a builder which you can call methods on, if however the ID you chose was already occupied by an existing material the second OreDict name argument will be ignored (so it becomes optional) and you will retrive a builder to edit an already existing material.

Alternativrly you can call a IMaterial bracket handler's .edit() method which yields a Builder and you can edit material properties as above.

@bioastroiner bioastroiner added enhancement New feature or request feature add this new feature pweees labels Dec 29, 2023
@bioastroiner bioastroiner self-assigned this Dec 29, 2023
@bioastroiner bioastroiner linked a pull request Dec 31, 2023 that will close this issue
@bioastroiner bioastroiner linked a pull request Dec 31, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature add this new feature pweees
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant