From 85a2fe10a34576849878912ce62fa09c089e96c9 Mon Sep 17 00:00:00 2001 From: brandon3055 Date: Sat, 19 Dec 2015 04:16:46 +1100 Subject: [PATCH] 1.0.2-snapshot 9 --- Change Log.txt | 32 +- VERSION.json | 3 - VERSION.txt | 4 +- build.properties | 4 +- .../draconicevolution/DraconicEvolution.java | 4 +- .../client/gui/componentguis/GUIManual.java | 6 +- .../client/gui/componentguis/GUIReactor.java | 42 +- .../client/handler/ClientEventHandler.java | 23 +- .../client/model/ModelDraconicArmor.java | 810 ++++-------------- .../client/model/ModelDraconicArmorOBJ.java | 184 ---- .../client/model/ModelDraconicArmorOld.java | 702 +++++++++++++++ ...ernArmorOBJ.java => ModelWyvernArmor.java} | 4 +- .../render/entity/RenderChaosCrystal.java | 4 +- .../client/render/entity/RenderDragon.java | 53 +- .../common/blocks/ChaosCrystal.java | 36 +- .../common/blocks/DraconicBlock.java | 5 + .../common/blocks/DraconiumBlock.java | 4 + .../common/blocks/InfusedObsidian.java | 5 +- .../common/blocks/machine/Grinder.java | 4 + .../common/container/ContainerReactor.java | 37 +- .../common/entity/EntityChaosCrystal.java | 24 +- .../common/entity/EntityChaosGuardian.java | 58 +- .../common/handler/ConfigHandler.java | 5 + .../handler/MinecraftForgeEventHandler.java | 2 - .../common/items/DraconicCore.java | 3 + .../common/items/Tclogo.java | 36 +- .../common/items/armor/DraconicArmor.java | 62 +- .../common/items/armor/WyvernArmor.java | 59 +- .../items/tools/CreativeStructureSpawner.java | 60 +- .../items/tools/baseclasses/ToolHandler.java | 16 +- .../common/lib/VersionHandler.java | 2 +- .../tileentities/CustomSpawnerBaseLogic.java | 2 +- .../common/tileentities/TileChaosShard.java | 19 + .../tileentities/TileEnergyInfuser.java | 4 +- .../tileentities/TileParticleGenerator.java | 2 +- .../TileEnergyStorageCore.java | 6 +- .../reactor/TileReactorCore.java | 8 + .../common/world/ChaosWorldGenHandler.java | 7 +- .../assets/draconicevolution/lang/en_US.lang | 15 +- .../assets/draconicevolution/manual.json | 31 +- .../textures/particle/reactorBeam.png | Bin 0 -> 4815 bytes .../textures/particle/reactorBeam.png.mcmeta | 1 + .../textures/particle/reactorEnergyBeam.png | Bin 0 -> 396 bytes .../particle/reactorEnergyBeam.png.mcmeta | 1 + 44 files changed, 1392 insertions(+), 997 deletions(-) delete mode 100644 VERSION.json delete mode 100644 src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmorOBJ.java create mode 100644 src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmorOld.java rename src/main/java/com/brandon3055/draconicevolution/client/model/{ModelWyvernArmorOBJ.java => ModelWyvernArmor.java} (97%) create mode 100644 src/main/resources/assets/draconicevolution/textures/particle/reactorBeam.png create mode 100644 src/main/resources/assets/draconicevolution/textures/particle/reactorBeam.png.mcmeta create mode 100644 src/main/resources/assets/draconicevolution/textures/particle/reactorEnergyBeam.png create mode 100644 src/main/resources/assets/draconicevolution/textures/particle/reactorEnergyBeam.png.mcmeta diff --git a/Change Log.txt b/Change Log.txt index ab32f9d8..62b51193 100644 --- a/Change Log.txt +++ b/Change Log.txt @@ -1,3 +1,33 @@ +######## 1.0.2-Snapshot 9 ######## +-added config option to adjust the distance between chaos islands. +-fixed infused obsidian and draconium blocks wither resistance. +-nurfed crasy op weapons effectiveness against the chaos guardian a little. +-hopefully fixed the chaos guardian crystal syncing issue (cant reproduce this so not sure if its actually fixed) +-fixed the damage bonus on draconic weapons (+X% mob health) now works on dragons including the chaos guardian. +-addressed the issue of certain mod items being able to move the chaos crystal... +-added some missing localization. +-disabled enchant effect on armor. +-fixed issue with particle gen view distance. +-added config option to reanable the original 3D armor models by Skeletonpunk. +-field drain rate (now called field input rate) in the reactor gui makes more sense now. +-added hover text to values in the reactor stats page. +-fixed some bugs in the reactor code. +-fixed a minor bug in the custom spwner blacklist. +- +- +- +- + +######## 1.0.2-Snapshot 8-bugfix ######## +-fixed crash in information tablet. +-removed console spam from entities spawned by the stabilized spawner. +-increased energy infuser buffer and transfer rate to 10m. +-updated chaos island documentation. +-added documentation for chaos shard and chaotic core. + +######## 1.0.2-Snapshot 7-bugfix ######## +-fixed some missing texture errors. + ######## 1.0.2-Snapshot 6 ######## -added new textures and models for ALL THE THINGS! Thanks to @Sn0wShepherd -added config option to disable custom tool models. @@ -18,7 +48,7 @@ -rewrote chaos island and chaos guardian. -added CC and OC support to reactor, flow gates and energy core. -re implemented the ability to disable item lore. --fixed conflict with draconic helm and tcon cleaver mining fateige. +-fixed conflict with draconic helm and tcon cleaver mining fatigue. -added draconium and awakened draconium nuggets. -added Chaos Crystal. -added Chaos Shard and Chaos Fragments. diff --git a/VERSION.json b/VERSION.json deleted file mode 100644 index 8eb41521..00000000 --- a/VERSION.json +++ /dev/null @@ -1,3 +0,0 @@ -Version:1.0.2 -Snapshot:6 -ReleaseNote:The start of the 1.0.2 snapshots! diff --git a/VERSION.txt b/VERSION.txt index 8eb41521..1216577e 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1,3 +1,3 @@ Version:1.0.2 -Snapshot:6 -ReleaseNote:The start of the 1.0.2 snapshots! +Snapshot:9 +ReleaseNote:More bug fixes! Hopefully fixed the chaos guardian issues once and for all... diff --git a/build.properties b/build.properties index f0fe55c4..0f5acaa7 100644 --- a/build.properties +++ b/build.properties @@ -1,7 +1,7 @@ minecraft_version=1.7.10 -mod_version=1.0.2-Snapshot_6 +mod_version=1.0.2-Snapshot_9 forge_version=10.13.4.1492-1.7.10 -CCLIB_version=1.1.1.99 +CCLIB_version=1.1.3.140 NEI_version=1.0.3.74 ccc_version=1.0.4.29 diff --git a/src/main/java/com/brandon3055/draconicevolution/DraconicEvolution.java b/src/main/java/com/brandon3055/draconicevolution/DraconicEvolution.java index 067e4946..4ee8b932 100644 --- a/src/main/java/com/brandon3055/draconicevolution/DraconicEvolution.java +++ b/src/main/java/com/brandon3055/draconicevolution/DraconicEvolution.java @@ -21,7 +21,7 @@ import java.util.Arrays; "after:NotEnoughItems;" + "after:ThermalExpansion;" + "after:ThermalFoundation;" + - "required-after:BrandonsCore@[1.0.0.9,);") + "required-after:BrandonsCore@[1.0.0.10,);") public class DraconicEvolution { @Mod.Instance(References.MODID) @@ -66,7 +66,7 @@ public class DraconicEvolution { public void init(final FMLInitializationEvent event) {if(debug) System.out.println("init()"); - + proxy.init(event); } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIManual.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIManual.java index 67a84c2c..c07f84c3 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIManual.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIManual.java @@ -149,7 +149,7 @@ public class GUIManual extends GUIScrollingBase implements GuiYesNoCallback { barPosition = (int)(((double)page.scrollOffset/page.scrollLimit) * 247D); } else if (collection.getComponent("OPEN_PAGE") != null && collection.getComponent("OPEN_PAGE").isEnabled()) { - ComponentManualPage page = (ComponentManualPage)collection.getComponent("CONTRIBUTORS"); + ComponentManualPage page = (ComponentManualPage)collection.getComponent("OPEN_PAGE"); barPosition = (int)(((double)page.scrollOffset/page.scrollLimit) * 247D); } @@ -193,7 +193,7 @@ public class GUIManual extends GUIScrollingBase implements GuiYesNoCallback { barPosition = (int)(((double)page.scrollOffset/page.scrollLimit) * 247D); } else if (collection.getComponent("OPEN_PAGE") != null && collection.getComponent("OPEN_PAGE").isEnabled()) { - ComponentManualPage page = (ComponentManualPage)collection.getComponent("CONTRIBUTORS"); + ComponentManualPage page = (ComponentManualPage)collection.getComponent("OPEN_PAGE"); barPosition = (int)(((double)page.scrollOffset/page.scrollLimit) * 247D); } @@ -407,7 +407,7 @@ public class GUIManual extends GUIScrollingBase implements GuiYesNoCallback { page.scrollOffset = (int) (position * page.scrollLimit); } else if (collection.getComponent("OPEN_PAGE") != null && collection.getComponent("OPEN_PAGE").isEnabled()) { - ComponentManualPage page = (ComponentManualPage)collection.getComponent("CONTRIBUTORS"); + ComponentManualPage page = (ComponentManualPage)collection.getComponent("OPEN_PAGE"); if (page.scrollLimit < 0) return; page.scrollOffset = (int) (position * page.scrollLimit); } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIReactor.java b/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIReactor.java index d5f13436..b8b5089c 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIReactor.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/gui/componentguis/GUIReactor.java @@ -121,13 +121,13 @@ public class GUIReactor extends GUIBase { else if (GuiHelper.isInRect(33, 4, 18, 114, mouseX-guiLeft, mouseY-guiTop)){ text.add(StatCollector.translateToLocal("gui.de.fieldStrength.txt")); if (reactor.maxFieldCharge > 0) text.add(Utills.round(reactor.fieldCharge / reactor.maxFieldCharge * 100D, 100D) + "%"); - text.add((int)reactor.fieldCharge + " / " + (int)reactor.maxFieldCharge); //todo refine or remove + text.add(Utills.addCommas((int)reactor.fieldCharge) + " / " + Utills.addCommas((int)reactor.maxFieldCharge)); //todo refine or remove drawHoveringText(text, mouseX, mouseY, fontRendererObj); } else if (GuiHelper.isInRect(197, 4, 18, 114, mouseX-guiLeft, mouseY-guiTop)){ text.add(StatCollector.translateToLocal("gui.de.energySaturation.txt")); if (reactor.maxEnergySaturation > 0) text.add(Utills.round((double)reactor.energySaturation / (double)reactor.maxEnergySaturation * 100D, 100D) + "%"); - text.add(reactor.energySaturation + " / " + reactor.maxEnergySaturation); //todo refine or remove + text.add(Utills.addCommas(reactor.energySaturation) + " / " + Utills.addCommas(reactor.maxEnergySaturation)); //todo refine or remove drawHoveringText(text, mouseX, mouseY, fontRendererObj); } else if (GuiHelper.isInRect(221, 4, 18, 114, mouseX-guiLeft, mouseY-guiTop)){ @@ -136,29 +136,41 @@ public class GUIReactor extends GUIBase { text.add(reactor.convertedFuel + " / " + (reactor.convertedFuel + reactor.reactorFuel)); //todo refine or remove drawHoveringText(text, mouseX, mouseY, fontRendererObj); } + else if (GuiHelper.isInRect(53, 15, 140, 18, mouseX-guiLeft, mouseY-guiTop)){ + text.addAll(fontRendererObj.listFormattedStringToWidth(StatCollector.translateToLocal("gui.de.reacTempLoadFactor.txt"), 200)); + drawHoveringText(text, mouseX, mouseY, fontRendererObj); + } + else if (GuiHelper.isInRect(53, 40, 140, 18, mouseX-guiLeft, mouseY-guiTop)){ + text.addAll(fontRendererObj.listFormattedStringToWidth(StatCollector.translateToLocal("gui.de.reacCoreMass.txt"), 200)); + drawHoveringText(text, mouseX, mouseY, fontRendererObj); + } + else if (GuiHelper.isInRect(53, 65, 140, 18, mouseX-guiLeft, mouseY-guiTop)){ + text.addAll(fontRendererObj.listFormattedStringToWidth(StatCollector.translateToLocal("gui.de.reacGenRate.txt"), 200)); + drawHoveringText(text, mouseX, mouseY, fontRendererObj); + } + else if (GuiHelper.isInRect(53, 88, 140, 18, mouseX-guiLeft, mouseY-guiTop)){ + text.addAll(fontRendererObj.listFormattedStringToWidth(StatCollector.translateToLocal("gui.de.reacInputRate.txt"), 200)); + drawHoveringText(text, mouseX, mouseY, fontRendererObj); + } + else if (GuiHelper.isInRect(53, 113, 140, 18, mouseX-guiLeft, mouseY-guiTop)){ + text.addAll(fontRendererObj.listFormattedStringToWidth(StatCollector.translateToLocal("gui.de.reacConversionRate.txt"), 200)); + drawHoveringText(text, mouseX, mouseY, fontRendererObj); + } } private void drawStats(){ - /* - * Values To Add - * -tempDrainFactor (Temperature load factor?) - * -mass - * -generation rate - * -field drain rate - * -fuel conversion rate - * */ + double inputRate = reactor.fieldDrain / (1D - (reactor.fieldCharge / reactor.maxFieldCharge)); fontRendererObj.drawString(StatCollector.translateToLocal("gui.de.tempLoad.name"), 55, 16, 0x0000FF); - fontRendererObj.drawString(""+reactor.tempDrainFactor, 60, 2 + 24, 0); + fontRendererObj.drawString(Utills.round(reactor.tempDrainFactor * 100D, 1D) + "%", 60, 2 + 24, 0); fontRendererObj.drawString(StatCollector.translateToLocal("gui.de.mass.name"), 55, 16 + 24, 0x0000FF); - fontRendererObj.drawString(Utills.round((reactor.reactorFuel + reactor.convertedFuel)/1296D, 100)+"m³", 60, 2 + 2 * 24, 0); + fontRendererObj.drawString(Utills.round((reactor.reactorFuel + reactor.convertedFuel)/1296D, 100)+"m^3", 60, 2 + 2 * 24, 0); fontRendererObj.drawString(StatCollector.translateToLocal("gui.de.genRate.name"), 55, 16 + 2 * 24, 0x0000FF); fontRendererObj.drawString(Utills.addCommas((int)reactor.generationRate)+"RF/t", 60, 2 + 3 * 24, 0); - fontRendererObj.drawString(StatCollector.translateToLocal("gui.de.fieldDrainRate.name"), 55, 16 + 3 * 24, 0x0000FF); - fontRendererObj.drawString(Utills.addCommas(reactor.fieldDrain)+"RF/t", 60, 2 + 4 * 24, 0); + fontRendererObj.drawString(StatCollector.translateToLocal("gui.de.fieldInputRate.name"), 55, 16 + 3 * 24, 0x0000FF); + fontRendererObj.drawString(Utills.addCommas((int)Math.min(inputRate, Integer.MAX_VALUE))+"RF/t", 60, 2 + 4 * 24, 0); fontRendererObj.drawString(StatCollector.translateToLocal("gui.de.fuelConversion.name"), 55, 16 + 4 * 24, 0x0000FF); fontRendererObj.drawString(Utills.addCommas((int)Math.round(reactor.fuelUseRate * 1000000D)) + "nb/t", 60, 2 + 5 * 24, 0); - } @Override diff --git a/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java b/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java index 06c12892..0bc9148e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/handler/ClientEventHandler.java @@ -1,18 +1,24 @@ package com.brandon3055.draconicevolution.client.handler; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModItems; +import com.brandon3055.draconicevolution.common.handler.ConfigHandler; +import com.brandon3055.draconicevolution.common.items.armor.DraconicArmor; +import com.brandon3055.draconicevolution.common.items.armor.WyvernArmor; import com.brandon3055.draconicevolution.common.items.weapons.DraconicBow; import com.brandon3055.draconicevolution.common.items.weapons.WyvernBow; import com.brandon3055.draconicevolution.common.network.MountUpdatePacket; -import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.utills.LogHelper; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent; import cpw.mods.fml.relauncher.Side; import net.minecraft.client.Minecraft; +import net.minecraft.client.model.ModelBiped; import net.minecraft.entity.Entity; +import net.minecraft.item.ItemArmor; import net.minecraftforge.client.event.FOVUpdateEvent; +import net.minecraftforge.client.event.RenderPlayerEvent; import java.util.Random; @@ -126,4 +132,19 @@ public class ClientEventHandler { remountEntityID = id; LogHelper.info("Started checking for player mount"); } + + @SubscribeEvent + public void renderArmorEvent(RenderPlayerEvent.SetArmorModel event) { + if (ConfigHandler.useOriginal3DArmorModel) return; + if (event.stack != null && (event.stack.getItem() instanceof DraconicArmor || event.stack.getItem() instanceof WyvernArmor)) + { + ItemArmor itemarmor = (ItemArmor)event.stack.getItem(); + ModelBiped modelbiped = itemarmor.getArmorModel(event.entityPlayer, event.stack, event.slot); + event.renderer.setRenderPassModel(modelbiped); + modelbiped.onGround = event.renderer.modelBipedMain.onGround; + modelbiped.isRiding = event.renderer.modelBipedMain.isRiding; + modelbiped.isChild = event.renderer.modelBipedMain.isChild; + event.result = 1; + } + } } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmor.java b/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmor.java index cad94b32..e4a6e497 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmor.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmor.java @@ -1,702 +1,184 @@ package com.brandon3055.draconicevolution.client.model; +import com.brandon3055.draconicevolution.client.handler.ResourceHandler; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; -/** - * Draconic Armor.tcn - TechneToTabulaImporter - * Created using Tabula 5.0.0 - */ -public class ModelDraconicArmor extends ModelBiped {// -// public ModelRenderer bipedHead; -// public ModelRenderer bipedBody; -// public ModelRenderer bipedRightArm; -// public ModelRenderer bipedLeftArm; -// public ModelRenderer bipedRightLeg;/ -// public ModelRenderer bipedLeftLeg; - public ModelRenderer MainHelmPieceRight1; - public ModelRenderer MainHelmPieceRight2; - public ModelRenderer MainHelmPieceLeft1; - public ModelRenderer MainHelmPieceLeft2; - public ModelRenderer MainHelmPieceRight3; - public ModelRenderer MainHelmPieceLeft3; - public ModelRenderer MainHelmPieceBack; - public ModelRenderer MainHelmPieceTop; - public ModelRenderer MainHelmPieceFrontTop; - public ModelRenderer MainHelmPieceFrontBottom; - public ModelRenderer MainHelmPieceBottom; - public ModelRenderer HelmPieceBack1; - public ModelRenderer HornPieceRight1; - public ModelRenderer HornPieceRight2; - public ModelRenderer HornPieceLeft1; - public ModelRenderer HornPieceLeft2; - public ModelRenderer HornPieceRight3; - public ModelRenderer HornPieceLeft3; - public ModelRenderer HornPieceRight4; - public ModelRenderer HornPieceLeft4; - public ModelRenderer HelmPieceFront1; - public ModelRenderer HelmPieceFront2; - public ModelRenderer MainChestPieceBottom; - public ModelRenderer ChestDecorationPiece2; - public ModelRenderer ChestDecorationPiece4; - public ModelRenderer ShoulderPadRight2; - public ModelRenderer ShoulderPadRight3; - public ModelRenderer ShoulderPadRight4; - public ModelRenderer ShoulderPadRight1; - public ModelRenderer MainArmGuardRight; - public ModelRenderer ArmGuardPieceRight1; - public ModelRenderer ArmGuardPieceRight2; - public ModelRenderer ArmGuardPieceRight3; - public ModelRenderer ArmGuardPieceRight4; - public ModelRenderer ArmStrapRightTop; - public ModelRenderer ArmStrapRightBottom; - public ModelRenderer ShoulderPadLeft2; - public ModelRenderer ShoulderPadLeft3; - public ModelRenderer ShoulderPadLeft4; - public ModelRenderer MainArmGuardLeft; - public ModelRenderer ShoulderPadLeft1; - public ModelRenderer ArmGuardPieceLeft1; - public ModelRenderer ArmGuardPieceLeft2; - public ModelRenderer ArmGuardPieceLeft3; - public ModelRenderer ArmGuardPieceLeft4; - public ModelRenderer ArmStrapLeftBottom; - public ModelRenderer ArmStrapLeftTop; - public ModelRenderer MainLegPieceRight; - public ModelRenderer LegPieceRight1; - public ModelRenderer LegPieceRight2; - public ModelRenderer MainBootPieceRight; - public ModelRenderer BootPieceRight1; - public ModelRenderer BootPieceRight2; - public ModelRenderer MainKneePadRight; - public ModelRenderer KneePieceRight1; - public ModelRenderer MainLegPieceLeft; - public ModelRenderer LegPieceLeft2; - public ModelRenderer LegPieceLeft1; - public ModelRenderer MainBootPieceLeft; - public ModelRenderer BootPieceLeft1; - public ModelRenderer BootPieceLeft2; - public ModelRenderer MainKneePadLeft; - public ModelRenderer KneePieceLeft1; - public ModelRenderer BootPieceLeft3; - public ModelRenderer BootPieceLeft4; - public ModelRenderer BootPieceRight3; - public ModelRenderer BootPieceRight4; - public ModelRenderer LeggsTop; - //Draconic Specific - public ModelRenderer DrMainChestPieceTop; - public ModelRenderer DrMainChestPieceMid; - public ModelRenderer DrChestDecorationPiece1; - public ModelRenderer DrChestDecorationPiece3; - public ModelRenderer BeltFront; - public ModelRenderer BeltBack; - public ModelRenderer BeltLeft; - public ModelRenderer BeltRight; - public ModelRenderer BeltBuckle; - //Wyvern Specific - public ModelRenderer WyHelmPieceTop1; - public ModelRenderer WyHelmPieceTop2; - public ModelRenderer WyHelmPieceTop3; - public ModelRenderer WyHelmPieceTop4; - public ModelRenderer WyMainChestPieceMid; - public ModelRenderer WyMainChestPieceTop; - public ModelRenderer WyChestPieceTop1; - public ModelRenderer WyChestPieceTop2; - public ModelRenderer WyChestDecorationPiece3; - public ModelRenderer WyChestPieceTop3; +public class ModelDraconicArmor extends ModelBiped { - private boolean isDraconic; + public ModelRenderOBJ head; + public ModelRenderOBJ body; + public ModelRenderOBJ rightArm; + public ModelRenderOBJ leftArm; + public ModelRenderOBJ belt; + public ModelRenderOBJ rightLeg; + public ModelRenderOBJ leftLeg; + public ModelRenderOBJ rightBoot; + public ModelRenderOBJ leftBoot; - public ModelDraconicArmor(float f, boolean isHelmet, boolean isChestPiece, boolean isLeggings, boolean isdBoots, boolean isDraconic) { + public ModelDraconicArmor(float f, boolean isHelmet, boolean isChestPiece, boolean isLeggings, boolean isdBoots) { super(f, 0.0f, 128, 128); - this.textureWidth = 256; - this.textureHeight = 128; - this.isDraconic = isDraconic; - /* Helm */ - { - this.bipedHead = new ModelRenderer(this, 0, 0); - this.bipedHead.setRotationPoint(0.0F, 0.0F, 0.0F); - this.bipedHead.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F); + this.bipedHead = new ModelRenderer(this, 0, 0); + this.bipedHead.setRotationPoint(0.0F, 0.0F, 0.0F); + this.bipedHead.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F); - this.MainHelmPieceLeft1 = new ModelRenderer(this, 191, 0); - this.MainHelmPieceLeft1.setRotationPoint(3.5F, -3.0F, -4.5F); - this.MainHelmPieceLeft1.addBox(0.0F, 0.0F, 0.0F, 1, 3, 9, 0.0F); + this.bipedBody = new ModelRenderer(this, 16, 16); + this.bipedBody.setRotationPoint(0.0F, 0.0F, 0.0F); + this.bipedBody.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F); - this.HelmPieceFront2 = new ModelRenderer(this, 177, 43); - this.HelmPieceFront2.setRotationPoint(-0.5F, -5.5F, -4.5F); - this.HelmPieceFront2.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); + this.bipedLeftArm = new ModelRenderer(this, 40, 16); + this.bipedLeftArm.setRotationPoint(5.0F, 2.0F, 0.0F); + this.bipedLeftArm.addBox(-1.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F); - this.MainHelmPieceRight2 = new ModelRenderer(this, 170, 0); - this.MainHelmPieceRight2.setRotationPoint(-4.5F, -8.0F, -4.5F); - this.MainHelmPieceRight2.addBox(0.0F, 0.0F, 0.0F, 1, 2, 9, 0.0F); + this.bipedRightArm = new ModelRenderer(this, 40, 16); + this.bipedRightArm.setRotationPoint(-5.0F, 2.0F, 0.0F); + this.bipedRightArm.addBox(-3.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F); - this.MainHelmPieceTop = new ModelRenderer(this, 177, 24); - this.MainHelmPieceTop.mirror = true; - this.MainHelmPieceTop.setRotationPoint(-4.0F, -8.300000190734863F, -4.5F); - this.MainHelmPieceTop.addBox(0.0F, 0.0F, 0.0F, 8, 1, 9, 0.0F); - this.setRotateAngle(MainHelmPieceTop, 0.05235987901687623F, -0.0F, 0.0F); + this.bipedLeftLeg = new ModelRenderer(this, 0, 16); + this.bipedLeftLeg.setRotationPoint(2.0F, 12.0F, 0.0F); + this.bipedLeftLeg.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F); - this.MainHelmPieceFrontBottom = new ModelRenderer(this, 174, 35); - this.MainHelmPieceFrontBottom.setRotationPoint(-4.0F, -3.0F, -5.0F); - this.MainHelmPieceFrontBottom.addBox(0.0F, 0.0F, 0.0F, 8, 3, 1, 0.0F); + this.bipedRightLeg = new ModelRenderer(this, 0, 16); + this.bipedRightLeg.setRotationPoint(-2.0F, 12.0F, 0.0F); + this.bipedRightLeg.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F); - this.MainHelmPieceLeft2 = new ModelRenderer(this, 170, 0); - this.MainHelmPieceLeft2.setRotationPoint(3.5F, -8.0F, -4.5F); - this.MainHelmPieceLeft2.addBox(0.0F, 0.0F, 0.0F, 1, 2, 9, 0.0F); - - this.HelmPieceBack1 = new ModelRenderer(this, 193, 39); - this.HelmPieceBack1.setRotationPoint(-4.0F, -8.0F, 4.0F); - this.HelmPieceBack1.addBox(0.0F, 0.0F, 0.0F, 8, 8, 1, 0.0F); - - this.MainHelmPieceLeft3 = new ModelRenderer(this, 195, 13); - this.MainHelmPieceLeft3.setRotationPoint(3.5F, -6.0F, -2.5F); - this.MainHelmPieceLeft3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 7, 0.0F); - - this.MainHelmPieceRight1 = new ModelRenderer(this, 191, 0); - this.MainHelmPieceRight1.setRotationPoint(-4.5F, -3.0F, -4.5F); - this.MainHelmPieceRight1.addBox(0.0F, 0.0F, 0.0F, 1, 3, 9, 0.0F); - - this.MainHelmPieceBack = new ModelRenderer(this, 178, 13); - this.MainHelmPieceBack.setRotationPoint(-3.5F, -8.0F, 3.5F); - this.MainHelmPieceBack.addBox(0.0F, 0.0F, 0.0F, 7, 8, 1, 0.0F); - - this.MainHelmPieceRight3 = new ModelRenderer(this, 195, 13); - this.MainHelmPieceRight3.setRotationPoint(-4.5F, -6.0F, -2.5F); - this.MainHelmPieceRight3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 7, 0.0F); - - this.HelmPieceFront1 = new ModelRenderer(this, 175, 40); - this.HelmPieceFront1.setRotationPoint(-1.0F, -6.0F, -5.0F); - this.HelmPieceFront1.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F); - - this.MainHelmPieceBottom = new ModelRenderer(this, 177, 24); - this.MainHelmPieceBottom.setRotationPoint(-4.0F, -0.5F, -4.5F); - this.MainHelmPieceBottom.addBox(0.0F, 0.0F, 0.0F, 8, 1, 9, 0.0F); - - this.MainHelmPieceFrontTop = new ModelRenderer(this, 193, 35); - this.MainHelmPieceFrontTop.setRotationPoint(-4.0F, -8.0F, -5.0F); - this.MainHelmPieceFrontTop.addBox(0.0F, 0.0F, 0.0F, 8, 2, 1, 0.0F); - - - this.HornPieceLeft1 = new ModelRenderer(this, 182, 40); - this.HornPieceLeft1.setRotationPoint(4.0F, -7.5F, -1.0F); - this.HornPieceLeft1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 4, 0.0F); - - this.HornPieceLeft2 = new ModelRenderer(this, 201, 49); - this.HornPieceLeft2.setRotationPoint(4.6F, -5.5F, 1.03F); - this.HornPieceLeft2.addBox(0.0F, -1.5F, -1.5F, 2, 3, 3, 0.0F); - this.setRotateAngle(HornPieceLeft2, 0.0F, -0.0F, -0.13962634015954636F); - - this.HornPieceLeft3 = new ModelRenderer(this, 190, 49); - this.HornPieceLeft3.setRotationPoint(6.1F, -5.6F, 1.0F); - this.HornPieceLeft3.addBox(0.0F, -1.0F, -1.0F, 3, 2, 2, 0.0F); - this.setRotateAngle(HornPieceLeft3, 0.0F, -0.0F, -0.5235987755982988F); - - this.HornPieceRight1 = new ModelRenderer(this, 182, 40); - this.HornPieceRight1.setRotationPoint(-5.0F, -7.5F, -1.0F); - this.HornPieceRight1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 4, 0.0F); - - this.HornPieceRight2 = new ModelRenderer(this, 201, 49); - this.HornPieceRight2.setRotationPoint(-4.6F, -5.5F, 1.03F); - this.HornPieceRight2.addBox(0.0F, -1.5F, -1.5F, 2, 3, 3, 0.0F); - this.setRotateAngle(HornPieceRight2, 0.0F, -0.0F, -3.001966313430247F); - - this.HornPieceRight3 = new ModelRenderer(this, 190, 49); - this.HornPieceRight3.setRotationPoint(-6.1F, -5.6F, 1.0F); - this.HornPieceRight3.addBox(0.0F, -1.0F, -1.0F, 3, 2, 2, 0.0F); - this.setRotateAngle(HornPieceRight3, 0.0F, -0.0F, -2.6179938779914944F); - - this.HornPieceLeft4 = new ModelRenderer(this, 181, 49); - this.HornPieceLeft4.setRotationPoint(8.2F, -6.7F, 1.0F); - this.HornPieceLeft4.addBox(0.0F, -0.5F, -0.5F, 3, 1, 1, 0.0F); - this.setRotateAngle(HornPieceLeft4, 0.0F, -0.0F, -0.8726646259971648F); - - this.HornPieceRight4 = new ModelRenderer(this, 181, 49); - this.HornPieceRight4.setRotationPoint(-8.2F, -6.7F, 1.0F); - this.HornPieceRight4.addBox(0.0F, -0.5F, -0.5F, 3, 1, 1, 0.0F); - this.setRotateAngle(HornPieceRight4, 0.0F, -0.0F, -2.2689280275926285F); - - this.WyHelmPieceTop1 = new ModelRenderer(this, 181, 49); - this.WyHelmPieceTop1.setRotationPoint(-0.5F, -8.5F, -4.5F); - this.WyHelmPieceTop1.addBox(0.0F, 0.0F, 0.0F, 1, 1, 3, 0.0F); - this.setRotateAngle(WyHelmPieceTop1, 0.2792526803190927F, -0.0F, 0.0F); - - this.WyHelmPieceTop2 = new ModelRenderer(this, 201, 56); - this.WyHelmPieceTop2.setRotationPoint(-1.0F, -10.0F, -2.0F); - this.WyHelmPieceTop2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 3, 0.0F); - this.setRotateAngle(WyHelmPieceTop2, 0.08726646259971647F, -0.0F, 0.0F); - - this.WyHelmPieceTop3 = new ModelRenderer(this, 188, 54); - this.WyHelmPieceTop3.setRotationPoint(-1.5F, -11.0F, 1.0F); - this.WyHelmPieceTop3.addBox(0.0F, 0.0F, 0.0F, 3, 3, 3, 0.0F); - this.setRotateAngle(WyHelmPieceTop3, -0.2792526803190927F, -0.0F, 0.0F); - - this.WyHelmPieceTop4 = new ModelRenderer(this, 179, 54); - this.WyHelmPieceTop4.setRotationPoint(-0.5F, -10.0F, 1.5F); - this.WyHelmPieceTop4.addBox(0.0F, 0.0F, 0.0F, 1, 1, 3, 0.0F); - this.setRotateAngle(WyHelmPieceTop4, -0.20943951023931953F, -0.0F, 0.0F); - } - - /* Chest */ - { - this.bipedBody = new ModelRenderer(this, 16, 16); - this.bipedBody.setRotationPoint(0.0F, 0.0F, 0.0F); - this.bipedBody.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F); - - this.DrMainChestPieceTop = new ModelRenderer(this, 214, 0); - this.DrMainChestPieceTop.setRotationPoint(-5.5F, -0.5F, -5.0F); - this.DrMainChestPieceTop.addBox(0.0F, 0.0F, 0.0F, 11, 4, 10, 0.0F); - this.setRotateAngle(DrMainChestPieceTop, 0.15707963705062866F, -0.0F, 0.0F); - - this.DrMainChestPieceMid = new ModelRenderer(this, 224, 15); - this.DrMainChestPieceMid.setRotationPoint(-5.0F, 2.0F, -3.0F); - this.DrMainChestPieceMid.addBox(0.0F, 0.0F, 0.0F, 10, 5, 6, 0.0F); - - this.WyChestPieceTop3 = new ModelRenderer(this, 239, 0); - this.WyChestPieceTop3.setRotationPoint(-3.5F, 4.5F, -3.5F); - this.WyChestPieceTop3.addBox(1.0F, 0.0F, 0.0F, 4, 4, 1, 0.0F); - this.setRotateAngle(WyChestPieceTop3, 0.0879645943005142F, 0.08621926504851989F, -0.7890633548266364F); - - this.WyMainChestPieceTop = new ModelRenderer(this, 250, 0); - this.WyMainChestPieceTop.setRotationPoint(-5.7F, 0.0F, -2.6F); - this.WyMainChestPieceTop.addBox(1.0F, 0.0F, 0.0F, 2, 4, 1, 0.0F); - this.setRotateAngle(WyMainChestPieceTop, 0.0F, 0.47123889803846897F, 0.0F); - - this.MainChestPieceBottom = new ModelRenderer(this, 228, 27); - this.MainChestPieceBottom.setRotationPoint(-4.5F, 7.0F, -2.5F); - this.MainChestPieceBottom.addBox(0.0F, 0.0F, 0.0F, 9, 5, 5, 0.0F); - - this.DrChestDecorationPiece1 = new ModelRenderer(this, 244, 38); - this.DrChestDecorationPiece1.setRotationPoint(0.0F, -0.5F, -4.0F); - this.DrChestDecorationPiece1.addBox(0.0F, 0.0F, -0.5F, 5, 5, 1, 0.0F); - this.setRotateAngle(DrChestDecorationPiece1, 0.1426609064282019F, -0.13533507716461618F, 0.7946695004338321F); - - this.ChestDecorationPiece2 = new ModelRenderer(this, 229, 38); - this.ChestDecorationPiece2.setRotationPoint(-3.0F, 7.0F, -3.0F); - this.ChestDecorationPiece2.addBox(0.0F, 0.0F, 0.0F, 6, 3, 1, 0.0F); - this.setRotateAngle(ChestDecorationPiece2, 0.12217304855585097F, -0.0F, 0.0F); - - this.DrChestDecorationPiece3 = new ModelRenderer(this, 236, 45); - this.DrChestDecorationPiece3.setRotationPoint(-4.0F, 1.0F, 3.0F); - this.DrChestDecorationPiece3.addBox(0.0F, 0.0F, 0.0F, 8, 5, 2, 0.0F); - this.setRotateAngle(DrChestDecorationPiece3, -0.39211732149124146F, -0.0F, 0.0F); - - this.ChestDecorationPiece4 = new ModelRenderer(this, 229, 38); - this.ChestDecorationPiece4.setRotationPoint(-3.0F, 6.800000190734863F, 2.0F); - this.ChestDecorationPiece4.addBox(0.0F, 0.0F, 0.0F, 6, 3, 1, 0.0F); - this.setRotateAngle(ChestDecorationPiece4, -0.12217304855585097F, -0.0F, 0.0F); - - this.WyMainChestPieceMid = new ModelRenderer(this, 224, 13); - this.WyMainChestPieceMid.setRotationPoint(-5.0F, -0.1F, -3.0F); - this.WyMainChestPieceMid.addBox(0.0F, 0.0F, 0.0F, 10, 7, 6, 0.0F); - - this.WyChestPieceTop2 = new ModelRenderer(this, 250, 0); - this.WyChestPieceTop2.setRotationPoint(2.1F, 0.0F, -4.4F); - this.WyChestPieceTop2.addBox(1.0F, 0.0F, 0.0F, 2, 4, 1, 0.0F); - this.setRotateAngle(WyChestPieceTop2, 0.0F, -0.47123889803846897F, 0.0F); - - this.WyChestPieceTop1 = new ModelRenderer(this, 240, 6); - this.WyChestPieceTop1.setRotationPoint(-4.0F, 0.0F, -4.0F); - this.WyChestPieceTop1.addBox(1.0F, 0.0F, 0.0F, 6, 4, 2, 0.0F); - - this.WyChestDecorationPiece3 = new ModelRenderer(this, 236, 45); - this.WyChestDecorationPiece3.setRotationPoint(-3.5F, 0.0F, 2.5F); - this.WyChestDecorationPiece3.addBox(0.0F, 0.0F, 0.0F, 7, 5, 2, 0.0F); - this.setRotateAngle(WyChestDecorationPiece3, -0.2617993877991494F, -0.0F, 0.0F); - - this.BeltFront = new ModelRenderer(this, 121, 25); - this.BeltFront.setRotationPoint(0.5F, 10.01F, -2.0F); - this.BeltFront.addBox(-5.0F, 0.0F, -0.7F, 9, 2, 1, 0.0F); - - this.BeltBuckle = new ModelRenderer(this, 121, 29); - this.BeltBuckle.setRotationPoint(3.5F, 10.0F, -2.2F); - this.BeltBuckle.addBox(-5.0F, 0.0F, -0.7F, 3, 2, 1, 0.0F); - - this.BeltBack = new ModelRenderer(this, 121, 25); - this.BeltBack.setRotationPoint(0.5F, 10.01F, 2.0F); - this.BeltBack.addBox(-5.0F, 0.0F, -0.3F, 9, 2, 1, 0.0F); - - this.BeltRight = new ModelRenderer(this, 142, 25); - this.BeltRight.setRotationPoint(-4.7F, 10.01F, -2.2F); - this.BeltRight.addBox(0.0F, 0.0F, -0.3F, 1, 2, 5, 0.0F); - - this.BeltLeft = new ModelRenderer(this, 142, 25); - this.BeltLeft.setRotationPoint(3.7F, 10.01F, -2.2F); - this.BeltLeft.addBox(0.0F, 0.0F, -0.3F, 1, 2, 5, 0.0F); - - //Left - this.bipedLeftArm = new ModelRenderer(this, 40, 16); - this.bipedLeftArm.setRotationPoint(5.0F, 2.0F, 0.0F); - this.bipedLeftArm.addBox(-1.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F); - - this.ShoulderPadLeft1 = new ModelRenderer(this, 236, 53); - this.ShoulderPadLeft1.setRotationPoint(-1.5F, -2.0F, -2.5F); - this.ShoulderPadLeft1.addBox(0.0F, 0.0F, 0.0F, 5, 4, 5, 0.0F); - - this.ShoulderPadLeft2 = new ModelRenderer(this, 232, 63); - this.ShoulderPadLeft2.setRotationPoint(-1.0F, -2.5F, -3.0F); - this.ShoulderPadLeft2.addBox(-0.3F, 0.0F, 0.0F, 6, 2, 6, 0.0F); - this.setRotateAngle(ShoulderPadLeft2, 0.0F, -0.0F, 0.3665191429188092F); - - this.ShoulderPadLeft3 = new ModelRenderer(this, 215, 53); - this.ShoulderPadLeft3.mirror = true; - this.ShoulderPadLeft3.setRotationPoint(-1.0F, -3.0F, -2.5F); - this.ShoulderPadLeft3.addBox(0.3F, -0.5F, 0.0F, 5, 2, 5, 0.0F); - this.setRotateAngle(ShoulderPadLeft3, 0.0F, -0.0F, 0.20943951023931953F); - - this.ShoulderPadLeft4 = new ModelRenderer(this, 219, 61); - this.ShoulderPadLeft4.setRotationPoint(-0.5F, -2.5F, -2.0F); - this.ShoulderPadLeft4.addBox(0.7F, -2.0F, 0.5F, 3, 2, 3, 0.0F); - this.setRotateAngle(ShoulderPadLeft4, 0.0F, -0.0F, 0.12217304763960307F); - - this.MainArmGuardLeft = new ModelRenderer(this, 240, 72); - this.MainArmGuardLeft.setRotationPoint(0.5F, 3.0F, -2.5F); - this.MainArmGuardLeft.addBox(0.0F, 0.0F, 0.0F, 3, 5, 5, 0.0F); - - this.ArmGuardPieceLeft1 = new ModelRenderer(this, 223, 67); - this.ArmGuardPieceLeft1.setRotationPoint(2.5F, 6.0F, -1.5F); - this.ArmGuardPieceLeft1.addBox(0.2F, -0.3F, 0.0F, 1, 2, 3, 0.0F); - this.setRotateAngle(ArmGuardPieceLeft1, 0.0F, -0.0F, -0.17453292519943295F); - - this.ArmGuardPieceLeft2 = new ModelRenderer(this, 223, 67); - this.ArmGuardPieceLeft2.setRotationPoint(2.5F, 5.0F, -1.5F); - this.ArmGuardPieceLeft2.addBox(0.2F, -0.3F, 0.0F, 1, 2, 3, 0.0F); - this.setRotateAngle(ArmGuardPieceLeft2, 0.0F, -0.0F, -0.17453292519943295F); - - this.ArmGuardPieceLeft3 = new ModelRenderer(this, 223, 67); - this.ArmGuardPieceLeft3.setRotationPoint(2.5F, 4.0F, -1.5F); - this.ArmGuardPieceLeft3.addBox(0.2F, -0.3F, 0.0F, 1, 2, 3, 0.0F); - this.setRotateAngle(ArmGuardPieceLeft3, 0.0F, -0.0F, -0.17453292519943295F); - - this.ArmGuardPieceLeft4 = new ModelRenderer(this, 231, 72); - this.ArmGuardPieceLeft4.setRotationPoint(2.5F, 3.0F, -1.5F); - this.ArmGuardPieceLeft4.addBox(0.2F, 0.6F, 0.0F, 1, 1, 3, 0.0F); - this.setRotateAngle(ArmGuardPieceLeft4, 0.0F, -0.0F, -0.17453292519943295F); - - this.ArmStrapLeftTop = new ModelRenderer(this, 225, 77); - this.ArmStrapLeftTop.setRotationPoint(-1.43F, 3.0F, -2.5F); - this.ArmStrapLeftTop.addBox(0.0F, 0.0F, 0.0F, 2, 1, 5, 0.0F); - - this.ArmStrapLeftBottom = new ModelRenderer(this, 225, 77); - this.ArmStrapLeftBottom.setRotationPoint(-1.5F, 7.0F, -2.5F); - this.ArmStrapLeftBottom.addBox(0.0F, 0.0F, 0.0F, 2, 1, 5, 0.0F); - - - //Right - this.MainArmGuardRight = new ModelRenderer(this, 240, 72); - this.MainArmGuardRight.setRotationPoint(-3.5F, 3.0F, -2.5F); - this.MainArmGuardRight.addBox(0.0F, 0.0F, 0.0F, 3, 5, 5, 0.0F); - - this.ArmGuardPieceRight1 = new ModelRenderer(this, 231, 72); - this.ArmGuardPieceRight1.setRotationPoint(-3.9F, 2.8F, -1.5F); - this.ArmGuardPieceRight1.addBox(0.2F, 0.6F, 0.0F, 1, 1, 3, 0.0F); - this.setRotateAngle(ArmGuardPieceRight1, 0.0F, -0.0F, 0.17453292519943295F); - - this.ArmGuardPieceRight2 = new ModelRenderer(this, 223, 67); - this.ArmGuardPieceRight2.setRotationPoint(-4.6F, 4.1F, -1.5F); - this.ArmGuardPieceRight2.addBox(0.8F, -0.7F, 0.0F, 1, 2, 3, 0.0F); - this.setRotateAngle(ArmGuardPieceRight2, 0.0F, -0.0F, 0.17453292519943295F); - - this.ArmGuardPieceRight3 = new ModelRenderer(this, 223, 67); - this.ArmGuardPieceRight3.setRotationPoint(-4.03F, 5.3F, -1.5F); - this.ArmGuardPieceRight3.addBox(0.2F, -0.8F, 0.0F, 1, 2, 3, 0.0F); - this.setRotateAngle(ArmGuardPieceRight3, 0.0F, -0.0F, 0.17453292519943295F); - - this.ArmGuardPieceRight4 = new ModelRenderer(this, 223, 67); - this.ArmGuardPieceRight4.setRotationPoint(-4.0F, 6.8F, -1.5F); - this.ArmGuardPieceRight4.addBox(0.1F, -1.3F, 0.0F, 1, 2, 3, 0.0F); - this.setRotateAngle(ArmGuardPieceRight4, 0.0F, -0.0F, 0.17453292519943295F); - - this.ShoulderPadRight1 = new ModelRenderer(this, 236, 53); - this.ShoulderPadRight1.setRotationPoint(-3.5F, -2.0F, -2.5F); - this.ShoulderPadRight1.addBox(0.0F, 0.0F, 0.0F, 5, 4, 5, 0.0F); - - this.ShoulderPadRight2 = new ModelRenderer(this, 232, 63); - this.ShoulderPadRight2.setRotationPoint(-5.0F, -2.5F, -3.0F); - this.ShoulderPadRight2.addBox(-0.1F, 2.1F, 0.0F, 6, 2, 6, 0.0F); - this.setRotateAngle(ShoulderPadRight2, 0.0F, -0.0F, -0.3665191429188092F); - - this.ShoulderPadRight3 = new ModelRenderer(this, 215, 53); - this.ShoulderPadRight3.setRotationPoint(-5.0F, -3.0F, -2.5F); - this.ShoulderPadRight3.addBox(0.6F, 0.7F, 0.0F, 5, 2, 5, 0.0F); - this.setRotateAngle(ShoulderPadRight3, 0.0F, -0.0F, -0.20943951023931953F); - - this.ShoulderPadRight4 = new ModelRenderer(this, 219, 61); - this.ShoulderPadRight4.setRotationPoint(-4.5F, -2.5F, -2.0F); - this.ShoulderPadRight4.addBox(1.3F, -1.5F, 0.5F, 3, 2, 3, 0.0F); - this.setRotateAngle(ShoulderPadRight4, 0.0F, -0.0F, -0.12217304763960307F); - - this.bipedRightArm = new ModelRenderer(this, 40, 16); - this.bipedRightArm.setRotationPoint(-5.0F, 2.0F, 0.0F); - this.bipedRightArm.addBox(-3.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F); - - this.ArmStrapRightTop = new ModelRenderer(this, 225, 77); - this.ArmStrapRightTop.setRotationPoint(-0.5F, 3.0F, -2.5F); - this.ArmStrapRightTop.addBox(0.0F, 0.0F, 0.0F, 2, 1, 5, 0.0F); - - this.ArmStrapRightBottom = new ModelRenderer(this, 225, 77); - this.ArmStrapRightBottom.setRotationPoint(-0.5F, 7.0F, -2.5F); - this.ArmStrapRightBottom.addBox(0.0F, 0.0F, 0.0F, 2, 1, 5, 0.0F); - } - - /* Leggs */ - { - this.LeggsTop = new ModelRenderer(this, 121, 15); - this.LeggsTop.setRotationPoint(0.5F, 8.0F, -2.4F); - this.LeggsTop.addBox(-5.0F, 0.0F, 0.0F, 9, 4, 5, 0.0F); - //Left - this.bipedLeftLeg = new ModelRenderer(this, 0, 16); - this.bipedLeftLeg.setRotationPoint(2.0F, 12.0F, 0.0F); - this.bipedLeftLeg.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F); - - this.MainLegPieceLeft = new ModelRenderer(this, 149, 0); - this.MainLegPieceLeft.setRotationPoint(-2.0F, -1F, -2.5F); - this.MainLegPieceLeft.addBox(0.0F, 0.0F, 0.0F, 4, 10, 5, 0.0F); - - this.LegPieceLeft1 = new ModelRenderer(this, 138, 0); - this.LegPieceLeft1.setRotationPoint(1.5F, -1F, -2.0F); - this.LegPieceLeft1.addBox(0.0F, 0.0F, 0.0F, 1, 10, 4, 0.0F); - - this.LegPieceLeft2 = new ModelRenderer(this, 138, 0); - this.LegPieceLeft2.setRotationPoint(-2.5F, -1F, -2.0F); - this.LegPieceLeft2.addBox(0.0F, 0.0F, 0.0F, 1, 10, 4, 0.0F); - - this.MainKneePadLeft = new ModelRenderer(this, 149, 15); - this.MainKneePadLeft.setRotationPoint(0.0F, 2.5F, -3.0F); - this.MainKneePadLeft.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F); - this.setRotateAngle(MainKneePadLeft, 0.0F, -0.0F, 0.7853981633974483F); - - this.KneePieceLeft1 = new ModelRenderer(this, 156, 15); - this.KneePieceLeft1.setRotationPoint(-0.5F, 2.0F, -2.7F); - this.KneePieceLeft1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 1, 0.0F); - - //Right - this.bipedRightLeg = new ModelRenderer(this, 0, 16); - this.bipedRightLeg.setRotationPoint(-2.0F, 12.0F, 0.0F); - this.bipedRightLeg.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F); - - this.MainLegPieceRight = new ModelRenderer(this, 149, 0); - this.MainLegPieceRight.setRotationPoint(-2.0F, -1F, -2.5F); - this.MainLegPieceRight.addBox(0.0F, 0.0F, 0.0F, 4, 10, 5, 0.0F); - - this.LegPieceRight1 = new ModelRenderer(this, 138, 0); - this.LegPieceRight1.setRotationPoint(-2.5F, -1F, -2.0F); - this.LegPieceRight1.addBox(0.0F, 0.0F, 0.0F, 1, 10, 4, 0.0F); - - this.LegPieceRight2 = new ModelRenderer(this, 138, 0); - this.LegPieceRight2.setRotationPoint(1.5F, -1F, -2.0F); - this.LegPieceRight2.addBox(0.0F, 0.0F, 0.0F, 1, 10, 4, 0.0F); - - this.MainKneePadRight = new ModelRenderer(this, 149, 15); - this.MainKneePadRight.setRotationPoint(0.0F, 2.5F, -3.0F); - this.MainKneePadRight.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F); - - this.setRotateAngle(MainKneePadRight, 0.0F, -0.0F, 0.7853981633974483F); - this.KneePieceRight1 = new ModelRenderer(this, 156, 15); - this.KneePieceRight1.setRotationPoint(-0.5F, 2.0F, -2.7F); - this.KneePieceRight1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 1, 0.0F); - - } - - /* Boots */ - { - //Left - this.MainBootPieceLeft = new ModelRenderer(this, 119, 0); - this.MainBootPieceLeft.setRotationPoint(-2.0F, 9.1F, -2.5F); - this.MainBootPieceLeft.addBox(0.0F, 0.0F, 0.0F, 4, 3, 5, 0.0F); - - this.BootPieceLeft1 = new ModelRenderer(this, 129, 9); - this.BootPieceLeft1.setRotationPoint(-1.5F, 9.0F, -3.5F); - this.BootPieceLeft1.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1, 0.0F); - - this.BootPieceLeft2 = new ModelRenderer(this, 122, 9); - this.BootPieceLeft2.setRotationPoint(-1.0F, 9.0F, -2.5F); - this.BootPieceLeft2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F); - this.setRotateAngle(BootPieceLeft2, -0.40142572795869574F, -0.0F, 0.0F); - - this.BootPieceLeft3 = new ModelRenderer(this, 138, 0); - this.BootPieceLeft3.setRotationPoint(1.5F, 9.05F, -2.0F); - this.BootPieceLeft3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, 0.0F); - - this.BootPieceLeft4 = new ModelRenderer(this, 138, 0); - this.BootPieceLeft4.setRotationPoint(-2.5F, 9.05F, -2.0F); - this.BootPieceLeft4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, 0.0F); - - //Right - this.MainBootPieceRight = new ModelRenderer(this, 119, 0); - this.MainBootPieceRight.setRotationPoint(-2.0F, 9.1F, -2.5F); - this.MainBootPieceRight.addBox(0.0F, 0.0F, 0.0F, 4, 3, 5, 0.0F); - - this.BootPieceRight1 = new ModelRenderer(this, 129, 9); - this.BootPieceRight1.setRotationPoint(-1.5F, 9.0F, -3.5F); - this.BootPieceRight1.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1, 0.0F); - - this.BootPieceRight2 = new ModelRenderer(this, 122, 9); - this.BootPieceRight2.setRotationPoint(-1.0F, 9.0F, -2.5F); - this.BootPieceRight2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F); - this.setRotateAngle(BootPieceRight2, -0.40142572795869574F, -0.0F, 0.0F); - - this.BootPieceRight3 = new ModelRenderer(this, 138, 0); - this.BootPieceRight3.setRotationPoint(-2.5F, 9.05F, -2.0F); - this.BootPieceRight3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, 0.0F); - - this.BootPieceRight4 = new ModelRenderer(this, 138, 0); - this.BootPieceRight4.setRotationPoint(1.5F, 9.05F, -2.0F); - this.BootPieceRight4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, 0.0F); - } + this.head = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicHelmet.obj"), ResourceHandler.getResource("textures/models/armor/DraconicHelmet.png")); + this.body = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicBody.obj"), ResourceHandler.getResource("textures/models/armor/DraconicBody.png")); + this.rightArm = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicRightArm.obj"), ResourceHandler.getResource("textures/models/armor/DraconicRightArm.png")); + this.leftArm = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicLeftArm.obj"), ResourceHandler.getResource("textures/models/armor/DraconicLeftArm.png")); + this.belt = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicBelt.obj"), ResourceHandler.getResource("textures/models/armor/DraconicBelt.png")); + this.rightLeg = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicRightLeg.obj"), ResourceHandler.getResource("textures/models/armor/DraconicRightLeg.png")); + this.leftLeg = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicLeftLeg.obj"), ResourceHandler.getResource("textures/models/armor/DraconicLeftLeg.png")); + this.rightBoot = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicRightBoot.obj"), ResourceHandler.getResource("textures/models/armor/DraconicRightBoot.png")); + this.leftBoot = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicLeftBoot.obj"), ResourceHandler.getResource("textures/models/armor/DraconicLeftBoot.png")); this.bipedHead.cubeList.clear(); this.bipedHeadwear.cubeList.clear(); - if (isHelmet){ - this.bipedHead.addChild(this.MainHelmPieceLeft1); - this.bipedHead.addChild(this.HelmPieceFront2); - this.bipedHead.addChild(this.MainHelmPieceRight2); - this.bipedHead.addChild(this.MainHelmPieceTop); - this.bipedHead.addChild(this.MainHelmPieceFrontBottom); - this.bipedHead.addChild(this.HornPieceRight1); - this.bipedHead.addChild(this.HornPieceLeft1); - - this.bipedHead.addChild(this.MainHelmPieceLeft2); - this.bipedHead.addChild(this.HornPieceRight3); - this.bipedHead.addChild(this.HornPieceLeft3); - this.bipedHead.addChild(this.HelmPieceBack1); - - this.bipedHead.addChild(this.MainHelmPieceLeft3); - this.bipedHead.addChild(this.MainHelmPieceRight1); - this.bipedHead.addChild(this.HornPieceRight2); - this.bipedHead.addChild(this.MainHelmPieceBack); - this.bipedHead.addChild(this.MainHelmPieceRight3); - this.bipedHead.addChild(this.HelmPieceFront1); - this.bipedHead.addChild(this.MainHelmPieceBottom); - this.bipedHead.addChild(this.MainHelmPieceFrontTop); - this.bipedHead.addChild(this.HornPieceLeft2); - - if (isDraconic){ - this.bipedHead.addChild(this.HornPieceLeft4); - this.bipedHead.addChild(this.HornPieceRight4); - } - else - { - this.bipedHead.addChild(this.WyHelmPieceTop1); - this.bipedHead.addChild(this.WyHelmPieceTop2); - this.bipedHead.addChild(this.WyHelmPieceTop3); - this.bipedHead.addChild(this.WyHelmPieceTop4); - } - } - this.bipedBody.cubeList.clear(); this.bipedRightArm.cubeList.clear(); this.bipedLeftArm.cubeList.clear(); - if (isChestPiece){ - this.bipedBody.addChild(this.MainChestPieceBottom); - this.bipedBody.addChild(this.ChestDecorationPiece2); - this.bipedBody.addChild(this.ChestDecorationPiece4); - - if (isDraconic){ - this.bipedBody.addChild(this.DrMainChestPieceTop); - this.bipedBody.addChild(this.DrMainChestPieceMid); - this.bipedBody.addChild(this.DrChestDecorationPiece1); - this.bipedBody.addChild(this.DrChestDecorationPiece3); - - this.bipedLeftArm.addChild(this.ArmGuardPieceLeft1); - this.bipedLeftArm.addChild(this.ArmGuardPieceLeft2); - this.bipedLeftArm.addChild(this.ArmGuardPieceLeft3); - this.bipedLeftArm.addChild(this.ArmGuardPieceLeft4); - this.bipedLeftArm.addChild(this.MainArmGuardLeft); - this.bipedLeftArm.addChild(this.ArmStrapLeftTop); - this.bipedLeftArm.addChild(this.ArmStrapLeftBottom); - - this.bipedRightArm.addChild(this.ArmGuardPieceRight1); - this.bipedRightArm.addChild(this.ArmGuardPieceRight2); - this.bipedRightArm.addChild(this.ArmGuardPieceRight3); - this.bipedRightArm.addChild(this.ArmGuardPieceRight4); - this.bipedRightArm.addChild(this.MainArmGuardRight); - this.bipedRightArm.addChild(this.ArmStrapRightTop); - this.bipedRightArm.addChild(this.ArmStrapRightBottom); - } - else - { - this.bipedBody.addChild(this.WyMainChestPieceMid); - this.bipedBody.addChild(this.WyChestPieceTop2); - this.bipedBody.addChild(this.WyChestPieceTop1); - this.bipedBody.addChild(this.WyChestPieceTop3); - this.bipedBody.addChild(this.WyChestDecorationPiece3); - this.bipedBody.addChild(this.WyMainChestPieceTop); - } - - this.bipedLeftArm.addChild(this.ShoulderPadLeft1); - this.bipedLeftArm.addChild(this.ShoulderPadLeft2); - this.bipedLeftArm.addChild(this.ShoulderPadLeft3); - this.bipedLeftArm.addChild(this.ShoulderPadLeft4); - - this.bipedRightArm.addChild(this.ShoulderPadRight1); - this.bipedRightArm.addChild(this.ShoulderPadRight2); - this.bipedRightArm.addChild(this.ShoulderPadRight3); - this.bipedRightArm.addChild(this.ShoulderPadRight4); - } - this.bipedLeftLeg.cubeList.clear(); this.bipedRightLeg.cubeList.clear(); - if (isLeggings){ - this.bipedBody.addChild(this.LeggsTop); - this.bipedLeftLeg.addChild(this.LegPieceLeft1); - this.bipedLeftLeg.addChild(this.MainKneePadLeft); - this.bipedLeftLeg.addChild(this.MainLegPieceLeft); - this.bipedLeftLeg.addChild(this.KneePieceLeft1); - this.bipedLeftLeg.addChild(this.LegPieceLeft2); + body.offsetY = 0.755F; + rightArm.offsetY = 0.755F; + leftArm.offsetY = 0.755F; - this.bipedRightLeg.addChild(this.LegPieceRight2); - this.bipedRightLeg.addChild(this.LegPieceRight1); - this.bipedRightLeg.addChild(this.MainKneePadRight); - this.bipedRightLeg.addChild(this.KneePieceRight1); - this.bipedRightLeg.addChild(this.MainLegPieceRight); + head.offsetY = -0.1F; + head.offsetX = -0.033F; + head.offsetZ = 0.1F; - if (isDraconic){ - this.bipedBody.addChild(this.BeltFront); - this.bipedBody.addChild(this.BeltBack); - this.bipedBody.addChild(this.BeltLeft); - this.bipedBody.addChild(this.BeltRight); - this.bipedBody.addChild(this.BeltBuckle); - } + body.offsetY = 0.755F; + body.offsetZ = -0.03F; + rightArm.offsetY = 0.72F; + rightArm.offsetX = -0.18F; + rightArm.offsetZ = -0.05F; + leftArm.offsetY = 0.72F; + leftArm.offsetX = 0.18F; + leftArm.offsetZ = -0.06F; + belt.offsetY = 0.756F; + belt.offsetZ = -0.04F; + rightLeg.offsetY = 0.6F; + rightLeg.offsetX = -0.05F; + leftLeg.offsetY = 0.6F; + leftLeg.offsetX = 0.06F; + rightBoot.offsetY = 0.76F; + rightBoot.offsetX = -0.03F; + leftBoot.offsetY = 0.76F; + leftBoot.offsetX = 0.03F; + + leftLeg.scale = 1F / 15F; + rightLeg.scale = 1F / 15F; + leftBoot.scale = 1F / 15F; + rightBoot.scale = 1F / 15F; + + if (isHelmet) { + this.bipedHead.addChild(head); } - - - if (isdBoots){ - this.bipedLeftLeg.addChild(this.MainBootPieceLeft); - this.bipedLeftLeg.addChild(this.BootPieceLeft2); - this.bipedLeftLeg.addChild(this.BootPieceLeft1); - this.bipedLeftLeg.addChild(this.BootPieceLeft3); - this.bipedLeftLeg.addChild(this.BootPieceLeft4); - - this.bipedRightLeg.addChild(this.MainBootPieceRight); - this.bipedRightLeg.addChild(this.BootPieceRight1); - this.bipedRightLeg.addChild(this.BootPieceRight2); - this.bipedRightLeg.addChild(this.BootPieceRight3); - this.bipedRightLeg.addChild(this.BootPieceRight4); + if (isChestPiece) { + this.bipedBody.addChild(body); + this.bipedLeftArm.addChild(leftArm); + this.bipedRightArm.addChild(rightArm); + } + if (isLeggings) { + this.bipedLeftLeg.addChild(leftLeg); + this.bipedRightLeg.addChild(rightLeg); + this.bipedBody.addChild(belt); + } + if (isdBoots) { + this.bipedLeftLeg.addChild(leftBoot); + this.bipedRightLeg.addChild(rightBoot); } } @Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { - setRotationAngles(f, f1, f2, f3, f4, f5, entity); - this.bipedRightLeg.render(f5); - this.bipedBody.render(f5*1.05F);// * 1.1F); - this.bipedLeftArm.render(f5); - this.bipedRightArm.render(f5); - this.bipedLeftLeg.render(f5); - this.bipedHead.render(f5*1.05F); - } + if (entity == null){ + isSneak = false; + isRiding = false; + isChild = false; + aimedBow = false; - /** - * This is a helper function from Tabula to set the rotation of model parts - */ - public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { - modelRenderer.rotateAngleX = x; - modelRenderer.rotateAngleY = y; - modelRenderer.rotateAngleZ = z; - } + this.bipedRightArm.rotateAngleX = 0F; + this.bipedRightArm.rotateAngleY = 0F; + this.bipedRightArm.rotateAngleZ = 0F; + this.bipedLeftArm.rotateAngleX = 0F; + this.bipedLeftArm.rotateAngleY = 0F; + this.bipedLeftArm.rotateAngleZ = 0F; + + bipedBody.rotateAngleX = 0F; + bipedBody.rotateAngleY = 0F; + bipedBody.rotateAngleZ = 0F; + + bipedHead.rotateAngleX = 0F; + bipedHead.rotateAngleY = 0F; + bipedHead.rotateAngleZ = 0F; + + bipedLeftLeg.rotateAngleX = 0F; + bipedLeftLeg.rotateAngleY = 0F; + bipedLeftLeg.rotateAngleZ = 0F; + + bipedRightLeg.rotateAngleX = 0F; + bipedRightLeg.rotateAngleY = 0F; + bipedRightLeg.rotateAngleZ = 0F; + + setRotationAngles(0, 0, 0, 0, 0, 0, null); + } + else super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); + + this.bipedHead.render(1F/13F); + this.bipedRightArm.render(1F/15F); + this.bipedLeftArm.render(1F/15F); + this.bipedBody.render(1F/15F); + this.bipedRightLeg.render(1F/16F); + this.bipedLeftLeg.render(1F/16F); + } + + public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity p_78087_7_) + { + this.bipedRightArm.rotateAngleZ = 0.0F; + this.bipedLeftArm.rotateAngleZ = 0.0F; + this.bipedRightArm.rotationPointZ = 0.0F; + this.bipedLeftArm.rotationPointZ = 0.0F; + this.bipedRightLeg.rotateAngleY = 0.0F; + this.bipedLeftLeg.rotateAngleY = 0.0F; + this.bipedRightArm.rotateAngleY = 0.0F; + this.bipedLeftArm.rotateAngleY = 0.0F; + this.bipedBody.rotateAngleX = 0.0F; + this.bipedRightLeg.rotationPointZ = 0.1F; + this.bipedLeftLeg.rotationPointZ = 0.1F; + this.bipedRightLeg.rotationPointY = 12.0F; + this.bipedLeftLeg.rotationPointY = 12.0F; + this.bipedHead.rotationPointY = 0.0F; + this.bipedHeadwear.rotationPointY = 0.0F; + this.leftLeg.rotationPointZ = 0F; + this.rightLeg.rotationPointZ = 0F; + this.bipedRightArm.rotateAngleZ = 0.0F; + this.bipedLeftArm.rotateAngleZ = 0.0F; + } } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmorOBJ.java b/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmorOBJ.java deleted file mode 100644 index 5a75e615..00000000 --- a/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmorOBJ.java +++ /dev/null @@ -1,184 +0,0 @@ -package com.brandon3055.draconicevolution.client.model; - -import com.brandon3055.draconicevolution.client.handler.ResourceHandler; -import net.minecraft.client.model.ModelBiped; -import net.minecraft.client.model.ModelRenderer; -import net.minecraft.entity.Entity; - - -public class ModelDraconicArmorOBJ extends ModelBiped { - - public ModelRenderOBJ head; - public ModelRenderOBJ body; - public ModelRenderOBJ rightArm; - public ModelRenderOBJ leftArm; - public ModelRenderOBJ belt; - public ModelRenderOBJ rightLeg; - public ModelRenderOBJ leftLeg; - public ModelRenderOBJ rightBoot; - public ModelRenderOBJ leftBoot; - - public ModelDraconicArmorOBJ(float f, boolean isHelmet, boolean isChestPiece, boolean isLeggings, boolean isdBoots) { - super(f, 0.0f, 128, 128); - - this.bipedHead = new ModelRenderer(this, 0, 0); - this.bipedHead.setRotationPoint(0.0F, 0.0F, 0.0F); - this.bipedHead.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F); - - this.bipedBody = new ModelRenderer(this, 16, 16); - this.bipedBody.setRotationPoint(0.0F, 0.0F, 0.0F); - this.bipedBody.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F); - - this.bipedLeftArm = new ModelRenderer(this, 40, 16); - this.bipedLeftArm.setRotationPoint(5.0F, 2.0F, 0.0F); - this.bipedLeftArm.addBox(-1.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F); - - this.bipedRightArm = new ModelRenderer(this, 40, 16); - this.bipedRightArm.setRotationPoint(-5.0F, 2.0F, 0.0F); - this.bipedRightArm.addBox(-3.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F); - - this.bipedLeftLeg = new ModelRenderer(this, 0, 16); - this.bipedLeftLeg.setRotationPoint(2.0F, 12.0F, 0.0F); - this.bipedLeftLeg.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F); - - this.bipedRightLeg = new ModelRenderer(this, 0, 16); - this.bipedRightLeg.setRotationPoint(-2.0F, 12.0F, 0.0F); - this.bipedRightLeg.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F); - - - this.head = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicHelmet.obj"), ResourceHandler.getResource("textures/models/armor/DraconicHelmet.png")); - this.body = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicBody.obj"), ResourceHandler.getResource("textures/models/armor/DraconicBody.png")); - this.rightArm = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicRightArm.obj"), ResourceHandler.getResource("textures/models/armor/DraconicRightArm.png")); - this.leftArm = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicLeftArm.obj"), ResourceHandler.getResource("textures/models/armor/DraconicLeftArm.png")); - this.belt = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicBelt.obj"), ResourceHandler.getResource("textures/models/armor/DraconicBelt.png")); - this.rightLeg = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicRightLeg.obj"), ResourceHandler.getResource("textures/models/armor/DraconicRightLeg.png")); - this.leftLeg = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicLeftLeg.obj"), ResourceHandler.getResource("textures/models/armor/DraconicLeftLeg.png")); - this.rightBoot = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicRightBoot.obj"), ResourceHandler.getResource("textures/models/armor/DraconicRightBoot.png")); - this.leftBoot = new ModelRenderOBJ(this, ResourceHandler.getResource("models/armor/DraconicLeftBoot.obj"), ResourceHandler.getResource("textures/models/armor/DraconicLeftBoot.png")); - - this.bipedHead.cubeList.clear(); - this.bipedHeadwear.cubeList.clear(); - this.bipedBody.cubeList.clear(); - this.bipedRightArm.cubeList.clear(); - this.bipedLeftArm.cubeList.clear(); - this.bipedLeftLeg.cubeList.clear(); - this.bipedRightLeg.cubeList.clear(); - - body.offsetY = 0.755F; - rightArm.offsetY = 0.755F; - leftArm.offsetY = 0.755F; - - head.offsetY = -0.1F; - head.offsetX = -0.033F; - head.offsetZ = 0.1F; - - body.offsetY = 0.755F; - body.offsetZ = -0.03F; - rightArm.offsetY = 0.72F; - rightArm.offsetX = -0.18F; - rightArm.offsetZ = -0.05F; - leftArm.offsetY = 0.72F; - leftArm.offsetX = 0.18F; - leftArm.offsetZ = -0.06F; - belt.offsetY = 0.756F; - belt.offsetZ = -0.04F; - rightLeg.offsetY = 0.6F; - rightLeg.offsetX = -0.05F; - leftLeg.offsetY = 0.6F; - leftLeg.offsetX = 0.06F; - rightBoot.offsetY = 0.76F; - rightBoot.offsetX = -0.03F; - leftBoot.offsetY = 0.76F; - leftBoot.offsetX = 0.03F; - - leftLeg.scale = 1F / 15F; - rightLeg.scale = 1F / 15F; - leftBoot.scale = 1F / 15F; - rightBoot.scale = 1F / 15F; - - if (isHelmet) { - this.bipedHead.addChild(head); - } - if (isChestPiece) { - this.bipedBody.addChild(body); - this.bipedLeftArm.addChild(leftArm); - this.bipedRightArm.addChild(rightArm); - } - if (isLeggings) { - this.bipedLeftLeg.addChild(leftLeg); - this.bipedRightLeg.addChild(rightLeg); - this.bipedBody.addChild(belt); - } - if (isdBoots) { - this.bipedLeftLeg.addChild(leftBoot); - this.bipedRightLeg.addChild(rightBoot); - } - - } - - @Override - public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { - if (entity == null){ - isSneak = false; - isRiding = false; - isChild = false; - aimedBow = false; - - this.bipedRightArm.rotateAngleX = 0F; - this.bipedRightArm.rotateAngleY = 0F; - this.bipedRightArm.rotateAngleZ = 0F; - this.bipedLeftArm.rotateAngleX = 0F; - this.bipedLeftArm.rotateAngleY = 0F; - this.bipedLeftArm.rotateAngleZ = 0F; - - bipedBody.rotateAngleX = 0F; - bipedBody.rotateAngleY = 0F; - bipedBody.rotateAngleZ = 0F; - - bipedHead.rotateAngleX = 0F; - bipedHead.rotateAngleY = 0F; - bipedHead.rotateAngleZ = 0F; - - bipedLeftLeg.rotateAngleX = 0F; - bipedLeftLeg.rotateAngleY = 0F; - bipedLeftLeg.rotateAngleZ = 0F; - - bipedRightLeg.rotateAngleX = 0F; - bipedRightLeg.rotateAngleY = 0F; - bipedRightLeg.rotateAngleZ = 0F; - - setRotationAngles(0, 0, 0, 0, 0, 0, null); - } - else super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); - - this.bipedHead.render(1F/13F); - this.bipedRightArm.render(1F/15F); - this.bipedLeftArm.render(1F/15F); - this.bipedBody.render(1F/15F); - this.bipedRightLeg.render(1F/16F); - this.bipedLeftLeg.render(1F/16F); - } - - public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity p_78087_7_) - { - this.bipedRightArm.rotateAngleZ = 0.0F; - this.bipedLeftArm.rotateAngleZ = 0.0F; - this.bipedRightArm.rotationPointZ = 0.0F; - this.bipedLeftArm.rotationPointZ = 0.0F; - this.bipedRightLeg.rotateAngleY = 0.0F; - this.bipedLeftLeg.rotateAngleY = 0.0F; - this.bipedRightArm.rotateAngleY = 0.0F; - this.bipedLeftArm.rotateAngleY = 0.0F; - this.bipedBody.rotateAngleX = 0.0F; - this.bipedRightLeg.rotationPointZ = 0.1F; - this.bipedLeftLeg.rotationPointZ = 0.1F; - this.bipedRightLeg.rotationPointY = 12.0F; - this.bipedLeftLeg.rotationPointY = 12.0F; - this.bipedHead.rotationPointY = 0.0F; - this.bipedHeadwear.rotationPointY = 0.0F; - this.leftLeg.rotationPointZ = 0F; - this.rightLeg.rotationPointZ = 0F; - this.bipedRightArm.rotateAngleZ = 0.0F; - this.bipedLeftArm.rotateAngleZ = 0.0F; - } -} diff --git a/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmorOld.java b/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmorOld.java new file mode 100644 index 00000000..f581e90d --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/client/model/ModelDraconicArmorOld.java @@ -0,0 +1,702 @@ +package com.brandon3055.draconicevolution.client.model; + +import net.minecraft.client.model.ModelBiped; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; + +/** + * Draconic Armor.tcn - TechneToTabulaImporter + * Created using Tabula 5.0.0 + */ +public class ModelDraconicArmorOld extends ModelBiped {// +// public ModelRenderer bipedHead; +// public ModelRenderer bipedBody; +// public ModelRenderer bipedRightArm; +// public ModelRenderer bipedLeftArm; +// public ModelRenderer bipedRightLeg;/ +// public ModelRenderer bipedLeftLeg; + public ModelRenderer MainHelmPieceRight1; + public ModelRenderer MainHelmPieceRight2; + public ModelRenderer MainHelmPieceLeft1; + public ModelRenderer MainHelmPieceLeft2; + public ModelRenderer MainHelmPieceRight3; + public ModelRenderer MainHelmPieceLeft3; + public ModelRenderer MainHelmPieceBack; + public ModelRenderer MainHelmPieceTop; + public ModelRenderer MainHelmPieceFrontTop; + public ModelRenderer MainHelmPieceFrontBottom; + public ModelRenderer MainHelmPieceBottom; + public ModelRenderer HelmPieceBack1; + public ModelRenderer HornPieceRight1; + public ModelRenderer HornPieceRight2; + public ModelRenderer HornPieceLeft1; + public ModelRenderer HornPieceLeft2; + public ModelRenderer HornPieceRight3; + public ModelRenderer HornPieceLeft3; + public ModelRenderer HornPieceRight4; + public ModelRenderer HornPieceLeft4; + public ModelRenderer HelmPieceFront1; + public ModelRenderer HelmPieceFront2; + public ModelRenderer MainChestPieceBottom; + public ModelRenderer ChestDecorationPiece2; + public ModelRenderer ChestDecorationPiece4; + public ModelRenderer ShoulderPadRight2; + public ModelRenderer ShoulderPadRight3; + public ModelRenderer ShoulderPadRight4; + public ModelRenderer ShoulderPadRight1; + public ModelRenderer MainArmGuardRight; + public ModelRenderer ArmGuardPieceRight1; + public ModelRenderer ArmGuardPieceRight2; + public ModelRenderer ArmGuardPieceRight3; + public ModelRenderer ArmGuardPieceRight4; + public ModelRenderer ArmStrapRightTop; + public ModelRenderer ArmStrapRightBottom; + public ModelRenderer ShoulderPadLeft2; + public ModelRenderer ShoulderPadLeft3; + public ModelRenderer ShoulderPadLeft4; + public ModelRenderer MainArmGuardLeft; + public ModelRenderer ShoulderPadLeft1; + public ModelRenderer ArmGuardPieceLeft1; + public ModelRenderer ArmGuardPieceLeft2; + public ModelRenderer ArmGuardPieceLeft3; + public ModelRenderer ArmGuardPieceLeft4; + public ModelRenderer ArmStrapLeftBottom; + public ModelRenderer ArmStrapLeftTop; + public ModelRenderer MainLegPieceRight; + public ModelRenderer LegPieceRight1; + public ModelRenderer LegPieceRight2; + public ModelRenderer MainBootPieceRight; + public ModelRenderer BootPieceRight1; + public ModelRenderer BootPieceRight2; + public ModelRenderer MainKneePadRight; + public ModelRenderer KneePieceRight1; + public ModelRenderer MainLegPieceLeft; + public ModelRenderer LegPieceLeft2; + public ModelRenderer LegPieceLeft1; + public ModelRenderer MainBootPieceLeft; + public ModelRenderer BootPieceLeft1; + public ModelRenderer BootPieceLeft2; + public ModelRenderer MainKneePadLeft; + public ModelRenderer KneePieceLeft1; + public ModelRenderer BootPieceLeft3; + public ModelRenderer BootPieceLeft4; + public ModelRenderer BootPieceRight3; + public ModelRenderer BootPieceRight4; + public ModelRenderer LeggsTop; + + //Draconic Specific + public ModelRenderer DrMainChestPieceTop; + public ModelRenderer DrMainChestPieceMid; + public ModelRenderer DrChestDecorationPiece1; + public ModelRenderer DrChestDecorationPiece3; + public ModelRenderer BeltFront; + public ModelRenderer BeltBack; + public ModelRenderer BeltLeft; + public ModelRenderer BeltRight; + public ModelRenderer BeltBuckle; + //Wyvern Specific + public ModelRenderer WyHelmPieceTop1; + public ModelRenderer WyHelmPieceTop2; + public ModelRenderer WyHelmPieceTop3; + public ModelRenderer WyHelmPieceTop4; + public ModelRenderer WyMainChestPieceMid; + public ModelRenderer WyMainChestPieceTop; + public ModelRenderer WyChestPieceTop1; + public ModelRenderer WyChestPieceTop2; + public ModelRenderer WyChestDecorationPiece3; + public ModelRenderer WyChestPieceTop3; + + private boolean isDraconic; + + public ModelDraconicArmorOld(float f, boolean isHelmet, boolean isChestPiece, boolean isLeggings, boolean isdBoots, boolean isDraconic) { + super(f, 0.0f, 128, 128); + this.textureWidth = 256; + this.textureHeight = 128; + this.isDraconic = isDraconic; + + /* Helm */ + { + this.bipedHead = new ModelRenderer(this, 0, 0); + this.bipedHead.setRotationPoint(0.0F, 0.0F, 0.0F); + this.bipedHead.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F); + + this.MainHelmPieceLeft1 = new ModelRenderer(this, 191, 0); + this.MainHelmPieceLeft1.setRotationPoint(3.5F, -3.0F, -4.5F); + this.MainHelmPieceLeft1.addBox(0.0F, 0.0F, 0.0F, 1, 3, 9, 0.0F); + + this.HelmPieceFront2 = new ModelRenderer(this, 177, 43); + this.HelmPieceFront2.setRotationPoint(-0.5F, -5.5F, -4.5F); + this.HelmPieceFront2.addBox(0.0F, 0.0F, 0.0F, 1, 1, 1, 0.0F); + + this.MainHelmPieceRight2 = new ModelRenderer(this, 170, 0); + this.MainHelmPieceRight2.setRotationPoint(-4.5F, -8.0F, -4.5F); + this.MainHelmPieceRight2.addBox(0.0F, 0.0F, 0.0F, 1, 2, 9, 0.0F); + + this.MainHelmPieceTop = new ModelRenderer(this, 177, 24); + this.MainHelmPieceTop.mirror = true; + this.MainHelmPieceTop.setRotationPoint(-4.0F, -8.300000190734863F, -4.5F); + this.MainHelmPieceTop.addBox(0.0F, 0.0F, 0.0F, 8, 1, 9, 0.0F); + this.setRotateAngle(MainHelmPieceTop, 0.05235987901687623F, -0.0F, 0.0F); + + this.MainHelmPieceFrontBottom = new ModelRenderer(this, 174, 35); + this.MainHelmPieceFrontBottom.setRotationPoint(-4.0F, -3.0F, -5.0F); + this.MainHelmPieceFrontBottom.addBox(0.0F, 0.0F, 0.0F, 8, 3, 1, 0.0F); + + this.MainHelmPieceLeft2 = new ModelRenderer(this, 170, 0); + this.MainHelmPieceLeft2.setRotationPoint(3.5F, -8.0F, -4.5F); + this.MainHelmPieceLeft2.addBox(0.0F, 0.0F, 0.0F, 1, 2, 9, 0.0F); + + this.HelmPieceBack1 = new ModelRenderer(this, 193, 39); + this.HelmPieceBack1.setRotationPoint(-4.0F, -8.0F, 4.0F); + this.HelmPieceBack1.addBox(0.0F, 0.0F, 0.0F, 8, 8, 1, 0.0F); + + this.MainHelmPieceLeft3 = new ModelRenderer(this, 195, 13); + this.MainHelmPieceLeft3.setRotationPoint(3.5F, -6.0F, -2.5F); + this.MainHelmPieceLeft3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 7, 0.0F); + + this.MainHelmPieceRight1 = new ModelRenderer(this, 191, 0); + this.MainHelmPieceRight1.setRotationPoint(-4.5F, -3.0F, -4.5F); + this.MainHelmPieceRight1.addBox(0.0F, 0.0F, 0.0F, 1, 3, 9, 0.0F); + + this.MainHelmPieceBack = new ModelRenderer(this, 178, 13); + this.MainHelmPieceBack.setRotationPoint(-3.5F, -8.0F, 3.5F); + this.MainHelmPieceBack.addBox(0.0F, 0.0F, 0.0F, 7, 8, 1, 0.0F); + + this.MainHelmPieceRight3 = new ModelRenderer(this, 195, 13); + this.MainHelmPieceRight3.setRotationPoint(-4.5F, -6.0F, -2.5F); + this.MainHelmPieceRight3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 7, 0.0F); + + this.HelmPieceFront1 = new ModelRenderer(this, 175, 40); + this.HelmPieceFront1.setRotationPoint(-1.0F, -6.0F, -5.0F); + this.HelmPieceFront1.addBox(0.0F, 0.0F, 0.0F, 2, 1, 1, 0.0F); + + this.MainHelmPieceBottom = new ModelRenderer(this, 177, 24); + this.MainHelmPieceBottom.setRotationPoint(-4.0F, -0.5F, -4.5F); + this.MainHelmPieceBottom.addBox(0.0F, 0.0F, 0.0F, 8, 1, 9, 0.0F); + + this.MainHelmPieceFrontTop = new ModelRenderer(this, 193, 35); + this.MainHelmPieceFrontTop.setRotationPoint(-4.0F, -8.0F, -5.0F); + this.MainHelmPieceFrontTop.addBox(0.0F, 0.0F, 0.0F, 8, 2, 1, 0.0F); + + + this.HornPieceLeft1 = new ModelRenderer(this, 182, 40); + this.HornPieceLeft1.setRotationPoint(4.0F, -7.5F, -1.0F); + this.HornPieceLeft1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 4, 0.0F); + + this.HornPieceLeft2 = new ModelRenderer(this, 201, 49); + this.HornPieceLeft2.setRotationPoint(4.6F, -5.5F, 1.03F); + this.HornPieceLeft2.addBox(0.0F, -1.5F, -1.5F, 2, 3, 3, 0.0F); + this.setRotateAngle(HornPieceLeft2, 0.0F, -0.0F, -0.13962634015954636F); + + this.HornPieceLeft3 = new ModelRenderer(this, 190, 49); + this.HornPieceLeft3.setRotationPoint(6.1F, -5.6F, 1.0F); + this.HornPieceLeft3.addBox(0.0F, -1.0F, -1.0F, 3, 2, 2, 0.0F); + this.setRotateAngle(HornPieceLeft3, 0.0F, -0.0F, -0.5235987755982988F); + + this.HornPieceRight1 = new ModelRenderer(this, 182, 40); + this.HornPieceRight1.setRotationPoint(-5.0F, -7.5F, -1.0F); + this.HornPieceRight1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 4, 0.0F); + + this.HornPieceRight2 = new ModelRenderer(this, 201, 49); + this.HornPieceRight2.setRotationPoint(-4.6F, -5.5F, 1.03F); + this.HornPieceRight2.addBox(0.0F, -1.5F, -1.5F, 2, 3, 3, 0.0F); + this.setRotateAngle(HornPieceRight2, 0.0F, -0.0F, -3.001966313430247F); + + this.HornPieceRight3 = new ModelRenderer(this, 190, 49); + this.HornPieceRight3.setRotationPoint(-6.1F, -5.6F, 1.0F); + this.HornPieceRight3.addBox(0.0F, -1.0F, -1.0F, 3, 2, 2, 0.0F); + this.setRotateAngle(HornPieceRight3, 0.0F, -0.0F, -2.6179938779914944F); + + this.HornPieceLeft4 = new ModelRenderer(this, 181, 49); + this.HornPieceLeft4.setRotationPoint(8.2F, -6.7F, 1.0F); + this.HornPieceLeft4.addBox(0.0F, -0.5F, -0.5F, 3, 1, 1, 0.0F); + this.setRotateAngle(HornPieceLeft4, 0.0F, -0.0F, -0.8726646259971648F); + + this.HornPieceRight4 = new ModelRenderer(this, 181, 49); + this.HornPieceRight4.setRotationPoint(-8.2F, -6.7F, 1.0F); + this.HornPieceRight4.addBox(0.0F, -0.5F, -0.5F, 3, 1, 1, 0.0F); + this.setRotateAngle(HornPieceRight4, 0.0F, -0.0F, -2.2689280275926285F); + + this.WyHelmPieceTop1 = new ModelRenderer(this, 181, 49); + this.WyHelmPieceTop1.setRotationPoint(-0.5F, -8.5F, -4.5F); + this.WyHelmPieceTop1.addBox(0.0F, 0.0F, 0.0F, 1, 1, 3, 0.0F); + this.setRotateAngle(WyHelmPieceTop1, 0.2792526803190927F, -0.0F, 0.0F); + + this.WyHelmPieceTop2 = new ModelRenderer(this, 201, 56); + this.WyHelmPieceTop2.setRotationPoint(-1.0F, -10.0F, -2.0F); + this.WyHelmPieceTop2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 3, 0.0F); + this.setRotateAngle(WyHelmPieceTop2, 0.08726646259971647F, -0.0F, 0.0F); + + this.WyHelmPieceTop3 = new ModelRenderer(this, 188, 54); + this.WyHelmPieceTop3.setRotationPoint(-1.5F, -11.0F, 1.0F); + this.WyHelmPieceTop3.addBox(0.0F, 0.0F, 0.0F, 3, 3, 3, 0.0F); + this.setRotateAngle(WyHelmPieceTop3, -0.2792526803190927F, -0.0F, 0.0F); + + this.WyHelmPieceTop4 = new ModelRenderer(this, 179, 54); + this.WyHelmPieceTop4.setRotationPoint(-0.5F, -10.0F, 1.5F); + this.WyHelmPieceTop4.addBox(0.0F, 0.0F, 0.0F, 1, 1, 3, 0.0F); + this.setRotateAngle(WyHelmPieceTop4, -0.20943951023931953F, -0.0F, 0.0F); + } + + /* Chest */ + { + this.bipedBody = new ModelRenderer(this, 16, 16); + this.bipedBody.setRotationPoint(0.0F, 0.0F, 0.0F); + this.bipedBody.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F); + + this.DrMainChestPieceTop = new ModelRenderer(this, 214, 0); + this.DrMainChestPieceTop.setRotationPoint(-5.5F, -0.5F, -5.0F); + this.DrMainChestPieceTop.addBox(0.0F, 0.0F, 0.0F, 11, 4, 10, 0.0F); + this.setRotateAngle(DrMainChestPieceTop, 0.15707963705062866F, -0.0F, 0.0F); + + this.DrMainChestPieceMid = new ModelRenderer(this, 224, 15); + this.DrMainChestPieceMid.setRotationPoint(-5.0F, 2.0F, -3.0F); + this.DrMainChestPieceMid.addBox(0.0F, 0.0F, 0.0F, 10, 5, 6, 0.0F); + + this.WyChestPieceTop3 = new ModelRenderer(this, 239, 0); + this.WyChestPieceTop3.setRotationPoint(-3.5F, 4.5F, -3.5F); + this.WyChestPieceTop3.addBox(1.0F, 0.0F, 0.0F, 4, 4, 1, 0.0F); + this.setRotateAngle(WyChestPieceTop3, 0.0879645943005142F, 0.08621926504851989F, -0.7890633548266364F); + + this.WyMainChestPieceTop = new ModelRenderer(this, 250, 0); + this.WyMainChestPieceTop.setRotationPoint(-5.7F, 0.0F, -2.6F); + this.WyMainChestPieceTop.addBox(1.0F, 0.0F, 0.0F, 2, 4, 1, 0.0F); + this.setRotateAngle(WyMainChestPieceTop, 0.0F, 0.47123889803846897F, 0.0F); + + this.MainChestPieceBottom = new ModelRenderer(this, 228, 27); + this.MainChestPieceBottom.setRotationPoint(-4.5F, 7.0F, -2.5F); + this.MainChestPieceBottom.addBox(0.0F, 0.0F, 0.0F, 9, 5, 5, 0.0F); + + this.DrChestDecorationPiece1 = new ModelRenderer(this, 244, 38); + this.DrChestDecorationPiece1.setRotationPoint(0.0F, -0.5F, -4.0F); + this.DrChestDecorationPiece1.addBox(0.0F, 0.0F, -0.5F, 5, 5, 1, 0.0F); + this.setRotateAngle(DrChestDecorationPiece1, 0.1426609064282019F, -0.13533507716461618F, 0.7946695004338321F); + + this.ChestDecorationPiece2 = new ModelRenderer(this, 229, 38); + this.ChestDecorationPiece2.setRotationPoint(-3.0F, 7.0F, -3.0F); + this.ChestDecorationPiece2.addBox(0.0F, 0.0F, 0.0F, 6, 3, 1, 0.0F); + this.setRotateAngle(ChestDecorationPiece2, 0.12217304855585097F, -0.0F, 0.0F); + + this.DrChestDecorationPiece3 = new ModelRenderer(this, 236, 45); + this.DrChestDecorationPiece3.setRotationPoint(-4.0F, 1.0F, 3.0F); + this.DrChestDecorationPiece3.addBox(0.0F, 0.0F, 0.0F, 8, 5, 2, 0.0F); + this.setRotateAngle(DrChestDecorationPiece3, -0.39211732149124146F, -0.0F, 0.0F); + + this.ChestDecorationPiece4 = new ModelRenderer(this, 229, 38); + this.ChestDecorationPiece4.setRotationPoint(-3.0F, 6.800000190734863F, 2.0F); + this.ChestDecorationPiece4.addBox(0.0F, 0.0F, 0.0F, 6, 3, 1, 0.0F); + this.setRotateAngle(ChestDecorationPiece4, -0.12217304855585097F, -0.0F, 0.0F); + + this.WyMainChestPieceMid = new ModelRenderer(this, 224, 13); + this.WyMainChestPieceMid.setRotationPoint(-5.0F, -0.1F, -3.0F); + this.WyMainChestPieceMid.addBox(0.0F, 0.0F, 0.0F, 10, 7, 6, 0.0F); + + this.WyChestPieceTop2 = new ModelRenderer(this, 250, 0); + this.WyChestPieceTop2.setRotationPoint(2.1F, 0.0F, -4.4F); + this.WyChestPieceTop2.addBox(1.0F, 0.0F, 0.0F, 2, 4, 1, 0.0F); + this.setRotateAngle(WyChestPieceTop2, 0.0F, -0.47123889803846897F, 0.0F); + + this.WyChestPieceTop1 = new ModelRenderer(this, 240, 6); + this.WyChestPieceTop1.setRotationPoint(-4.0F, 0.0F, -4.0F); + this.WyChestPieceTop1.addBox(1.0F, 0.0F, 0.0F, 6, 4, 2, 0.0F); + + this.WyChestDecorationPiece3 = new ModelRenderer(this, 236, 45); + this.WyChestDecorationPiece3.setRotationPoint(-3.5F, 0.0F, 2.5F); + this.WyChestDecorationPiece3.addBox(0.0F, 0.0F, 0.0F, 7, 5, 2, 0.0F); + this.setRotateAngle(WyChestDecorationPiece3, -0.2617993877991494F, -0.0F, 0.0F); + + this.BeltFront = new ModelRenderer(this, 121, 25); + this.BeltFront.setRotationPoint(0.5F, 10.01F, -2.0F); + this.BeltFront.addBox(-5.0F, 0.0F, -0.7F, 9, 2, 1, 0.0F); + + this.BeltBuckle = new ModelRenderer(this, 121, 29); + this.BeltBuckle.setRotationPoint(3.5F, 10.0F, -2.2F); + this.BeltBuckle.addBox(-5.0F, 0.0F, -0.7F, 3, 2, 1, 0.0F); + + this.BeltBack = new ModelRenderer(this, 121, 25); + this.BeltBack.setRotationPoint(0.5F, 10.01F, 2.0F); + this.BeltBack.addBox(-5.0F, 0.0F, -0.3F, 9, 2, 1, 0.0F); + + this.BeltRight = new ModelRenderer(this, 142, 25); + this.BeltRight.setRotationPoint(-4.7F, 10.01F, -2.2F); + this.BeltRight.addBox(0.0F, 0.0F, -0.3F, 1, 2, 5, 0.0F); + + this.BeltLeft = new ModelRenderer(this, 142, 25); + this.BeltLeft.setRotationPoint(3.7F, 10.01F, -2.2F); + this.BeltLeft.addBox(0.0F, 0.0F, -0.3F, 1, 2, 5, 0.0F); + + //Left + this.bipedLeftArm = new ModelRenderer(this, 40, 16); + this.bipedLeftArm.setRotationPoint(5.0F, 2.0F, 0.0F); + this.bipedLeftArm.addBox(-1.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F); + + this.ShoulderPadLeft1 = new ModelRenderer(this, 236, 53); + this.ShoulderPadLeft1.setRotationPoint(-1.5F, -2.0F, -2.5F); + this.ShoulderPadLeft1.addBox(0.0F, 0.0F, 0.0F, 5, 4, 5, 0.0F); + + this.ShoulderPadLeft2 = new ModelRenderer(this, 232, 63); + this.ShoulderPadLeft2.setRotationPoint(-1.0F, -2.5F, -3.0F); + this.ShoulderPadLeft2.addBox(-0.3F, 0.0F, 0.0F, 6, 2, 6, 0.0F); + this.setRotateAngle(ShoulderPadLeft2, 0.0F, -0.0F, 0.3665191429188092F); + + this.ShoulderPadLeft3 = new ModelRenderer(this, 215, 53); + this.ShoulderPadLeft3.mirror = true; + this.ShoulderPadLeft3.setRotationPoint(-1.0F, -3.0F, -2.5F); + this.ShoulderPadLeft3.addBox(0.3F, -0.5F, 0.0F, 5, 2, 5, 0.0F); + this.setRotateAngle(ShoulderPadLeft3, 0.0F, -0.0F, 0.20943951023931953F); + + this.ShoulderPadLeft4 = new ModelRenderer(this, 219, 61); + this.ShoulderPadLeft4.setRotationPoint(-0.5F, -2.5F, -2.0F); + this.ShoulderPadLeft4.addBox(0.7F, -2.0F, 0.5F, 3, 2, 3, 0.0F); + this.setRotateAngle(ShoulderPadLeft4, 0.0F, -0.0F, 0.12217304763960307F); + + this.MainArmGuardLeft = new ModelRenderer(this, 240, 72); + this.MainArmGuardLeft.setRotationPoint(0.5F, 3.0F, -2.5F); + this.MainArmGuardLeft.addBox(0.0F, 0.0F, 0.0F, 3, 5, 5, 0.0F); + + this.ArmGuardPieceLeft1 = new ModelRenderer(this, 223, 67); + this.ArmGuardPieceLeft1.setRotationPoint(2.5F, 6.0F, -1.5F); + this.ArmGuardPieceLeft1.addBox(0.2F, -0.3F, 0.0F, 1, 2, 3, 0.0F); + this.setRotateAngle(ArmGuardPieceLeft1, 0.0F, -0.0F, -0.17453292519943295F); + + this.ArmGuardPieceLeft2 = new ModelRenderer(this, 223, 67); + this.ArmGuardPieceLeft2.setRotationPoint(2.5F, 5.0F, -1.5F); + this.ArmGuardPieceLeft2.addBox(0.2F, -0.3F, 0.0F, 1, 2, 3, 0.0F); + this.setRotateAngle(ArmGuardPieceLeft2, 0.0F, -0.0F, -0.17453292519943295F); + + this.ArmGuardPieceLeft3 = new ModelRenderer(this, 223, 67); + this.ArmGuardPieceLeft3.setRotationPoint(2.5F, 4.0F, -1.5F); + this.ArmGuardPieceLeft3.addBox(0.2F, -0.3F, 0.0F, 1, 2, 3, 0.0F); + this.setRotateAngle(ArmGuardPieceLeft3, 0.0F, -0.0F, -0.17453292519943295F); + + this.ArmGuardPieceLeft4 = new ModelRenderer(this, 231, 72); + this.ArmGuardPieceLeft4.setRotationPoint(2.5F, 3.0F, -1.5F); + this.ArmGuardPieceLeft4.addBox(0.2F, 0.6F, 0.0F, 1, 1, 3, 0.0F); + this.setRotateAngle(ArmGuardPieceLeft4, 0.0F, -0.0F, -0.17453292519943295F); + + this.ArmStrapLeftTop = new ModelRenderer(this, 225, 77); + this.ArmStrapLeftTop.setRotationPoint(-1.43F, 3.0F, -2.5F); + this.ArmStrapLeftTop.addBox(0.0F, 0.0F, 0.0F, 2, 1, 5, 0.0F); + + this.ArmStrapLeftBottom = new ModelRenderer(this, 225, 77); + this.ArmStrapLeftBottom.setRotationPoint(-1.5F, 7.0F, -2.5F); + this.ArmStrapLeftBottom.addBox(0.0F, 0.0F, 0.0F, 2, 1, 5, 0.0F); + + + //Right + this.MainArmGuardRight = new ModelRenderer(this, 240, 72); + this.MainArmGuardRight.setRotationPoint(-3.5F, 3.0F, -2.5F); + this.MainArmGuardRight.addBox(0.0F, 0.0F, 0.0F, 3, 5, 5, 0.0F); + + this.ArmGuardPieceRight1 = new ModelRenderer(this, 231, 72); + this.ArmGuardPieceRight1.setRotationPoint(-3.9F, 2.8F, -1.5F); + this.ArmGuardPieceRight1.addBox(0.2F, 0.6F, 0.0F, 1, 1, 3, 0.0F); + this.setRotateAngle(ArmGuardPieceRight1, 0.0F, -0.0F, 0.17453292519943295F); + + this.ArmGuardPieceRight2 = new ModelRenderer(this, 223, 67); + this.ArmGuardPieceRight2.setRotationPoint(-4.6F, 4.1F, -1.5F); + this.ArmGuardPieceRight2.addBox(0.8F, -0.7F, 0.0F, 1, 2, 3, 0.0F); + this.setRotateAngle(ArmGuardPieceRight2, 0.0F, -0.0F, 0.17453292519943295F); + + this.ArmGuardPieceRight3 = new ModelRenderer(this, 223, 67); + this.ArmGuardPieceRight3.setRotationPoint(-4.03F, 5.3F, -1.5F); + this.ArmGuardPieceRight3.addBox(0.2F, -0.8F, 0.0F, 1, 2, 3, 0.0F); + this.setRotateAngle(ArmGuardPieceRight3, 0.0F, -0.0F, 0.17453292519943295F); + + this.ArmGuardPieceRight4 = new ModelRenderer(this, 223, 67); + this.ArmGuardPieceRight4.setRotationPoint(-4.0F, 6.8F, -1.5F); + this.ArmGuardPieceRight4.addBox(0.1F, -1.3F, 0.0F, 1, 2, 3, 0.0F); + this.setRotateAngle(ArmGuardPieceRight4, 0.0F, -0.0F, 0.17453292519943295F); + + this.ShoulderPadRight1 = new ModelRenderer(this, 236, 53); + this.ShoulderPadRight1.setRotationPoint(-3.5F, -2.0F, -2.5F); + this.ShoulderPadRight1.addBox(0.0F, 0.0F, 0.0F, 5, 4, 5, 0.0F); + + this.ShoulderPadRight2 = new ModelRenderer(this, 232, 63); + this.ShoulderPadRight2.setRotationPoint(-5.0F, -2.5F, -3.0F); + this.ShoulderPadRight2.addBox(-0.1F, 2.1F, 0.0F, 6, 2, 6, 0.0F); + this.setRotateAngle(ShoulderPadRight2, 0.0F, -0.0F, -0.3665191429188092F); + + this.ShoulderPadRight3 = new ModelRenderer(this, 215, 53); + this.ShoulderPadRight3.setRotationPoint(-5.0F, -3.0F, -2.5F); + this.ShoulderPadRight3.addBox(0.6F, 0.7F, 0.0F, 5, 2, 5, 0.0F); + this.setRotateAngle(ShoulderPadRight3, 0.0F, -0.0F, -0.20943951023931953F); + + this.ShoulderPadRight4 = new ModelRenderer(this, 219, 61); + this.ShoulderPadRight4.setRotationPoint(-4.5F, -2.5F, -2.0F); + this.ShoulderPadRight4.addBox(1.3F, -1.5F, 0.5F, 3, 2, 3, 0.0F); + this.setRotateAngle(ShoulderPadRight4, 0.0F, -0.0F, -0.12217304763960307F); + + this.bipedRightArm = new ModelRenderer(this, 40, 16); + this.bipedRightArm.setRotationPoint(-5.0F, 2.0F, 0.0F); + this.bipedRightArm.addBox(-3.0F, -2.0F, -2.0F, 4, 12, 4, 0.0F); + + this.ArmStrapRightTop = new ModelRenderer(this, 225, 77); + this.ArmStrapRightTop.setRotationPoint(-0.5F, 3.0F, -2.5F); + this.ArmStrapRightTop.addBox(0.0F, 0.0F, 0.0F, 2, 1, 5, 0.0F); + + this.ArmStrapRightBottom = new ModelRenderer(this, 225, 77); + this.ArmStrapRightBottom.setRotationPoint(-0.5F, 7.0F, -2.5F); + this.ArmStrapRightBottom.addBox(0.0F, 0.0F, 0.0F, 2, 1, 5, 0.0F); + } + + /* Leggs */ + { + this.LeggsTop = new ModelRenderer(this, 121, 15); + this.LeggsTop.setRotationPoint(0.5F, 8.0F, -2.4F); + this.LeggsTop.addBox(-5.0F, 0.0F, 0.0F, 9, 4, 5, 0.0F); + //Left + this.bipedLeftLeg = new ModelRenderer(this, 0, 16); + this.bipedLeftLeg.setRotationPoint(2.0F, 12.0F, 0.0F); + this.bipedLeftLeg.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F); + + this.MainLegPieceLeft = new ModelRenderer(this, 149, 0); + this.MainLegPieceLeft.setRotationPoint(-2.0F, -1F, -2.5F); + this.MainLegPieceLeft.addBox(0.0F, 0.0F, 0.0F, 4, 10, 5, 0.0F); + + this.LegPieceLeft1 = new ModelRenderer(this, 138, 0); + this.LegPieceLeft1.setRotationPoint(1.5F, -1F, -2.0F); + this.LegPieceLeft1.addBox(0.0F, 0.0F, 0.0F, 1, 10, 4, 0.0F); + + this.LegPieceLeft2 = new ModelRenderer(this, 138, 0); + this.LegPieceLeft2.setRotationPoint(-2.5F, -1F, -2.0F); + this.LegPieceLeft2.addBox(0.0F, 0.0F, 0.0F, 1, 10, 4, 0.0F); + + this.MainKneePadLeft = new ModelRenderer(this, 149, 15); + this.MainKneePadLeft.setRotationPoint(0.0F, 2.5F, -3.0F); + this.MainKneePadLeft.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F); + this.setRotateAngle(MainKneePadLeft, 0.0F, -0.0F, 0.7853981633974483F); + + this.KneePieceLeft1 = new ModelRenderer(this, 156, 15); + this.KneePieceLeft1.setRotationPoint(-0.5F, 2.0F, -2.7F); + this.KneePieceLeft1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 1, 0.0F); + + //Right + this.bipedRightLeg = new ModelRenderer(this, 0, 16); + this.bipedRightLeg.setRotationPoint(-2.0F, 12.0F, 0.0F); + this.bipedRightLeg.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F); + + this.MainLegPieceRight = new ModelRenderer(this, 149, 0); + this.MainLegPieceRight.setRotationPoint(-2.0F, -1F, -2.5F); + this.MainLegPieceRight.addBox(0.0F, 0.0F, 0.0F, 4, 10, 5, 0.0F); + + this.LegPieceRight1 = new ModelRenderer(this, 138, 0); + this.LegPieceRight1.setRotationPoint(-2.5F, -1F, -2.0F); + this.LegPieceRight1.addBox(0.0F, 0.0F, 0.0F, 1, 10, 4, 0.0F); + + this.LegPieceRight2 = new ModelRenderer(this, 138, 0); + this.LegPieceRight2.setRotationPoint(1.5F, -1F, -2.0F); + this.LegPieceRight2.addBox(0.0F, 0.0F, 0.0F, 1, 10, 4, 0.0F); + + this.MainKneePadRight = new ModelRenderer(this, 149, 15); + this.MainKneePadRight.setRotationPoint(0.0F, 2.5F, -3.0F); + this.MainKneePadRight.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F); + + this.setRotateAngle(MainKneePadRight, 0.0F, -0.0F, 0.7853981633974483F); + this.KneePieceRight1 = new ModelRenderer(this, 156, 15); + this.KneePieceRight1.setRotationPoint(-0.5F, 2.0F, -2.7F); + this.KneePieceRight1.addBox(0.0F, 0.0F, 0.0F, 1, 4, 1, 0.0F); + + } + + /* Boots */ + { + //Left + this.MainBootPieceLeft = new ModelRenderer(this, 119, 0); + this.MainBootPieceLeft.setRotationPoint(-2.0F, 9.1F, -2.5F); + this.MainBootPieceLeft.addBox(0.0F, 0.0F, 0.0F, 4, 3, 5, 0.0F); + + this.BootPieceLeft1 = new ModelRenderer(this, 129, 9); + this.BootPieceLeft1.setRotationPoint(-1.5F, 9.0F, -3.5F); + this.BootPieceLeft1.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1, 0.0F); + + this.BootPieceLeft2 = new ModelRenderer(this, 122, 9); + this.BootPieceLeft2.setRotationPoint(-1.0F, 9.0F, -2.5F); + this.BootPieceLeft2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F); + this.setRotateAngle(BootPieceLeft2, -0.40142572795869574F, -0.0F, 0.0F); + + this.BootPieceLeft3 = new ModelRenderer(this, 138, 0); + this.BootPieceLeft3.setRotationPoint(1.5F, 9.05F, -2.0F); + this.BootPieceLeft3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, 0.0F); + + this.BootPieceLeft4 = new ModelRenderer(this, 138, 0); + this.BootPieceLeft4.setRotationPoint(-2.5F, 9.05F, -2.0F); + this.BootPieceLeft4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, 0.0F); + + //Right + this.MainBootPieceRight = new ModelRenderer(this, 119, 0); + this.MainBootPieceRight.setRotationPoint(-2.0F, 9.1F, -2.5F); + this.MainBootPieceRight.addBox(0.0F, 0.0F, 0.0F, 4, 3, 5, 0.0F); + + this.BootPieceRight1 = new ModelRenderer(this, 129, 9); + this.BootPieceRight1.setRotationPoint(-1.5F, 9.0F, -3.5F); + this.BootPieceRight1.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1, 0.0F); + + this.BootPieceRight2 = new ModelRenderer(this, 122, 9); + this.BootPieceRight2.setRotationPoint(-1.0F, 9.0F, -2.5F); + this.BootPieceRight2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F); + this.setRotateAngle(BootPieceRight2, -0.40142572795869574F, -0.0F, 0.0F); + + this.BootPieceRight3 = new ModelRenderer(this, 138, 0); + this.BootPieceRight3.setRotationPoint(-2.5F, 9.05F, -2.0F); + this.BootPieceRight3.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, 0.0F); + + this.BootPieceRight4 = new ModelRenderer(this, 138, 0); + this.BootPieceRight4.setRotationPoint(1.5F, 9.05F, -2.0F); + this.BootPieceRight4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 4, 0.0F); + } + + + this.bipedHead.cubeList.clear(); + this.bipedHeadwear.cubeList.clear(); + if (isHelmet){ + this.bipedHead.addChild(this.MainHelmPieceLeft1); + this.bipedHead.addChild(this.HelmPieceFront2); + this.bipedHead.addChild(this.MainHelmPieceRight2); + this.bipedHead.addChild(this.MainHelmPieceTop); + this.bipedHead.addChild(this.MainHelmPieceFrontBottom); + this.bipedHead.addChild(this.HornPieceRight1); + this.bipedHead.addChild(this.HornPieceLeft1); + + this.bipedHead.addChild(this.MainHelmPieceLeft2); + this.bipedHead.addChild(this.HornPieceRight3); + this.bipedHead.addChild(this.HornPieceLeft3); + this.bipedHead.addChild(this.HelmPieceBack1); + + this.bipedHead.addChild(this.MainHelmPieceLeft3); + this.bipedHead.addChild(this.MainHelmPieceRight1); + this.bipedHead.addChild(this.HornPieceRight2); + this.bipedHead.addChild(this.MainHelmPieceBack); + this.bipedHead.addChild(this.MainHelmPieceRight3); + this.bipedHead.addChild(this.HelmPieceFront1); + this.bipedHead.addChild(this.MainHelmPieceBottom); + this.bipedHead.addChild(this.MainHelmPieceFrontTop); + this.bipedHead.addChild(this.HornPieceLeft2); + + if (isDraconic){ + this.bipedHead.addChild(this.HornPieceLeft4); + this.bipedHead.addChild(this.HornPieceRight4); + } + else + { + this.bipedHead.addChild(this.WyHelmPieceTop1); + this.bipedHead.addChild(this.WyHelmPieceTop2); + this.bipedHead.addChild(this.WyHelmPieceTop3); + this.bipedHead.addChild(this.WyHelmPieceTop4); + } + } + + this.bipedBody.cubeList.clear(); + this.bipedRightArm.cubeList.clear(); + this.bipedLeftArm.cubeList.clear(); + if (isChestPiece){ + this.bipedBody.addChild(this.MainChestPieceBottom); + this.bipedBody.addChild(this.ChestDecorationPiece2); + this.bipedBody.addChild(this.ChestDecorationPiece4); + + if (isDraconic){ + this.bipedBody.addChild(this.DrMainChestPieceTop); + this.bipedBody.addChild(this.DrMainChestPieceMid); + this.bipedBody.addChild(this.DrChestDecorationPiece1); + this.bipedBody.addChild(this.DrChestDecorationPiece3); + + this.bipedLeftArm.addChild(this.ArmGuardPieceLeft1); + this.bipedLeftArm.addChild(this.ArmGuardPieceLeft2); + this.bipedLeftArm.addChild(this.ArmGuardPieceLeft3); + this.bipedLeftArm.addChild(this.ArmGuardPieceLeft4); + this.bipedLeftArm.addChild(this.MainArmGuardLeft); + this.bipedLeftArm.addChild(this.ArmStrapLeftTop); + this.bipedLeftArm.addChild(this.ArmStrapLeftBottom); + + this.bipedRightArm.addChild(this.ArmGuardPieceRight1); + this.bipedRightArm.addChild(this.ArmGuardPieceRight2); + this.bipedRightArm.addChild(this.ArmGuardPieceRight3); + this.bipedRightArm.addChild(this.ArmGuardPieceRight4); + this.bipedRightArm.addChild(this.MainArmGuardRight); + this.bipedRightArm.addChild(this.ArmStrapRightTop); + this.bipedRightArm.addChild(this.ArmStrapRightBottom); + } + else + { + this.bipedBody.addChild(this.WyMainChestPieceMid); + this.bipedBody.addChild(this.WyChestPieceTop2); + this.bipedBody.addChild(this.WyChestPieceTop1); + this.bipedBody.addChild(this.WyChestPieceTop3); + this.bipedBody.addChild(this.WyChestDecorationPiece3); + this.bipedBody.addChild(this.WyMainChestPieceTop); + } + + this.bipedLeftArm.addChild(this.ShoulderPadLeft1); + this.bipedLeftArm.addChild(this.ShoulderPadLeft2); + this.bipedLeftArm.addChild(this.ShoulderPadLeft3); + this.bipedLeftArm.addChild(this.ShoulderPadLeft4); + + this.bipedRightArm.addChild(this.ShoulderPadRight1); + this.bipedRightArm.addChild(this.ShoulderPadRight2); + this.bipedRightArm.addChild(this.ShoulderPadRight3); + this.bipedRightArm.addChild(this.ShoulderPadRight4); + } + + this.bipedLeftLeg.cubeList.clear(); + this.bipedRightLeg.cubeList.clear(); + if (isLeggings){ + this.bipedBody.addChild(this.LeggsTop); + + this.bipedLeftLeg.addChild(this.LegPieceLeft1); + this.bipedLeftLeg.addChild(this.MainKneePadLeft); + this.bipedLeftLeg.addChild(this.MainLegPieceLeft); + this.bipedLeftLeg.addChild(this.KneePieceLeft1); + this.bipedLeftLeg.addChild(this.LegPieceLeft2); + + this.bipedRightLeg.addChild(this.LegPieceRight2); + this.bipedRightLeg.addChild(this.LegPieceRight1); + this.bipedRightLeg.addChild(this.MainKneePadRight); + this.bipedRightLeg.addChild(this.KneePieceRight1); + this.bipedRightLeg.addChild(this.MainLegPieceRight); + + if (isDraconic){ + this.bipedBody.addChild(this.BeltFront); + this.bipedBody.addChild(this.BeltBack); + this.bipedBody.addChild(this.BeltLeft); + this.bipedBody.addChild(this.BeltRight); + this.bipedBody.addChild(this.BeltBuckle); + } + } + + + if (isdBoots){ + this.bipedLeftLeg.addChild(this.MainBootPieceLeft); + this.bipedLeftLeg.addChild(this.BootPieceLeft2); + this.bipedLeftLeg.addChild(this.BootPieceLeft1); + this.bipedLeftLeg.addChild(this.BootPieceLeft3); + this.bipedLeftLeg.addChild(this.BootPieceLeft4); + + this.bipedRightLeg.addChild(this.MainBootPieceRight); + this.bipedRightLeg.addChild(this.BootPieceRight1); + this.bipedRightLeg.addChild(this.BootPieceRight2); + this.bipedRightLeg.addChild(this.BootPieceRight3); + this.bipedRightLeg.addChild(this.BootPieceRight4); + } + + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { + setRotationAngles(f, f1, f2, f3, f4, f5, entity); + this.bipedRightLeg.render(f5); + this.bipedBody.render(f5*1.05F);// * 1.1F); + this.bipedLeftArm.render(f5); + this.bipedRightArm.render(f5); + this.bipedLeftLeg.render(f5); + this.bipedHead.render(f5*1.05F); + } + + /** + * This is a helper function from Tabula to set the rotation of model parts + */ + public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { + modelRenderer.rotateAngleX = x; + modelRenderer.rotateAngleY = y; + modelRenderer.rotateAngleZ = z; + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/client/model/ModelWyvernArmorOBJ.java b/src/main/java/com/brandon3055/draconicevolution/client/model/ModelWyvernArmor.java similarity index 97% rename from src/main/java/com/brandon3055/draconicevolution/client/model/ModelWyvernArmorOBJ.java rename to src/main/java/com/brandon3055/draconicevolution/client/model/ModelWyvernArmor.java index 89c4bacd..aab9f97d 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/model/ModelWyvernArmorOBJ.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/model/ModelWyvernArmor.java @@ -6,7 +6,7 @@ import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; -public class ModelWyvernArmorOBJ extends ModelBiped { +public class ModelWyvernArmor extends ModelBiped { public ModelRenderOBJ head; public ModelRenderOBJ body; @@ -18,7 +18,7 @@ public class ModelWyvernArmorOBJ extends ModelBiped { public ModelRenderOBJ rightBoot; public ModelRenderOBJ leftBoot; - public ModelWyvernArmorOBJ(float f, boolean isHelmet, boolean isChestPiece, boolean isLeggings, boolean isdBoots) { + public ModelWyvernArmor(float f, boolean isHelmet, boolean isChestPiece, boolean isLeggings, boolean isdBoots) { super(f, 0.0f, 128, 128); this.bipedHead = new ModelRenderer(this, 0, 0); diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/entity/RenderChaosCrystal.java b/src/main/java/com/brandon3055/draconicevolution/client/render/entity/RenderChaosCrystal.java index 324d0fff..26c2c0ef 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/entity/RenderChaosCrystal.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/entity/RenderChaosCrystal.java @@ -25,13 +25,13 @@ public class RenderChaosCrystal extends Render { } public void doRender(EntityChaosCrystal crystal, double x, double y, double z, float f, float partialTick) { - float rotation = (float)crystal.innerRotation + (crystal.getHealth() > 0 ? partialTick : 0); + float rotation = (float)crystal.innerRotation + (crystal.health > 0 ? partialTick : 0); GL11.glPushMatrix(); GL11.glTranslated(x, y, z); ResourceHandler.bindResource("textures/entity/chaosCrystal.png"); float r2 = MathHelper.sin(rotation * 0.2F) / 2.0F + 0.5F; r2 += r2 * r2; - this.model.render(crystal, 0.0F, rotation * 3.0F, r2 * 0.2F, crystal.deathAnimation, crystal.getHealth(), 0.0625F); + this.model.render(crystal, 0.0F, rotation * 3.0F, r2 * 0.2F, crystal.deathAnimation, crystal.health, 0.0625F); GL11.glPopMatrix(); diff --git a/src/main/java/com/brandon3055/draconicevolution/client/render/entity/RenderDragon.java b/src/main/java/com/brandon3055/draconicevolution/client/render/entity/RenderDragon.java index ee0550c5..df6c97c6 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/render/entity/RenderDragon.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/render/entity/RenderDragon.java @@ -148,14 +148,15 @@ public class RenderDragon extends RenderLiving GL11.glShadeModel(GL11.GL_FLAT); RenderHelper.enableStandardItemLighting(); GL11.glPopMatrix(); - } else if (dragon instanceof EntityChaosGuardian && ((EntityChaosGuardian) dragon).healingChaosCrystal != null){ + } + else if (dragon instanceof EntityChaosGuardian && ((EntityChaosGuardian) dragon).crystalY > 0){ - float f2 = (float)((EntityChaosGuardian) dragon).healingChaosCrystal.innerRotation + p_76986_9_; + float f2 = ((EntityChaosGuardian) dragon).healingChaosCrystal != null ? (float)((EntityChaosGuardian) dragon).healingChaosCrystal.innerRotation + p_76986_9_ : 0; float f3 = MathHelper.sin(f2 * 0.2F) / 2.0F + 0.5F; f3 = (f3 * f3 + f3) * 0.2F; - float f4 = (float)(((EntityChaosGuardian) dragon).healingChaosCrystal.posX - dragon.posX - (dragon.prevPosX - dragon.posX) * (double)(1.0F - p_76986_9_)); - float f5 = (float)((double)f3 + ((EntityChaosGuardian) dragon).healingChaosCrystal.posY - 1.0D - dragon.posY - (dragon.prevPosY - dragon.posY) * (double)(1.0F - p_76986_9_)); - float f6 = (float)(((EntityChaosGuardian) dragon).healingChaosCrystal.posZ - dragon.posZ - (dragon.prevPosZ - dragon.posZ) * (double)(1.0F - p_76986_9_)); + float f4 = (float)(((EntityChaosGuardian) dragon).crystalX+0.5 - dragon.posX - (dragon.prevPosX - dragon.posX) * (double)(1.0F - p_76986_9_)); + float f5 = (float)((double)f3 + ((EntityChaosGuardian) dragon).crystalY+0.5 - 1.0D - dragon.posY - (dragon.prevPosY - dragon.posY) * (double)(1.0F - p_76986_9_)); + float f6 = (float)(((EntityChaosGuardian) dragon).crystalZ+0.5 - dragon.posZ - (dragon.prevPosZ - dragon.posZ) * (double)(1.0F - p_76986_9_)); float f7 = MathHelper.sqrt_float(f4 * f4 + f6 * f6); float f8 = MathHelper.sqrt_float(f4 * f4 + f5 * f5 + f6 * f6); GL11.glPushMatrix(); @@ -189,6 +190,48 @@ public class RenderDragon extends RenderLiving RenderHelper.enableStandardItemLighting(); GL11.glPopMatrix(); } +// } else if (dragon instanceof EntityChaosGuardian && ((EntityChaosGuardian) dragon).healingChaosCrystal != null){ +// +// +// float f2 = (float)((EntityChaosGuardian) dragon).healingChaosCrystal.innerRotation + p_76986_9_; +// float f3 = MathHelper.sin(f2 * 0.2F) / 2.0F + 0.5F; +// f3 = (f3 * f3 + f3) * 0.2F; +// float f4 = (float)(((EntityChaosGuardian) dragon).healingChaosCrystal.posX - dragon.posX - (dragon.prevPosX - dragon.posX) * (double)(1.0F - p_76986_9_)); +// float f5 = (float)((double)f3 + ((EntityChaosGuardian) dragon).healingChaosCrystal.posY - 1.0D - dragon.posY - (dragon.prevPosY - dragon.posY) * (double)(1.0F - p_76986_9_)); +// float f6 = (float)(((EntityChaosGuardian) dragon).healingChaosCrystal.posZ - dragon.posZ - (dragon.prevPosZ - dragon.posZ) * (double)(1.0F - p_76986_9_)); +// float f7 = MathHelper.sqrt_float(f4 * f4 + f6 * f6); +// float f8 = MathHelper.sqrt_float(f4 * f4 + f5 * f5 + f6 * f6); +// GL11.glPushMatrix(); +// GL11.glTranslatef((float)p_76986_2_, (float)p_76986_4_ + 2.0F, (float)p_76986_6_); +// GL11.glRotatef((float)(-Math.atan2((double)f6, (double)f4)) * 180.0F / (float)Math.PI - 90.0F, 0.0F, 1.0F, 0.0F); +// GL11.glRotatef((float)(-Math.atan2((double)f7, (double)f5)) * 180.0F / (float)Math.PI - 90.0F, 1.0F, 0.0F, 0.0F); +// Tessellator tessellator = Tessellator.instance; +// RenderHelper.disableStandardItemLighting(); +// GL11.glDisable(GL11.GL_CULL_FACE); +// this.bindTexture(enderDragonCrystalBeamTextures); +// GL11.glShadeModel(GL11.GL_SMOOTH); +// float f9 = 0.0F - ((float)dragon.ticksExisted + p_76986_9_) * 0.01F; +// float f10 = MathHelper.sqrt_float(f4 * f4 + f5 * f5 + f6 * f6) / 32.0F - ((float)dragon.ticksExisted + p_76986_9_) * 0.01F; +// tessellator.startDrawing(5); +// byte b0 = 8; +// +// for (int i = 0; i <= b0; ++i) +// { +// float f11 = MathHelper.sin((float)(i % b0) * (float)Math.PI * 2.0F / (float)b0) * 0.75F; +// float f12 = MathHelper.cos((float)(i % b0) * (float)Math.PI * 2.0F / (float)b0) * 0.75F; +// float f13 = (float)(i % b0) * 1.0F / (float)b0; +// tessellator.setColorOpaque_I(0); +// tessellator.addVertexWithUV((double)(f11 * 0.2F), (double)(f12 * 0.2F), 0.0D, (double)f13, (double)f10); +// tessellator.setColorOpaque_I(0xFF0000); +// tessellator.addVertexWithUV((double)f11, (double)f12, (double)f8, (double)f13, (double)f9); +// } +// +// tessellator.draw(); +// GL11.glEnable(GL11.GL_CULL_FACE); +// GL11.glShadeModel(GL11.GL_FLAT); +// RenderHelper.enableStandardItemLighting(); +// GL11.glPopMatrix(); +// } } /** diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/ChaosCrystal.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/ChaosCrystal.java index 6e78b304..eec81d7b 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/ChaosCrystal.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/ChaosCrystal.java @@ -3,18 +3,23 @@ package com.brandon3055.draconicevolution.common.blocks; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.ModItems; -import com.brandon3055.draconicevolution.common.entity.EntityChaosVortex; import com.brandon3055.draconicevolution.common.lib.References; import com.brandon3055.draconicevolution.common.tileentities.TileChaosShard; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.AxisAlignedBB; +import net.minecraft.util.DamageSource; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; +import java.util.List; import java.util.Random; /** @@ -75,11 +80,32 @@ public class ChaosCrystal extends BlockDE { @Override public void breakBlock(World world, int x, int y, int z, Block block, int i) { + if (!world.isRemote && world.getTileEntity(x, y, z) instanceof TileChaosShard){ + ((TileChaosShard)world.getTileEntity(x, y, z)).detonate(); + } super.breakBlock(world, x, y, z, block, i); - if (!world.isRemote){ - EntityChaosVortex vortex = new EntityChaosVortex(world); - vortex.setPosition(x+0.5, y+0.5, z+0.5); - world.spawnEntityInWorld(vortex); + } + + @Override + public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack stack) { + entity.attackEntityFrom(punishment, Float.MAX_VALUE); + } + + private static String[] naughtyList = new String[] {"item.blockMover", "tile.CardboardBox", "item.WandCasting"}; + private static DamageSource punishment = new DamageSource("chrystalMoved").setDamageAllowedInCreativeMode().setDamageBypassesArmor().setDamageIsAbsolute(); + + @Override + public void onBlockAdded(World world, int x, int y, int z) { + List players = world.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(x, y, z, x, y, z).expand(15, 15, 15)); + + for (EntityPlayer player : players){ + if (player.getHeldItem() != null){ + for (String s : naughtyList){ + if (player.getHeldItem().getUnlocalizedName().equals(s)){ + player.attackEntityFrom(punishment, Float.MAX_VALUE); + } + } + } } } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconicBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconicBlock.java index 45750063..cd31ce3a 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconicBlock.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconicBlock.java @@ -7,7 +7,9 @@ import com.brandon3055.draconicevolution.common.lib.Strings; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.util.IIcon; +import net.minecraft.world.Explosion; import net.minecraft.world.IBlockAccess; +import net.minecraft.world.World; /** * Created by Brandon on 21/11/2014. @@ -28,6 +30,9 @@ public class DraconicBlock extends BlockDE { return false; } + @Override + public void onBlockExploded(World world, int x, int y, int z, Explosion explosion) {} + @Override public void registerBlockIcons(IIconRegister iconRegister) { blockIcon = iconRegister.registerIcon(References.RESOURCESPREFIX + "draconic_block"); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumBlock.java index e02c57d3..bc8cd8f9 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumBlock.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/DraconiumBlock.java @@ -16,6 +16,7 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; +import net.minecraft.world.Explosion; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; @@ -43,6 +44,9 @@ public class DraconiumBlock extends BlockDE { return false; } + @Override + public void onBlockExploded(World world, int x, int y, int z, Explosion explosion) {} + @Override @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iconRegister) { diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java index acd77ab0..c288eab6 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/InfusedObsidian.java @@ -3,7 +3,6 @@ package com.brandon3055.draconicevolution.common.blocks; import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.draconicevolution.common.utills.LogHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; @@ -15,6 +14,7 @@ import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.StatCollector; +import net.minecraft.world.Explosion; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; @@ -44,10 +44,11 @@ public class InfusedObsidian extends BlockDE { @Override public boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity) { - LogHelper.info("Can Destroy "+entity); return false; } + @Override + public void onBlockExploded(World world, int x, int y, int z, Explosion explosion) {} @Override public float getExplosionResistance(Entity par1Entity, World world, int x, int y, int z, double explosionX, double explosionY, double explosionZ) { diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/Grinder.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/Grinder.java index a9311a97..8b78a26c 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/Grinder.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/machine/Grinder.java @@ -21,6 +21,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; +import net.minecraft.world.Explosion; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; @@ -60,6 +61,9 @@ public class Grinder extends BlockCustomDrop } } + + @Override + public void onBlockExploded(World world, int x, int y, int z, Explosion explosion) {} @SuppressWarnings({ "rawtypes", "unchecked" }) @SideOnly(Side.CLIENT) diff --git a/src/main/java/com/brandon3055/draconicevolution/common/container/ContainerReactor.java b/src/main/java/com/brandon3055/draconicevolution/common/container/ContainerReactor.java index 4609b77b..84e35e63 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/container/ContainerReactor.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/container/ContainerReactor.java @@ -11,6 +11,8 @@ import net.minecraft.inventory.Slot; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; +import java.util.Iterator; + /** * Created by brandon3055 on 30/7/2015. */ @@ -64,11 +66,13 @@ public class ContainerReactor extends ContainerDataSync { public double LTGenerationRate = -1; public int LTFieldDrain = -1; public double LTFuelUseRate = -1; + public boolean LTOffline; //####### public ContainerReactor(EntityPlayer player, TileReactorCore reactor){ this.reactor = reactor; this.player = player; + this.LTOffline = reactor.reactorState == TileReactorCore.STATE_OFFLINE; for (int x = 0; x < 9; x++) { addSlotToContainer(new Slot(player.inventory, x, 44 + 18 * x, 198)); @@ -103,6 +107,23 @@ public class ContainerReactor extends ContainerDataSync { @Override public void detectAndSendChanges() { //todo check what values are being synced by the tile and remove them from here + if (LTOffline && reactor.reactorState != TileReactorCore.STATE_OFFLINE){ + Iterator i = inventorySlots.iterator(); + while (i.hasNext()) { + Object o = i.next(); + if (o instanceof SlotExtract || o instanceof SlotInsert) i.remove(); + } + sendObjectToClient(null, 99, 1); + } + else if(!LTOffline && reactor.reactorState == TileReactorCore.STATE_OFFLINE){ + addSlotToContainer(new SlotInsert(ioSlots, 0, 15, 140, reactor)); + addSlotToContainer(new SlotExtract(ioSlots, 1, 217, 140)); + sendObjectToClient(null, 98, 1); + } + LTOffline = reactor.reactorState == TileReactorCore.STATE_OFFLINE; + + + if (reactor.conversionUnit != LTConversionUnit) LTConversionUnit = (Integer) sendObjectToClient(null, 0, (int)(reactor.conversionUnit*100)); // if ((int)reactor.reactionTemperature != LTReactionIntensity)LTReactionIntensity = (Integer) sendObjectToClient(null, 1, (int) reactor.reactionTemperature); // if ((int)reactor.maxReactTemperature != LTMaxReactIntensity)LTMaxReactIntensity = (Integer) sendObjectToClient(null, 2, (int) reactor.maxReactTemperature); @@ -134,8 +155,19 @@ public class ContainerReactor extends ContainerDataSync { else if (index == 9) reactor.generationRate = value; else if (index == 10) reactor.fieldDrain = value; else if (index == 11) reactor.fuelUseRate = value/1000000D; - if (index == 20){ - reactor.processButtonPress(value); + if (index == 20)reactor.processButtonPress(value); + if (index == 99) + { + Iterator i = inventorySlots.iterator(); + while (i.hasNext()) { + Object o = i.next(); + if (o instanceof SlotExtract || o instanceof SlotInsert) i.remove(); + } + } + else if (index == 98) + { + addSlotToContainer(new SlotInsert(ioSlots, 0, 15, 140, reactor)); + addSlotToContainer(new SlotExtract(ioSlots, 1, 217, 140)); } } @@ -178,7 +210,6 @@ public class ContainerReactor extends ContainerDataSync { ioSlots.getStorage()[1] = new ItemStack(ModItems.chaosFragment, i2, 0); reactor.convertedFuel -= i2 * 16; } - } return super.slotClick(slot, button, p_75144_3_, player1); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosCrystal.java b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosCrystal.java index 2b4159d4..a914979e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosCrystal.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosCrystal.java @@ -29,6 +29,7 @@ public class EntityChaosCrystal extends EntityLivingBase { public int shieldTime = 0; public EntityChaosGuardian guardian; private int timeTillDeath = -1; + public float health = 50; public EntityChaosCrystal(World p_i1698_1_) { super(p_i1698_1_); @@ -55,6 +56,7 @@ public class EntityChaosCrystal extends EntityLivingBase { public void entityInit() { super.entityInit(); dataWatcher.addObject(20, (short)shieldTime); + dataWatcher.addObject(21, health); } @Override @@ -63,10 +65,17 @@ public class EntityChaosCrystal extends EntityLivingBase { this.prevPosY = this.posY; this.prevPosZ = this.posZ; - if (!worldObj.isRemote)dataWatcher.updateObject(20, (short)shieldTime); - else shieldTime = (int)dataWatcher.getWatchableObjectShort(20); + if (!worldObj.isRemote){ + health = getHealth(); + dataWatcher.updateObject(20, (short)shieldTime); + dataWatcher.updateObject(21, health); + } + else { + shieldTime = (int)dataWatcher.getWatchableObjectShort(20); + health = dataWatcher.getWatchableObjectFloat(21); + } //setHealth(0); - if (getHealth() > 0){ + if (health > 0){ if (shieldTime > 0) shieldTime--; if (deathAnimation < 1F) deathAnimation += 0.1F; ++this.innerRotation; @@ -108,6 +117,11 @@ public class EntityChaosCrystal extends EntityLivingBase { } } + @Override + public boolean isEntityAlive() { + return !isDead; + } + public void setDeathTimer(){ if (timeTillDeath > 0) return; timeTillDeath = rand.nextInt(400); @@ -151,7 +165,7 @@ public class EntityChaosCrystal extends EntityLivingBase { } if (getGuardian() != null) getGuardian().onCrystalTargeted((EntityPlayer)source.getEntity(), getHealth() <= 0); return true; - }else if (shieldTime > 0) shieldTime = 100 + rand.nextInt(100); + }else if (shieldTime > 0 && !this.worldObj.isRemote) shieldTime = 100 + rand.nextInt(100); } return false; } @@ -175,7 +189,7 @@ public class EntityChaosCrystal extends EntityLivingBase { if (getGuardian() != null) getGuardian().updateCrystals(); } - public boolean isAlive() { return getHealth() > 0F; } + public boolean isAlive() { return health > 0F; } @Override public ItemStack getHeldItem() { diff --git a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosGuardian.java b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosGuardian.java index 3e0ab6be..0a00e813 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosGuardian.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityChaosGuardian.java @@ -52,7 +52,10 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio public int activeCrystals = 0; public EntityChaosCrystal healingChaosCrystal; - public int connectedCrystalID = -1; +// public int connectedCrystalID = -1; + public int crystalX = 0; + public int crystalY = -1; + public int crystalZ = 0; private static final int ATTACK_FIREBALL_CHARGE = 0; private static final int ATTACK_FIREBALL_CHASER = 1; @@ -72,7 +75,10 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio @Override protected void entityInit() { super.entityInit(); - dataWatcher.addObject(20, connectedCrystalID); +// dataWatcher.addObject(20, connectedCrystalID); + dataWatcher.addObject(21, crystalX); + dataWatcher.addObject(22, crystalY); + dataWatcher.addObject(23, crystalZ); } @Override @@ -106,9 +112,12 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio float moveSpeedMultiplier = behaviour.dragonSpeed; if (this.worldObj.isRemote) { - connectedCrystalID = dataWatcher.getWatchableObjectInt(20); - if (ticksExisted % 10 == 0 && connectedCrystalID != -1 && worldObj.getEntityByID(connectedCrystalID) instanceof EntityChaosCrystal) healingChaosCrystal = (EntityChaosCrystal)worldObj.getEntityByID(connectedCrystalID); - else if (connectedCrystalID == -1 && healingChaosCrystal != null) healingChaosCrystal = null; +// connectedCrystalID = dataWatcher.getWatchableObjectInt(20); + crystalX = dataWatcher.getWatchableObjectInt(21); + crystalY = dataWatcher.getWatchableObjectInt(22); + crystalZ = dataWatcher.getWatchableObjectInt(23); +// if (ticksExisted % 10 == 0 && connectedCrystalID != -1 && worldObj.getEntityByID(connectedCrystalID) instanceof EntityChaosCrystal) healingChaosCrystal = (EntityChaosCrystal)worldObj.getEntityByID(connectedCrystalID); +// else if (connectedCrystalID == -1 && healingChaosCrystal != null) healingChaosCrystal = null; f = MathHelper.cos(this.animTime * (float) Math.PI * 2.0F); f1 = MathHelper.cos(this.prevAnimTime * (float) Math.PI * 2.0F); @@ -122,7 +131,10 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio float f2; if (!worldObj.isRemote) { - dataWatcher.updateObject(20, connectedCrystalID); +// dataWatcher.updateObject(20, connectedCrystalID); + dataWatcher.updateObject(21, crystalX); + dataWatcher.updateObject(22, crystalY); + dataWatcher.updateObject(23, crystalZ); updateTarget(); if (worldObj.getClosestPlayer(posX, posY, posZ, 500) == null && getDistance(homeX, homeY, homeZ) < 100) DragonChunkLoader.stopLoading(this); @@ -390,6 +402,15 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio if (getHealth() > 0 && getHealth() < getMaxHealth() * 0.2F) behaviour = EnumBehaviour.LOW_HEALTH_STRATEGY; + if (ticksExisted % 200 == 0) { + crystals = null; + activeCrystals = 0; + crystalY = -1; +// connectedCrystalID = -1; + healingChaosCrystal = null; + updateCrystals(); + } + switch (behaviour){ case ROAMING: @@ -409,7 +430,7 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio case CIRCLE_PLAYER: circlePosition += (0.02F * circleDirection); - if (Utills.getDistanceAtoB(posX, posZ, homeX, homeZ) > 300) behaviour = EnumBehaviour.GO_HOME; + if (Utills.getDistanceAtoB(posX, posZ, homeX, homeZ) > 300 || posY > 250) behaviour = EnumBehaviour.GO_HOME; break; case LOW_HEALTH_STRATEGY: @@ -439,6 +460,8 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio if (behaviour == EnumBehaviour.DEAD) return; + if (ticksExisted % 1000 == 0 && rand.nextBoolean()) selectNewBehaviour(); + if (ignitionChargeTimer > 1 || (ignitionChargeTimer == 1 && ticksExisted % 20 == 0))ignitionChargeTimer--; if (ignitionChargeTimer <= 0 && !worldObj.isRemote){ if ((ticksExisted - 19) % 20 == 0) ignitionChargeTimer = (behaviour == EnumBehaviour.LOW_HEALTH_STRATEGY ? 1000 : 2000) + rand.nextInt(600); @@ -728,6 +751,8 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio dmg = dmg / 4.0F + 1.0F; } + if (dmg > 50) dmg -= ((dmg-50)*0.7); + switch (behaviour){ case ROAMING: break; @@ -784,7 +809,7 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio { // if (getHealth() > 1F)setHealth(1F);//tod and remove this! this.func_82195_e(damageSource, dmg); - } + } else if (damageSource.getEntity() instanceof EntityPlayer) ((EntityPlayer)damageSource.getEntity()).addChatComponentMessage(new ChatComponentText(EnumChatFormatting.DARK_PURPLE+StatCollector.translateToLocal("msg.de.guardianAttackBlocked.txt"))); return true; } @@ -959,7 +984,7 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio { Entity entity = (Entity) par1List.get(i); - if (entity instanceof EntityLivingBase) + if (entity instanceof EntityPlayer) { ((EntityLivingBase) entity).setLastAttacker(this); entity.attackEntityFrom(new DamageSourceChaos(this), 50F); @@ -976,7 +1001,8 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio if (getHealth() <= 0) { healingChaosCrystal = null; - connectedCrystalID = -1; + crystalY = -1; +// connectedCrystalID = -1; return; } @@ -994,8 +1020,16 @@ public class EntityChaosGuardian extends EntityDragon {//summon DraconicEvolutio EntityChaosCrystal closest = null; for (EntityChaosCrystal crystal : crystals) if (crystal.isAlive() && (closest == null || getDistanceToEntity(crystal) < getDistanceToEntity(closest))) closest = crystal; healingChaosCrystal = closest; - if (healingChaosCrystal != null) connectedCrystalID = healingChaosCrystal.getEntityId(); - else connectedCrystalID = -1; + if (healingChaosCrystal != null) { +// connectedCrystalID = healingChaosCrystal.getEntityId(); + crystalX = (int)Math.floor(healingChaosCrystal.posX); + crystalY = (int)Math.floor(healingChaosCrystal.posY); + crystalZ = (int)Math.floor(healingChaosCrystal.posZ); + } + else { + crystalY = -1; +// connectedCrystalID = -1; + } } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/handler/ConfigHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/handler/ConfigHandler.java index 66e3606a..8929d655 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/handler/ConfigHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/handler/ConfigHandler.java @@ -18,6 +18,7 @@ public class ConfigHandler { public static int cometRarity; public static int hudX; public static int hudY; + public static int chaosIslandSeparation; public static boolean generateEnderComets; public static boolean generateChaosIslands; public static boolean pigmenBloodRage; @@ -42,6 +43,7 @@ public class ConfigHandler { public static boolean speedLimitops; public static boolean rapidlyDespawnMinedItems; public static boolean useOldArmorModel; + public static boolean useOriginal3DArmorModel; public static boolean useOldD2DToolTextures; //spawner @@ -111,6 +113,9 @@ public class ConfigHandler { useOldArmorModel = config.get(Configuration.CATEGORY_GENERAL, "Use old armor model", false, "If true the armor will use the original vanilla 2D model instead of the new 3D models").getBoolean(false); sumonRitualAccelerated = config.get(Configuration.CATEGORY_GENERAL, "Fast Summon Ritual", false, "If true the resurrection ritual will be a lot faster").getBoolean(false); useOldD2DToolTextures = config.get(Configuration.CATEGORY_GENERAL, "Use old 2D tool textures", false, "If true the 3D tool models will be replaced with standard 2D textures").getBoolean(false); + chaosIslandSeparation = config.get(Configuration.CATEGORY_GENERAL, "Chaos Island Separation", 10000, "This sets how far apart the chaos islands will spawn. The islands spawn in a grid pattern.").getInt(10000); + useOriginal3DArmorModel = config.get(Configuration.CATEGORY_GENERAL, "Use the original 3D armor models", false, "If true the original 3D armor models created by Skeletonpunk will be used instead of the current ones").getBoolean(false); + //Spawner spawnerListType = config.get("spawner", "listType", false, "Sets weather the spawner list is a white list or a black list (true = white list false = black list)").getBoolean(false); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/handler/MinecraftForgeEventHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/handler/MinecraftForgeEventHandler.java index c2abb304..47bfdbb5 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/handler/MinecraftForgeEventHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/handler/MinecraftForgeEventHandler.java @@ -98,7 +98,6 @@ public class MinecraftForgeEventHandler { try { persistenceRequired.setBoolean(entity, false); entity.getEntityData().removeTag("SpawnedByDESpawner"); - LogHelper.info("Tag Removed From " + entity); } catch (Exception e) { LogHelper.warn("Error occured while resetting entity persistence: " + e); entity.getEntityData().removeTag("SpawnedByDESpawner"); @@ -401,7 +400,6 @@ public class MinecraftForgeEventHandler { @SubscribeEvent public void playerInteract(PlayerInteractEvent event){ if (event.action == PlayerInteractEvent.Action.LEFT_CLICK_BLOCK){ - ForgeDirection face = ForgeDirection.getOrientation(event.face); int x = event.x + face.offsetX; int y = event.y + face.offsetY; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/DraconicCore.java b/src/main/java/com/brandon3055/draconicevolution/common/items/DraconicCore.java index 9c4e6e7d..c66de656 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/DraconicCore.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/DraconicCore.java @@ -6,6 +6,7 @@ import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.lib.Strings; import com.brandon3055.draconicevolution.common.tileentities.TileCustomSpawner; +import com.brandon3055.draconicevolution.common.utills.LogHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.player.EntityPlayer; @@ -39,6 +40,7 @@ public class DraconicCore extends ItemDE { TileEntityMobSpawner oldSpawner = world.getTileEntity(x, y, z) instanceof TileEntityMobSpawner ? (TileEntityMobSpawner)world.getTileEntity(x, y, z) : null; if (oldSpawner == null) return false; String mobName = oldSpawner.func_145881_a().getEntityNameToSpawn(); + LogHelper.info(mobName); world.setBlock(x, y, z, ModBlocks.customSpawner); TileCustomSpawner newSpawner = world.getTileEntity(x, y, z) instanceof TileCustomSpawner ? (TileCustomSpawner)world.getTileEntity(x, y, z) : null; @@ -47,6 +49,7 @@ public class DraconicCore extends ItemDE { newSpawner.isSetToSpawn = true; world.markBlockForUpdate(x, y, z); } + LogHelper.info(newSpawner.getBaseLogic().entityName); stack.splitStack(1); return true; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java b/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java index 588b5c65..855ecf59 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java @@ -1,6 +1,5 @@ package com.brandon3055.draconicevolution.common.items; -import com.brandon3055.draconicevolution.client.handler.ContributorHandler; import com.brandon3055.draconicevolution.client.render.particle.Particles; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.items.tools.baseclasses.ToolHandler; @@ -112,6 +111,9 @@ public class Tclogo extends ItemDE { public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { + + + // if ((int)System.currentTimeMillis() < lts + 10) return stack; // else lts = (int)System.currentTimeMillis(); //world.playSound(player.posX, player.posY, player.posZ, "DraconicEvolution:fusionExplosion", 1F, 1F, false); @@ -136,9 +138,35 @@ public class Tclogo extends ItemDE { if (!world.isRemote) { - LogHelper.info(ContributorHandler.contributors); - ContributorHandler.init(); - LogHelper.info(ContributorHandler.contributors); + int x = 45622; + LogHelper.info("45622".hashCode()); + + + int xCoord = 0; + int yCoord = 0; + int zCoord = 0; + + + + int locationHash = (String.valueOf(xCoord)+String.valueOf(yCoord)+String.valueOf(zCoord)).hashCode(); + + + + + + + + + + + + + + + + // LogHelper.info(ContributorHandler.contributors); + // ContributorHandler.init(); + // LogHelper.info(ContributorHandler.contributors); //EntityFallingBlock fallingBlock = new EntityFallingBlock(world, (int)player.posX + 0.5, (int)player.posY + 0.5, (int)player.posZ + 0.5, Blocks.obsidian, 0); //fallingBlock.field_145812_b = 2; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/DraconicArmor.java b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/DraconicArmor.java index 23135b42..0381ff12 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/DraconicArmor.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/DraconicArmor.java @@ -4,7 +4,8 @@ import cofh.api.energy.IEnergyContainerItem; import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.DraconicEvolution; -import com.brandon3055.draconicevolution.client.model.ModelDraconicArmorOBJ; +import com.brandon3055.draconicevolution.client.model.ModelDraconicArmorOld; +import com.brandon3055.draconicevolution.client.model.ModelDraconicArmor; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; import com.brandon3055.draconicevolution.common.handler.ConfigHandler; @@ -346,35 +347,38 @@ public class DraconicArmor extends ItemArmor implements ISpecialArmor, IEnergyCo public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot) { if (ConfigHandler.useOldArmorModel) return super.getArmorModel(entityLiving, itemStack, armorSlot); - if (model == null) { - if (armorType == 0) model = new ModelDraconicArmorOBJ(1.1F, true, false, false, false); - else if (armorType == 1) model = new ModelDraconicArmorOBJ(1.1F, false, true, false, false); - else if (armorType == 2) model = new ModelDraconicArmorOBJ(1.1F, false, false, true, false); - else model = new ModelDraconicArmorOBJ(1.1F, false, false, false, true); - - this.model.bipedHead.showModel = (armorType == 0); - this.model.bipedHeadwear.showModel = (armorType == 0); - this.model.bipedBody.showModel = ((armorType == 1) || (armorType == 2)); - this.model.bipedLeftArm.showModel = (armorType == 1); - this.model.bipedRightArm.showModel = (armorType == 1); - this.model.bipedLeftLeg.showModel = (armorType == 2 || armorType == 3); - this.model.bipedRightLeg.showModel = (armorType == 2 || armorType == 3); + if (!ConfigHandler.useOriginal3DArmorModel) + { + if (model == null) { + if (armorType == 0) model = new ModelDraconicArmor(1.1F, true, false, false, false); + else if (armorType == 1) model = new ModelDraconicArmor(1.1F, false, true, false, false); + else if (armorType == 2) model = new ModelDraconicArmor(1.1F, false, false, true, false); + else model = new ModelDraconicArmor(1.1F, false, false, false, true); + this.model.bipedHead.showModel = (armorType == 0); + this.model.bipedHeadwear.showModel = (armorType == 0); + this.model.bipedBody.showModel = ((armorType == 1) || (armorType == 2)); + this.model.bipedLeftArm.showModel = (armorType == 1); + this.model.bipedRightArm.showModel = (armorType == 1); + this.model.bipedLeftLeg.showModel = (armorType == 2 || armorType == 3); + this.model.bipedRightLeg.showModel = (armorType == 2 || armorType == 3); + } + } + else + { + if (model == null) { + if (armorType == 0) model = new ModelDraconicArmorOld(1.1F, true, false, false, false, true); + else if (armorType == 1) model = new ModelDraconicArmorOld(1.1F, false, true, false, false, true); + else if (armorType == 2) model = new ModelDraconicArmorOld(1.1F, false, false, true, false, true); + else model = new ModelDraconicArmorOld(1.1F, false, false, false, true, true); + this.model.bipedHead.showModel = (armorType == 0); + this.model.bipedHeadwear.showModel = (armorType == 0); + this.model.bipedBody.showModel = ((armorType == 1) || (armorType == 2)); + this.model.bipedLeftArm.showModel = (armorType == 1); + this.model.bipedRightArm.showModel = (armorType == 1); + this.model.bipedLeftLeg.showModel = (armorType == 2 || armorType == 3); + this.model.bipedRightLeg.showModel = (armorType == 2 || armorType == 3); + } } - -// if (model == null) { -// if (armorType == 0) model = new ModelDraconicArmor(1.1F, true, false, false, false, true); -// else if (armorType == 1) model = new ModelDraconicArmor(1.1F, false, true, false, false, true); -// else if (armorType == 2) model = new ModelDraconicArmor(1.1F, false, false, true, false, true); -// else model = new ModelDraconicArmor(1.1F, false, false, false, true, true); -// -// this.model.bipedHead.showModel = (armorType == 0); -// this.model.bipedHeadwear.showModel = (armorType == 0); -// this.model.bipedBody.showModel = ((armorType == 1) || (armorType == 2)); -// this.model.bipedLeftArm.showModel = (armorType == 1); -// this.model.bipedRightArm.showModel = (armorType == 1); -// this.model.bipedLeftLeg.showModel = (armorType == 2 || armorType == 3); -// this.model.bipedRightLeg.showModel = (armorType == 2 || armorType == 3); -// } if (entityLiving == null) return model; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/WyvernArmor.java b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/WyvernArmor.java index d06cf6bf..37b408a1 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/WyvernArmor.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/WyvernArmor.java @@ -4,7 +4,8 @@ import cofh.api.energy.IEnergyContainerItem; import com.brandon3055.brandonscore.common.utills.InfoHelper; import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.DraconicEvolution; -import com.brandon3055.draconicevolution.client.model.ModelWyvernArmorOBJ; +import com.brandon3055.draconicevolution.client.model.ModelDraconicArmorOld; +import com.brandon3055.draconicevolution.client.model.ModelWyvernArmor; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.entity.EntityPersistentItem; import com.brandon3055.draconicevolution.common.handler.ConfigHandler; @@ -273,35 +274,37 @@ public class WyvernArmor extends ItemArmor implements ISpecialArmor, IEnergyCont public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot) { if (ConfigHandler.useOldArmorModel) return super.getArmorModel(entityLiving, itemStack, armorSlot); - if (model == null) { - if (armorType == 0) model = new ModelWyvernArmorOBJ(1.0F, true, false, false, false); - else if (armorType == 1) model = new ModelWyvernArmorOBJ(1F, false, true, false, false); - else if (armorType == 2) model = new ModelWyvernArmorOBJ(1F, false, false, true, false); - else model = new ModelWyvernArmorOBJ(1F, false, false, false, true); - - this.model.bipedHead.showModel = (armorType == 0); - this.model.bipedHeadwear.showModel = (armorType == 0); - this.model.bipedBody.showModel = ((armorType == 1) || (armorType == 2)); - this.model.bipedLeftArm.showModel = (armorType == 1); - this.model.bipedRightArm.showModel = (armorType == 1); - this.model.bipedLeftLeg.showModel = (armorType == 2 || armorType == 3); - this.model.bipedRightLeg.showModel = (armorType == 2 || armorType == 3); + if (!ConfigHandler.useOriginal3DArmorModel) { + if (model == null) { + if (armorType == 0) model = new ModelWyvernArmor(1.0F, true, false, false, false); + else if (armorType == 1) model = new ModelWyvernArmor(1F, false, true, false, false); + else if (armorType == 2) model = new ModelWyvernArmor(1F, false, false, true, false); + else model = new ModelWyvernArmor(1F, false, false, false, true); + this.model.bipedHead.showModel = (armorType == 0); + this.model.bipedHeadwear.showModel = (armorType == 0); + this.model.bipedBody.showModel = ((armorType == 1) || (armorType == 2)); + this.model.bipedLeftArm.showModel = (armorType == 1); + this.model.bipedRightArm.showModel = (armorType == 1); + this.model.bipedLeftLeg.showModel = (armorType == 2 || armorType == 3); + this.model.bipedRightLeg.showModel = (armorType == 2 || armorType == 3); + } } + else { + if (model == null) { + if (armorType == 0) model = new ModelDraconicArmorOld(1.0F, true, false, false, false, false); + else if (armorType == 1) model = new ModelDraconicArmorOld(1F, false, true, false, false, false); + else if (armorType == 2) model = new ModelDraconicArmorOld(1F, false, false, true, false, false); + else model = new ModelDraconicArmorOld(1F, false, false, false, true, false); -// if (model == null) { -// if (armorType == 0) model = new ModelDraconicArmor(1.0F, true, false, false, false, false); -// else if (armorType == 1) model = new ModelDraconicArmor(1F, false, true, false, false, false); -// else if (armorType == 2) model = new ModelDraconicArmor(1F, false, false, true, false, false); -// else model = new ModelDraconicArmor(1F, false, false, false, true, false); -// -// this.model.bipedHead.showModel = (armorType == 0); -// this.model.bipedHeadwear.showModel = (armorType == 0); -// this.model.bipedBody.showModel = ((armorType == 1) || (armorType == 2)); -// this.model.bipedLeftArm.showModel = (armorType == 1); -// this.model.bipedRightArm.showModel = (armorType == 1); -// this.model.bipedLeftLeg.showModel = (armorType == 2 || armorType == 3); -// this.model.bipedRightLeg.showModel = (armorType == 2 || armorType == 3); -// } + this.model.bipedHead.showModel = (armorType == 0); + this.model.bipedHeadwear.showModel = (armorType == 0); + this.model.bipedBody.showModel = ((armorType == 1) || (armorType == 2)); + this.model.bipedLeftArm.showModel = (armorType == 1); + this.model.bipedRightArm.showModel = (armorType == 1); + this.model.bipedLeftLeg.showModel = (armorType == 2 || armorType == 3); + this.model.bipedRightLeg.showModel = (armorType == 2 || armorType == 3); + } + } if (entityLiving == null) return model; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/CreativeStructureSpawner.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/CreativeStructureSpawner.java index 387b4e15..7746d7a0 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/CreativeStructureSpawner.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/CreativeStructureSpawner.java @@ -1,10 +1,11 @@ package com.brandon3055.draconicevolution.common.items.tools; -import com.brandon3055.draconicevolution.common.items.ItemDE; +import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.ModItems; +import com.brandon3055.draconicevolution.common.items.ItemDE; import com.brandon3055.draconicevolution.common.lib.Strings; +import com.brandon3055.draconicevolution.common.tileentities.TileChaosShard; import com.brandon3055.draconicevolution.common.world.WorldGenEnderComet; -import com.brandon3055.draconicevolution.common.world.WorldGenEnderIsland; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.creativetab.CreativeTabs; @@ -44,9 +45,10 @@ public class CreativeStructureSpawner extends ItemDE { new WorldGenEnderComet().generate(world, new Random(), (int)player.posX, (int)player.posY + 10, (int)player.posZ); break; case 1: - new WorldGenEnderIsland().generate(world, new Random(), (int)player.posX, (int)player.posY + 10, (int)player.posZ); + //new WorldGenEnderIsland().generate(world, new Random(), (int)player.posX, (int)player.posY + 10, (int)player.posZ); break; case 2: + break; case 3: break; @@ -54,6 +56,38 @@ public class CreativeStructureSpawner extends ItemDE { return stack; } + @Override + public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) { + + if (world.isRemote) return false; + + switch (stack.getItemDamage()){ + case 0: + break; + case 1: + break; + case 2: + world.setBlock(x, y, z, ModBlocks.chaosCrystal); + TileChaosShard tileChaosShard = (TileChaosShard)world.getTileEntity(x, y, z); + tileChaosShard.locationHash = tileChaosShard.getLocationHash(x, y, z, player.dimension); + tileChaosShard.guardianDefeated = true; + world.markBlockForUpdate(x, y, z); + break; + case 3: + break; + } + return false; + } + + @Override + public boolean onBlockStartBreak(ItemStack itemstack, int x, int y, int z, EntityPlayer player) { + if (player.worldObj.getBlock(x, y, z) == ModBlocks.chaosCrystal) { + player.worldObj.removeTileEntity(x, y, z); + player.worldObj.setBlockToAir(x, y, z); + } + return true; + } + @Override public String getUnlocalizedName(ItemStack itemStack) { String name = "null"; @@ -65,6 +99,7 @@ public class CreativeStructureSpawner extends ItemDE { name = "EnderIsland"; break; case 2: + name = "ChaosCrystal"; break; case 3: break; @@ -76,7 +111,22 @@ public class CreativeStructureSpawner extends ItemDE { @SuppressWarnings("unchecked") @Override public void addInformation(ItemStack stack, EntityPlayer p_77624_2_, List list, boolean p_77624_4_) { - if (stack.getItemDamage() == 1) list.add("Warning this will take between 5-10 minutes (maby longer) to generate"); - if (stack.getItemDamage() == 1) list.add("depending on the speed of your pc"); + if (stack.getItemDamage() == 1) list.add("This nolonger works due to some changes to the island generation code"); + String name = "null"; + switch (stack.getItemDamage()) { + case 0: + name = "Comet"; + break; + case 1: + name = "EnderIsland"; + break; + case 2: + name = "ChaosCrystal"; + break; + case 3: + break; + } + list.add("Spawns: "+name); + list.add("This item can safely delete chaos crystals"); } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolHandler.java index 66aeb8ad..d39bee44 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/tools/baseclasses/ToolHandler.java @@ -1,9 +1,10 @@ package com.brandon3055.draconicevolution.common.items.tools.baseclasses; import cofh.api.energy.IEnergyContainerItem; +import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.ModItems; import com.brandon3055.draconicevolution.common.lib.References; -import com.brandon3055.brandonscore.common.utills.ItemNBTHelper; +import com.brandon3055.draconicevolution.common.utills.LogHelper; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.enchantment.Enchantment; @@ -11,6 +12,8 @@ import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; +import net.minecraft.entity.boss.EntityDragon; +import net.minecraft.entity.boss.EntityDragonPart; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.monster.EntitySpider; import net.minecraft.entity.player.EntityPlayer; @@ -148,6 +151,17 @@ public class ToolHandler { baseAttack += (entHealth * dmgMult); } + if (entity instanceof EntityDragonPart) + { + List list = player.worldObj.getEntitiesWithinAABB(EntityDragon.class, entity.boundingBox.expand(10, 10, 10)); + if (!list.isEmpty() && list.get(0) instanceof EntityDragon){ + EntityDragon dragon = list.get(0); + float entHealth = dragon.getHealth(); + baseAttack += (entHealth * dmgMult); + LogHelper.info(baseAttack); + } + } + if (!player.capabilities.isCreativeMode && ((IEnergyContainerItem) stack.getItem()).getEnergyStored(stack) < (int)(baseAttack / 2) * References.ENERGYPERATTACK) return; entity.attackEntityFrom(DamageSource.causePlayerDamage(player), baseAttack); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java index 4c23cb8d..9230131a 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java @@ -6,7 +6,7 @@ package com.brandon3055.draconicevolution.common.lib; public class VersionHandler { public static final String VERSION = "1.0.2"; - public static final int SNAPSHOT = 6; + public static final int SNAPSHOT = 9; public static final String MCVERSION = "1.7.10"; public static final String FULL_VERSION = VERSION + (SNAPSHOT > 0 ? "-snapshot_" + SNAPSHOT : ""); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/CustomSpawnerBaseLogic.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/CustomSpawnerBaseLogic.java index f87aa177..e496903e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/CustomSpawnerBaseLogic.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/CustomSpawnerBaseLogic.java @@ -196,7 +196,7 @@ public abstract class CustomSpawnerBaseLogic { this.spawnDelay = par1NBTTagCompound.getShort("Delay"); if ((!ConfigHandler.spawnerListType && Arrays.asList(ConfigHandler.spawnerList).contains(this.entityName)) || (ConfigHandler.spawnerListType && !Arrays.asList(ConfigHandler.spawnerList).contains(this.entityName))) { this.entityName = "Pig"; - ((TileCustomSpawner)getSpawnerWorld().getTileEntity(getSpawnerX(), getSpawnerY(), getSpawnerZ())).isSetToSpawn = false; + par1NBTTagCompound.setBoolean("Running", false); } powered = par1NBTTagCompound.getBoolean("Powered"); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileChaosShard.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileChaosShard.java index 44c8c561..c220c18a 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileChaosShard.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileChaosShard.java @@ -1,5 +1,6 @@ package com.brandon3055.draconicevolution.common.tileentities; +import com.brandon3055.draconicevolution.common.entity.EntityChaosVortex; import net.minecraft.entity.effect.EntityLightningBolt; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.NetworkManager; @@ -16,11 +17,14 @@ public class TileChaosShard extends TileEntity { public int tick = 0; public boolean guardianDefeated = false; private int soundTimer; + public int locationHash = 0; @Override public void updateEntity() { tick++; + if (tick > 1 && !worldObj.isRemote && locationHash != getLocationHash(xCoord, yCoord, zCoord, worldObj.provider.dimensionId)) worldObj.setBlockToAir(xCoord, yCoord, zCoord); + if (worldObj.isRemote && soundTimer-- <= 0){ soundTimer = 3600 + worldObj.rand.nextInt(1200); worldObj.playSound(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D, "draconicevolution:chaosChamberAmbient", 1.5F, worldObj.rand.nextFloat() * 0.4F + 0.8F, false); @@ -35,6 +39,15 @@ public class TileChaosShard extends TileEntity { } } + public void detonate(){ + if (!worldObj.isRemote && locationHash != getLocationHash(xCoord, yCoord, zCoord, worldObj.provider.dimensionId)) worldObj.setBlockToAir(xCoord, yCoord, zCoord); + else { + EntityChaosVortex vortex = new EntityChaosVortex(worldObj); + vortex.setPosition(xCoord+0.5, yCoord+0.5, zCoord+0.5); + worldObj.spawnEntityInWorld(vortex); + } + } + public void setDefeated(){ guardianDefeated = true; worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); @@ -44,12 +57,14 @@ public class TileChaosShard extends TileEntity { public void writeToNBT(NBTTagCompound compound) { super.writeToNBT(compound); compound.setBoolean("GuardianDefeated", guardianDefeated); + compound.setInteger("LocationHash", locationHash); } @Override public void readFromNBT(NBTTagCompound compound) { super.readFromNBT(compound); guardianDefeated = compound.getBoolean("GuardianDefeated"); + locationHash = compound.getInteger("LocationHash"); } @Override @@ -68,4 +83,8 @@ public class TileChaosShard extends TileEntity { public AxisAlignedBB getRenderBoundingBox() { return super.getRenderBoundingBox().expand(1, 3, 1); } + + public int getLocationHash(int xCoord, int yCoord, int zCoord, int dimension){ + return (String.valueOf(xCoord)+String.valueOf(yCoord)+String.valueOf(zCoord)+String.valueOf(dimension)).hashCode(); + } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileEnergyInfuser.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileEnergyInfuser.java index a28b847f..b6bbefd2 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileEnergyInfuser.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileEnergyInfuser.java @@ -24,8 +24,8 @@ import java.util.Random; */ public class TileEnergyInfuser extends TileObjectSync implements IEnergyReceiver, ISidedInventory { ItemStack[] items = new ItemStack[1]; - public EnergyStorage energy = new EnergyStorage(1000000); - public int maxInput = 1000000; + public EnergyStorage energy = new EnergyStorage(10000000); + public int maxInput = 10000000; public boolean running = false; public boolean runningCach = false; private int tick = 0; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileParticleGenerator.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileParticleGenerator.java index 3805652a..dbb7f24e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileParticleGenerator.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/TileParticleGenerator.java @@ -106,7 +106,7 @@ public class TileParticleGenerator extends TileEntity { particle.fadeLength = this.fade; particle.gravity = this.gravity; - ParticleHandler.spawnCustomParticle(particle); + ParticleHandler.spawnCustomParticle(particle, 256); } else tick++; } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyStorageCore.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyStorageCore.java index d8b6068b..c7ad5859 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyStorageCore.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyStorageCore.java @@ -753,8 +753,7 @@ public class TileEnergyStorageCore extends TileObjectSync { /* EnergyHandler */ public int receiveEnergy(int maxReceive, boolean simulate) { - int maxReceive1 = Integer.MAX_VALUE; - long energyReceived = Math.min(capacity - energy, Math.min(maxReceive1, maxReceive)); + long energyReceived = Math.min(capacity - energy, maxReceive); if (!simulate) { energy += energyReceived; @@ -763,8 +762,7 @@ public class TileEnergyStorageCore extends TileObjectSync { } public int extractEnergy(int maxExtract, boolean simulate) { - int maxExtract1 = Integer.MAX_VALUE; - long energyExtracted = Math.min(energy, Math.min(maxExtract1, maxExtract)); + long energyExtracted = Math.min(energy, maxExtract); if (!simulate) { energy -= energyExtracted; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/reactor/TileReactorCore.java b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/reactor/TileReactorCore.java index 125ea965..d08bb5a2 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/reactor/TileReactorCore.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/reactor/TileReactorCore.java @@ -98,6 +98,7 @@ public class TileReactorCore extends TileObjectSync { checkPlayerCollision(); return; } + //else injectEnergy(10000000); switch (reactorState){ @@ -147,6 +148,8 @@ public class TileReactorCore extends TileObjectSync { int totalFuel = reactorFuel + convertedFuel; maxFieldCharge = totalFuel * 96.45061728395062 * 100; maxEnergySaturation = (int)(totalFuel * 96.45061728395062 * 1000); + if (energySaturation > maxEnergySaturation) energySaturation = maxEnergySaturation; + if (fieldCharge > maxFieldCharge) fieldCharge = maxFieldCharge; startupInitialized = true; } } @@ -158,6 +161,7 @@ public class TileReactorCore extends TileObjectSync { public double tempDrainFactor; public double generationRate; public int fieldDrain; + public double fieldInputRate; public double fuelUseRate; private void runTick(){ @@ -209,6 +213,10 @@ public class TileReactorCore extends TileObjectSync { //Field Drain Calculation fieldDrain = (int)Math.min(tempDrainFactor * (1D-saturation) * (baseMaxRFt / 10.923556), (double) Integer.MAX_VALUE); //<(baseMaxRFt/make smaller to increase field power drain) + + double fieldNegPercent = 1D - (fieldCharge / maxFieldCharge); + fieldInputRate = fieldDrain / fieldNegPercent; + // LogHelper.info(fieldDrain+" "+tempDrainFactor+" "+(1D-saturation)+" "+tempDrainFactor * (1D-saturation) * (baseMaxRFt/10.923556)); fieldCharge -= fieldDrain; //====================== diff --git a/src/main/java/com/brandon3055/draconicevolution/common/world/ChaosWorldGenHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/world/ChaosWorldGenHandler.java index 68b09df1..b80d82d5 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/world/ChaosWorldGenHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/world/ChaosWorldGenHandler.java @@ -7,6 +7,8 @@ import com.brandon3055.brandonscore.common.utills.Utills; import com.brandon3055.draconicevolution.common.ModBlocks; import com.brandon3055.draconicevolution.common.entity.EntityChaosCrystal; import com.brandon3055.draconicevolution.common.entity.EntityChaosGuardian; +import com.brandon3055.draconicevolution.common.handler.ConfigHandler; +import com.brandon3055.draconicevolution.common.tileentities.TileChaosShard; import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.init.Blocks; @@ -111,6 +113,9 @@ public class ChaosWorldGenHandler { } world.setBlock(islandCenter.x, shardY, islandCenter.z, ModBlocks.chaosCrystal); + TileChaosShard tileChaosShard = (TileChaosShard)world.getTileEntity(islandCenter.x, shardY, islandCenter.z); + tileChaosShard.locationHash = tileChaosShard.getLocationHash(islandCenter.x, shardY, islandCenter.z, world.provider.dimensionId); + EntityChaosGuardian guardian = new EntityChaosGuardian(world); guardian.setPositionAndUpdate(islandCenter.x, shardY, islandCenter.z); world.spawnEntityInWorld(guardian); @@ -168,7 +173,7 @@ public class ChaosWorldGenHandler { public static DataUtills.XZPair getClosestChaosSpawn(int chunkX, int chunkZ){ - return new DataUtills.XZPair(Utills.getNearestMultiple(chunkX * 16, 10000), Utills.getNearestMultiple(chunkZ*16, 10000)); + return new DataUtills.XZPair(Utills.getNearestMultiple(chunkX * 16, ConfigHandler.chaosIslandSeparation), Utills.getNearestMultiple(chunkZ*16, ConfigHandler.chaosIslandSeparation)); } private static void generateObelisks(World world, DataUtills.XZPair islandCenter, Random rand) { diff --git a/src/main/resources/assets/draconicevolution/lang/en_US.lang b/src/main/resources/assets/draconicevolution/lang/en_US.lang index 7e26ab33..b7907f24 100644 --- a/src/main/resources/assets/draconicevolution/lang/en_US.lang +++ b/src/main/resources/assets/draconicevolution/lang/en_US.lang @@ -163,6 +163,7 @@ msg.draconiumChestEditL4.txt=Right click with paper to copy the colour to other msg.draconiumChestEdit2.txt=Please use a single peace of paper msg.de.dragonDeath.txt=§5The heart is temporarily awakened by the dragons explosive §5death msg.de.baseSafeAOW.txt=§9(§aAOE §aSafe §aMode §ais §aenabled§9) §cOperation §cCanceled §cbecause §ca §ctile §centity §cwas §cdetected +msg.de.guardianAttackBlocked.txt=Your attack is blocked by the guardians crystals! //Energy Net msg.de.wrenchMode.bind.txt=Function: Bind @@ -413,7 +414,13 @@ key.toolConfig=Tool & Armor Config GUI death.attack.chaos=%1$s was torn apart by a Chaos Guardian death.attack.damage.de.fusionExplode=%1$s was vaporized by a high energy fusion explosion death.attack.chaosBurst=%1$s was destroyed by dark energy + +death.attack.de.GuardianFireball=%1$s was firebombed by a Chaos Guardian +death.attack.de.GuardianEnergyBall=%1$s was zapped like a bug by a Chaos Guardian +death.attack.de.GuardianChaosBall=%1$s was annihilated by a Chaos Guardian using dark energy + death.attack.chaosImplosion=%1$s was pulled into an energy vortex and crushed into oblivion +death.attack.chrystalMoved=%1$s was naughty and has been punished by Draconic Evolution! //Buttons ---------------------------------------------------------------------------------------------------------------------------------------- button.de.chestAutoFeed0.txt=OFF.Auto Feed Disabled @@ -475,7 +482,7 @@ gui.de.pressOrScroll.name=Press Or Scroll gui.de.tempLoad.name=Temperature Load Factor gui.de.mass.name=Core Mass gui.de.genRate.name=Generation Rate -gui.de.fieldDrainRate.name=Field Drain Rate +gui.de.fieldInputRate.name=Field Input Rate gui.de.fuelConversion.name=Fuel Conversion Rate gui.de.insert.txt=Insert @@ -495,7 +502,11 @@ gui.de.status3.txt=STOPPING gui.de.status4.txt=INVALID SETUP gui.de.internalStorage.txt=Internal Storage gui.de.itemStorage.txt=Item Storage - +gui.de.reacTempLoadFactor.txt=This shows how much load is being placed on the containment field by the reactors temperature. If the reactor temp passes 8,000 this will increase exponentially. +gui.de.reacCoreMass.txt=This show the total amount of mass within the reactor in cubic metres. That's the draconium + chaos so this value will only change when you add or remove fuel. +gui.de.reacGenRate.txt=This is the current RF/t being generated by the reactor. +gui.de.reacInputRate.txt=This is the exact RF/t input required to maintain the current field strength. As field strength increases this will increase exponentially. +gui.de.reacConversionRate.txt=This is how fast the reactor is currently using fuel. As the reactor saturation increases this will go down. //Potions ---------------------------------------------------------------------------------------------------------------------------------------- diff --git a/src/main/resources/assets/draconicevolution/manual.json b/src/main/resources/assets/draconicevolution/manual.json index 91493a20..bf5b2345 100644 --- a/src/main/resources/assets/draconicevolution/manual.json +++ b/src/main/resources/assets/draconicevolution/manual.json @@ -502,6 +502,24 @@ "[c]item.draconicevolution:draconicBoots:0" ] }, + { + "name":"item.draconicevolution:chaosShard", + "images":[], + "content": + [ + "See the page about Chaos Islands for more info.", + "[c]item.draconicevolution:chaosShard:0" + ] + }, + { + "name":"item.draconicevolution:chaoticCore", + "images":[], + "content": + [ + "Researching the dark energy of the chaos shards has lead you to the creation of an even more powerful core. But what could possibly utilize such a dark and powerful item?.", + "[c]item.draconicevolution:chaoticCore:0" + ] + }, { "name":"tile.draconicevolution:weatherController", "images":[], @@ -969,9 +987,16 @@ "images":["http://i.imgur.com/gL4T6dG.png"], "content": [ - "Looking for a challenge? The Ender Dragon wasn't hard enough? This is for you! If you travel to any multiple of 10,000 in The End (e.g. {x=0, z=10000}, {x=0, z=20000}, {x=10000, z=0} etc.) you will find a Chaos Island.", - "Each of these islands is guarded by a Chaos Guardian which is basically an extremely powerful Ender Dragon that drops 2 dragon hearts and some Draconium Dust, as well as the standard end portal in the middle of the island with a Dragon Egg on top.", - "Note: The Chaos Island is a work in progress and there will be changes in the future.", + "Looking for §sa challenge?§r The fight of your life! The Ender Dragon wasn't hard enough? Maby try 100 ender dragons all at once plus maby a few dosen withers. And if thats still not hard enough then maby this is for you! If you travel to any multiple of 10,000 in The End (e.g. {x=0, z=10000}, {x=0, z=20000}, {x=10000, z=0} etc.) you will find a Chaos Island.", + "A Chaos island is a formation of end stone and obsidian formed over billions of years by dark energy. At its heart in an obsidian chamber is a crystal made from pure dark energy known as a Chaos Crystal.", + "Chaos islands are protected by one of the most powerful mobs in existence. The Chaos Guardian. These guardians were once regular enderdragons but exposure to the dark energy of the chaos islands has mutated them into some of the deadliest killing machines of all time.", + "The various attacks of the Chaos Guardian will cut through almost any armor with one exception being draconic armor with its ability to block piercing damage. However it has the ability to rabidly drain any RF powered armor of its charge so it will quickly render your armor useless if you don't keep it charged.", + "Like the ender dragon the guardian has several healing crystals spread around the island. But unlike regular ender crystals these crystals are not so easy to destroy. They each have 50 hit points and when damaged will protect themselves with a shield for several seconds. You must disable all of the crystals before the guardian can be damaged.", + "Be aware that when low on health the guardian will occasionally try to re ignite some of the disabled crystals.", + "Once the guardian is defeated you can claim your reward. At the centre of the island several blocks below the surface you will find a chaos chamber containing a chaos crystal. When broken the chaos crystal will drop 5 chaos shards.", + "§4Be Warned!§r When you destroy the crystal the energy field it was generating will collapse. This will result in the total animation of the island within a matter of seconds. Unless you are wearing full draconic armor you will only have a few seconds to collect the shards and escape the island before you are obliterated along with the island.", + + "This image needs to be updated. The islands look very different now.", "http://i.imgur.com/gL4T6dG.png" ] }, diff --git a/src/main/resources/assets/draconicevolution/textures/particle/reactorBeam.png b/src/main/resources/assets/draconicevolution/textures/particle/reactorBeam.png new file mode 100644 index 0000000000000000000000000000000000000000..05ee0541822e32b7a3aa0c49f74687a55598b571 GIT binary patch literal 4815 zcmV;=5-{zFP)VGd000McNliru-v<`~FC>4D0p|b!5?o0{ zK~#9!tzFx09LEu@>0MIdO}t3F=uTOP;#e0`awOY|0|&@U0_4F#5Fk(ai+n{sBna{t zAV2~HHtYoPRT6cBfyA;ciKHc7MT(-x<<8{6({%B$PIa%61{T~M&h&IwSDiX_rnxMt zsv3}V3*>kKpQl9R203?1M5c}Fe6-pADkQSwV>VyXAG~^Kc96t=_%)Tji4reDPcKp;_TO1l|+%&ws%2KEq>lJ5BmKj5j-M z#2dPJH{56(jMQ>g;v@L{3OVlp@xne5cE^lk4K>C?fQw`v2LU00kwP8Vi1lfdv`HaCm3K4l8iBLSSsBSPw zQquw)-!>-QP?J9DWQFI1;hN zwWIZ%VrV=i{jH+4bu2vs@Y)X(k1LLyUrmIF*Y>HhwIGPD+erO$%is}(8fPr7&ck_I z9*8}Jn>N+T=;I4;>|i3!J-~cgFG!29PBEBd0iJ8kDX6e6l#!p|$ps04AR@zLFc08( z4gd*R*_Hb9v&6))k6G~KZB_SI;4v{Y3K99cPJYtk=1g40P@)(Y#*oC4-Oq8qT3y68x3l0m$7#Y4kMH<}m~Djf90ZZ*LZ;y5bf!usC(*Qlr@7g2{P6B{!kul$>kM}@mJYxnZG6x-0{4%=w zS!Q1qOi+*EHW|~HL$V4IGJ28T^(K|8uUqv%r?PaRa&`QCz5}MHGnH-^45nD5SY^l< zur5U-@pzF*YrNQk0rlhzHqrVBRmQnQV-+a_G}NG5Mx0-8u03xM5j`Qy-KR1P_&i~d zVTWs6f<@oKJ<9;Ef>d6>fJ=wWpz6a0jJm>0@cEo`4fBoz4(g8^-V&Grh737u*^r<{ ziJJ$*9kF4q?k6CL%8rLmkth7zK>ag>hZNSMu``BspBVD?afq!cL)>63RVH^CSTN^+ zW}%p3x1j?d@%p|6g25?#HjQJWpvH73n4WGojZ#>9&_PuI#Yr!Vt@{U6{RQQre3act(tX)FrtX6|818D2d zIBBOlp#j9#4~gVGqQI+AMNe!m8~v|?akQ7LfWcbm_C*40Ho!;%A}S(z3nqSnAa_4u zb&(g05HC7S#)x691>eF->rG=|YowA230%DhSs`R;9##|8YmbgUHjaG=wM+!vN>_u!Wb(NJ<&qOJhsiZeym(Om z{FIF8QD%x|V_mk0P`^_t-cFRsg@}BiKHo_2^k~#;BvWh%e?}NXqp2|LYKH~d(^NH> zqswDfm~;ATIy|5-3Z_)aeI2l868extsob^<@I(#je1;n#aC!80%isdRDS7X7xS|I^ z@kL{xo_O0Thc}JEd8IBI(HrzLu{TcTwDTRD8;F+Tu=9G6Avx zHK$W8(i_V;=zoS>dzfHA&=_DLzW2=kNXF#PCC=$i#JUcVfeh^UOzd54x;=Xwe?3#a_O>`d|;Ii7Oy7@KdYlr>0F*%KqAUd}L* z9?xoS+7MMP#tsg^?@Gg!apm_X2G?ucJJ#`WGe*P6AbRV4ksv=Y{Wg>VE-?d48HG&& ztA(T{3K#5QYC#OH2duZ|^%!^*i2F83zDHxsgUHjxcszpMnz5P%;R^*(mOXDPm1<+{ zF6#x>#x`u8Cm#Hk?0#6gMzX<9#}m-Os$=bKb>2SWdi$KoYo^%?H9qq?>|=vq*DGM) z6&1FH?0vqt(3dFt*t#d*cfkc) zP$c07s=_dol|=#p$qfT6w=>yaQ1yJ1%;zOgw_=zNGK)TUc)*guy9=zV9Sn(+KWj*A z+5n##5*lmINvI7Q3blBuS1>9;)CD)3EU@etz$a8_Ykcw#{jzokvo~IpJHU5p$2n6$(Vpw zeBtjF6QQ~6DMD7eoS4*S9T;GMV1?B**Ek`3>&!lqeHaKnWmH%aj4s#xz4IClC}AIM z@&7EYAVe%qaGHQqdKc5epIeDvgvIF2t zdC5k?1K2Zxs)Ku5&oK9^KKAgBlm{GgCU!Y-Z6&)ONLZw4fly^eycp$Tvrm~SbZHcuAh_y6N_!eS>1^Y_dlALNXxmlO4J)H z-Ni7f9BtyL#J1{O^DG08wvFo!SqA9OAP$U#uvKiS8*eAV zjkPCgMRC9167*FWeXe;1(gqke26oFCm{mZXHEv$X?(Oz^5T9onAg*8&Cb~u@ttUC} zfv4X6k=opdH~AuC@bl{0+a0D&?dB!%(pE-loH0Ue+46uxq?2>x1`mv5J%pR<_$?*B zm5}O2i2+{85KlxzegWy%#em9KsS1cq#nOwhLX}|%%NVcM$E`_?5snZN`T@>y5z}Dl zkfQz!p(M8BPCk!DC=!`q7;1;Rj+d4OT}CgwX3S;9@_;20_u~mHs5;Q{a*)5*>5KKR z+1@F~xZ9XMwE;eN=&*EP1j#hQS;9XWMpjAzr{*LR4##+aHA7H?e?SI`67@M}Vw&ts zC5#Z&pb;XROd8j06Xi*>(r#x_<{>O9+#_UJZP+O<(O6o^IhZiO;rf~};&G#y!Q9ajpY9w?hr_2r6;u?IvaLef0hs{tBor|RR+T>a}*up+=tFR@8Fn&n#gn}KR-=` z2~Asbh}96VxcI)y(GOM##xjh*eP|4oE7H`zYmpiCV zHQRfx#(K`7%2QYlR|I9B!a2=^i+S=?PRU)Uv|PdQ1+rMPgmNE96?4H!XC)~n)=5Sv z!5h9wq{rwj?}EpbNLN+ATdMyb)VNj2xBCDrW_i>}!{a%ENNEtHN0|l9145@6pv8)D z*(qc1s!8@3C37bn=BTLhvT#CS&T!dyj^|>_2KZ=?`-TiI_Wvv)oE%X7PA4)AWvwBD zuC73eTvF#8cffO+cvPv-nz6OEe7hsOt=t@6#~gsOFrWgxV%0MMvagCLJ4ZX<`e%t! zQ^ISFs66G&>H{u-n6=1VsZ9zoJ zs0iURHvO$mx4^wi1Bj{&v2!eQVz~y`b_^0p)_nqsk$>zEAuLF`GFG&d-Ftpho^U*K zVz)BS!!&uuD5&niITLDJEgb^K0O-)Y-Xbg8f@76KJvAaH~|M27qU(4I~V(0ft{R!0vr8eiPYlFjg4rYh1C)p~*+UBihC_*5oXa<%GlG zOWFJPfisRS*e83RO_Vw{1sG@>XzUQF{t$?cIU>Yrjob|*>sVSJleU;)<_s^1V;x`_ ziv7L77Ie^0vcRH&6|BYLDDM8yCLHmyCA1l%R`hKhICMbt35j4l#J`MVtE^scwxr~`kUB&y8Q`oe}GMOh_o1eiGo>9>e6VtOi}%wAOY8dLAr zNlM0WE5XxsrMbrg=18Fu!EiQ1W2>OX$3p3*q3yjxLaeGYOvHmj>V8iWRbbm7Ko!Ya zJ2zf|6Bl50zj0z)Uw2cv;gJl!zfb9a)+%ahUMa0GzJEi#Z>vzgM!c_OfglQymLR#| zXoeUX`fG7h*9;I0LO`v^@o~v}+Wg44&(2qBmPQDC2yuQxI@>cGbvpe=QTn>;U;u0P z$R~!!l=b422~NN=#4R*LaP&8EGC|I>z=#`fD{|F_Tpz*jsXF$C!3iF#Nv|h}m(}!M zr?!OwC2>PBc>UD`0;A|TLTZCbVZft=l>LzC0Nt4e*iy#dHMal=U1osYm@yfvy>F}% zdQi+V`f1K^0uZM`4Yt~=u;L~2Vk`ZmK;?w&efSvP|29LJ#Z*^;f_%U*6niH4HCd#A z+Ed!9_OHbF4>s0UxJDaL${DYffbt0G|Rs zAZdM5U|$m3D0$Dg$xDif=`UP5l|f9vUBC%pZY+pCm{>dX z@l0cAT0G#Sy6H6|=dLEKY7wV#;_9=?7?+5Vyl@oR{qOqFW3?jm8}Us`_S-Po$I2kT zG}2Lg4*4SgvtT*%ydId(w(`KLnJF%8*Q;i6hQAO}6vLwe@`E+~(F}pbVs`(@Ou0Ss z-8LVcCij%8t%N08Dt)o9%t9r2kyLpaxrdbNdr8N(jJrvD6Wp~D!|8bYCRb4e=BDpRBw zON7HfJ;@I<$2sdP=B^N!k+hDVGQ_&``&m-XuFBrWSe`7`>Hi*g|0hZSFw2#^nIRrJ pgJ=2tOZYsKxX)6D002ovPDHLkV1mt@>>dCB literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/draconicevolution/textures/particle/reactorBeam.png.mcmeta b/src/main/resources/assets/draconicevolution/textures/particle/reactorBeam.png.mcmeta new file mode 100644 index 00000000..b920dcd2 --- /dev/null +++ b/src/main/resources/assets/draconicevolution/textures/particle/reactorBeam.png.mcmeta @@ -0,0 +1 @@ +{ "texture": { "blur": true }} \ No newline at end of file diff --git a/src/main/resources/assets/draconicevolution/textures/particle/reactorEnergyBeam.png b/src/main/resources/assets/draconicevolution/textures/particle/reactorEnergyBeam.png new file mode 100644 index 0000000000000000000000000000000000000000..e08c4afd7c2fa66aafe61c3035b01a1e5c2ccca5 GIT binary patch literal 396 zcmV;70dxL|P)16}|C010qNS#tmY4#EHc4#EKyC`y0;000McNliru-v<{68!KDO)D8du0U1d| zK~z}7#aA&B!!QVQ8LR()t#dx1J!_iSM#8=eQ!i~n2n6KwJC1MrH(oxY^^KG7n)9FN z1kD1^o>L6YJAe$i^SlRY$W~NnE6_g#JOcp1!K`#pd`ElP;)aMS@=2B)l(5UF!vKum zQEk|m1fk&!254S^hAFM80*1augUHc74Ihsl3p4xO{qj(O;{c0*SeXMb7M8_;+sV%6 zqY5C?GtH*77~m}^6F?{oqb{?tKzUU)bk;En!7N2ZF%ZQv^v17skYrgQ2`EoOZmzR@ zvW3}z>ahy7T(OuHlXaUW5DVSj-jLyTps|<%1~(