You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so im now editing moartinkers to try add support for compendium armours
added the stats, but it seems its not working.
i intend to do the same for conarm but not yet got to it due to running into this issue with compendium.
so this is how compendium registers its stats
TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new HelmMaterialStats(420, 3, 1, 0.4f));
TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new ChestMaterialStats(420, 6, 1, 0.8f));
TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new LegsMaterialStats(420, 5, 1, 0.6f));
TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new FeetMaterialStats(420, 3, 1, 0.2f));
so i checked HelmMaterialStats which is one of the 4 from compendium
public HelmMaterialStats(int durability, int rating, int toughness, float potency) {
super(durability, rating, toughness,potency, TYPE);
}
went into MaterialRegistration in moartinkers and added this
MaterialRegistrationBuilder setHelm(int durability, int rating, int toughness, float potency) {
this.helm = new HelmMaterialStats(durability, rating, toughness, potency);
return this;
}
then i did the same for chest, legs and feet
updated the code that registers them in MaterialRegistration
If you're simply trying to add new materials to the game or trying to add new parts to existing materials, may I suggest trying Armory Expansion? You should just need a single class to define what mods are required and what the files are named and everything else is done through JSON.
Meanwhile, I'll try to look at this and get it fixed. I'll also mention that there are a couple of bugs with materials that need to be cast in Armory Expansion though.
so im now editing moartinkers to try add support for compendium armours
added the stats, but it seems its not working.
i intend to do the same for conarm but not yet got to it due to running into this issue with compendium.
so this is how compendium registers its stats
so i checked HelmMaterialStats which is one of the 4 from compendium
went into MaterialRegistration in moartinkers and added this
then i did the same for chest, legs and feet
updated the code that registers them in MaterialRegistration
then i went into ModMaterials
added the new stats for each material
heres enderium for an example
.setHelm .SetChest .setLegs .setFeet being the compendium stats
but sadly nothing happens
The text was updated successfully, but these errors were encountered: