Amalgamation Wiki
Fabric + NeoForge
Library · Fabric & NeoForge

Model Datagen Helpers

This is the easiest to understand addition with Amalgamation.

To use the helper in your ModelGenerator (possibly "ModModelProvider") you just have to call ModelDatagenHelper with the following methods:

Helper Methods

  1. ModelDatagenHelper.simpleItem(itemModelGenerator, item)

    This will generate a simple item model for your item. Like Diamonds, Emeralds, Iron Ingots and ect.

  2. ModelDatagenHelper.holdingItem(itemModelGenerator, item)

    This will generate a tool-like model for your item. Like Pickaxes, Swords, Shovels, ect.

  3. ModelDatagenHelper.generate3DItem(itemModelGenerator, item)

    This will generate a 3D model for your item. Unlike the other helpers, this one does not give you both models but you need to provide the name of the model file using "example_item_in_hand.json" in your item models directory.

  4. ModelDatagenHelper.trimmable[ArmorType](itemModelGenerator, item, equipmentAssetId, hasDyedLayers)

    This will generate multiple models for your armor piece, which also does trims for you at the same time. Replace [ArmorType] with the appropriate armor type (e.g., Helmet, Chestplate, etc.).

  5. ModelDatagenHelper.sameSidesBlock(blockModelGenerator, block)

    This will generate a block model with the same texture on all sides.

Replacements

  1. itemModelGenerator — The instance of the ItemModelGenerators to run all of it
  2. blockModelGenerator — The instance of the BlockModelGenerators to run all of it
  3. item — The item you want to generate the model for
  4. block — The block you want to generate the model for
  5. equipmentAssetId — The Material Key registered for the item
  6. hasDyedLayers — A boolean indicating if the armor has dyed layers (true or false)