Add armour classes!

- Added 3 new armour variants - the sage, the battlemage and the warlock - each in the 8 elemental varieties
- Added resplendent thread, crystal silver plating and ethereal crystalweave, used to upgrade regular armour into class armour
- Added the new armour upgrades to loot tables
- Added recipes for the new armour to JEI, along with info pages for the 3 upgrade items
- Added advancements for the new armour classes
- Removed legendary wizard armour
- Removed arcane seal of protection
- Removed the 'legendary' advancement
This commit is contained in:
Electroblob77
2021-01-16 23:02:03 +00:00
parent d3d76cae16
commit 299510e663
285 changed files with 2841 additions and 442 deletions
@@ -1,5 +1,8 @@
package electroblob.wizardry;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import electroblob.wizardry.block.BlockBookshelf;
import electroblob.wizardry.command.CommandCastSpell;
import electroblob.wizardry.command.CommandDiscoverSpell;
@@ -36,6 +39,8 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
import org.apache.logging.log4j.Logger;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Calendar;
/**
@@ -144,6 +149,34 @@ public class Wizardry {
@EventHandler
public void init(FMLInitializationEvent event){
Gson gson = new GsonBuilder().setPrettyPrinting().create();
for(Item item : Item.REGISTRY){
if(item.getRegistryName().getNamespace().equals(MODID)){
try{
FileWriter writer = new FileWriter("generated\\" + item.getRegistryName().getPath() + ".json");
JsonObject json = new JsonObject();
json.addProperty("parent", "item/generated");
JsonObject textures = new JsonObject();
textures.addProperty("layer0", MODID + ":items/" + item.getRegistryName().getPath());
json.add("textures", textures);
gson.toJson(json, writer);
writer.close();
}catch(IOException e){
e.printStackTrace();
}
}
}
settings.initConfigExtras();
// World generators
@@ -168,8 +201,6 @@ public class Wizardry {
// Post-registry extras
BlockBookshelf.compileBookModelTextures();
ContainerBookshelf.initDefaultBookItems();
WizardryItems.populateWandMap();
WizardryItems.populateArmourMap();
WizardryItems.registerDispenseBehaviours();
WizardryItems.registerBannerPatterns();
WandHelper.populateUpgradeMap();