This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
When I was trying to make my entity it just dont load the model that I created in the Techne. The Minecraft version is 1.7.10.
Here is my Main Class:
package lassisolet.grandchasemod.main; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.ModMetadata; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.Metadata; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import lassisolet.grandchase.blocks.BlackSteelOven; import lassisolet.grandchase.blocks.GerenciadorDeBlocos; import lassisolet.grandchasemod.ElesisCombat.AdventureSword; import lassisolet.grandchasemod.Handler.GuiHandler; import lassisolet.grandchasemod.entity.EntityGoblin; import lassisolet.grandchasemod.items.GerenciadordeItems; import lassisolet.grandchasemod.items.ItemNoccium; import lassisolet.grandchasemod.lib.Strings; import lassisolet.grandchasemod.proxy.Client; import lassisolet.grandchasemod.proxy.CommonProxy; import lassisolet.grandchasemod.recipes.OreRecipes; import lassisolet.grandchasemod.tabs.Grand_Chase_Mod_Blocks; import lassisolet.grandchasemod.worldgen.Grand_Chase_ModWorldGen; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import cpw.mods.fml.common.FMLCommonHandler; @Mod(modid = Strings.MODID, version = Strings.VERSION, name = Strings.MODNAME) public class Grand_Chase_Mod_MainClass { @Instance(Strings.MODID) public static Grand_Chase_Mod_MainClass instance; @Metadata public static ModMetadata meta; @SidedProxy(clientSide = Strings.CLIENT, serverSide = Strings.COMMONPROXY) public static CommonProxy proxy; public static CreativeTabs tab = new Grand_Chase_Mod_Blocks(CreativeTabs.getNextID(), Strings.MODID); static Grand_Chase_ModWorldGen eventWorldGen = new Grand_Chase_ModWorldGen(); //GUIID public static final int guiIDBlackSteelOven = 0; public static Block blockBlackSteelOvenIdle; public static Block blockBlackSteelOvenActive; @EventHandler public static void preLoad(FMLPreInitializationEvent event) { CommonProxy.commonpreinit(); GameRegistry.registerWorldGenerator(eventWorldGen, 0); proxy.registerRenderThings(); EntityGoblin.mainRegistry(); proxy.registerRenderThings(); //Machines blockBlackSteelOvenIdle = new BlackSteelOven(false).setBlockName("BlackSteelOvenIdle").setCreativeTab(Grand_Chase_Mod_MainClass.tab).setHardness(3.5F); blockBlackSteelOvenActive = new BlackSteelOven(true).setBlockName("BlackSteelOvenActive").setLightLevel(0.625F).setHardness(3.5F); GameRegistry.registerBlock(blockBlackSteelOvenIdle, "BlackSteelOvenIdle"); GameRegistry.registerBlock(blockBlackSteelOvenActive, "BlackSteelOvenActive"); } @EventHandler public void Load(FMLInitializationEvent event) { CommonProxy.commoninit(); NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler()); //martelodeferro = new MarteloDeFerro(); //GameRegistry.registerItem(martelodeferro, "MarteloDeFerro"); //martelodeouro = new MarteloDeOuro(); //GameRegistry.registerItem(martelodeouro, "MarteloDeOuro"); //martelodediamante = new MarteloDeDiamante(); //GameRegistry.registerItem(martelodediamante, "MarteloDeDiamante"); } @EventHandler public static void postLoad(FMLPostInitializationEvent event) { CommonProxy.commonpostinit(); } }
My Entity Render Class:
package lassisolet.grandchasemod.entity; import lassisolet.grandchasemod.lib.Strings; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; public class RenderGoblinMob extends RenderLiving{ private static final ResourceLocation mobTextures = new ResourceLocation(Strings.MODID + ":textures/entity/GoblinMob.png"); public RenderGoblinMob(ModelBase par1ModelBase, float par2) { super(par1ModelBase, par2); } protected ResourceLocation getEntityTexture(EntityGoblinMob entity) { return mobTextures; } @Override protected ResourceLocation getEntityTexture(Entity entity) { return this.getEntityTexture((EntityGoblinMob)entity); } }
Entity Class
package lassisolet.grandchasemod.entity; import cpw.mods.fml.common.registry.EntityRegistry; import lassisolet.grandchasemod.main.Grand_Chase_Mod_MainClass; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.biome.BiomeGenBase; public class EntityGoblin { public static void mainRegistry() { registerEntity(); } private static void registerEntity() { createEntity(EntityGoblinMob.class, "Goblin Mob", 0x43A543, 0xFF0000); } public static void createEntity(Class entityClass, String entityName, int solidColor, int spotColor) { int randomId = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(entityClass, entityName, randomId); EntityRegistry.registerModEntity(entityClass, entityName, randomId, Grand_Chase_Mod_MainClass.instance, 64, 1, true); EntityRegistry.addSpawn(entityClass, 75, 2, 7, EnumCreatureType.creature, BiomeGenBase.desert); createEgg(randomId, solidColor, spotColor); } private static void createEgg(int randomId, int solidColor, int spotColor) { EntityList.entityEggs.put(Integer.valueOf(randomId), new EntityList.EntityEggInfo(randomId, solidColor, spotColor)); } }
Entity Mob Class
package lassisolet.grandchasemod.entity; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIPanic; import net.minecraft.entity.ai.EntityAITempt; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.passive.EntityAnimal; import net.minecraft.init.Items; import net.minecraft.world.World; public class EntityGoblinMob extends EntityAnimal { public EntityGoblinMob(World par1World) { super(par1World); this.setSize(1F, 2F); this.tasks.addTask(0, new EntityAIWander(this, 1.0D)); this.tasks.addTask(1, new EntityAIPanic(this, 2)); this.tasks.addTask(2, new EntityAITempt(this, 1.2D, Items.stick, false)); } public boolean isAIEnabled() { return true; } protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(20); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1.0D); } @Override public EntityAgeable createChild(EntityAgeable p_90011_1_) { return new EntityGoblinMob(worldObj); } }
The Model Class
package lassisolet.grandchasemod.entity; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; import net.minecraft.util.MathHelper; public class Goblin extends ModelBase { //fields ModelRenderer Goblin_Feet_L; ModelRenderer Goblin_Feet_R; ModelRenderer Body; ModelRenderer Head; ModelRenderer Arm_L; ModelRenderer Arm_R; ModelRenderer Pano; ModelRenderer Nail_1_L; ModelRenderer Nail_2_L; ModelRenderer Nail_1_R; ModelRenderer Nail_2_R; ModelRenderer Ear_L; ModelRenderer Ear_R; public Goblin() { textureWidth = 64; textureHeight = 64; Goblin_Feet_L = new ModelRenderer(this, 48, 15); Goblin_Feet_L.addBox(0F, 0F, 0F, 4, 8, 4); Goblin_Feet_L.setRotationPoint(0F, 16F, -3F); Goblin_Feet_L.setTextureSize(64, 64); Goblin_Feet_L.mirror = true; setRotation(Goblin_Feet_L, 0F, 0F, 0F); Goblin_Feet_R = new ModelRenderer(this, 48, 3); Goblin_Feet_R.addBox(0F, 0F, 0F, 4, 8, 4); Goblin_Feet_R.setRotationPoint(-4F, 16F, -3F); Goblin_Feet_R.setTextureSize(64, 64); Goblin_Feet_R.mirror = true; setRotation(Goblin_Feet_R, 0F, 0F, 0F); Body = new ModelRenderer(this, 0, 12); Body.addBox(0F, 0F, 0F, 8, 10, 4); Body.setRotationPoint(-4F, 6F, -3F); Body.setTextureSize(64, 64); Body.mirror = true; setRotation(Body, 0F, 0F, 0F); Head = new ModelRenderer(this, 0, 26); Head.addBox(0F, 0F, 0F, 6, 5, 6); Head.setRotationPoint(-3F, 1F, -4F); Head.setTextureSize(64, 64); Head.mirror = true; setRotation(Head, 0F, 0F, 0F); Arm_L = new ModelRenderer(this, 36, 0); Arm_L.addBox(0F, 0F, 0F, 2, 8, 2); Arm_L.setRotationPoint(-6F, 7F, -2F); Arm_L.setTextureSize(64, 64); Arm_L.mirror = true; setRotation(Arm_L, 0F, 0F, 0F); Arm_R = new ModelRenderer(this, 28, 0); Arm_R.addBox(0F, 0F, 0F, 2, 8, 2); Arm_R.setRotationPoint(4F, 7F, -2F); Arm_R.setTextureSize(64, 64); Arm_R.mirror = true; setRotation(Arm_R, 0F, 0F, 0F); Pano = new ModelRenderer(this, 0, 0); Pano.addBox(0F, 0F, 0F, 4, 4, 0); Pano.setRotationPoint(-2F, 15F, -3F); Pano.setTextureSize(64, 64); Pano.mirror = true; setRotation(Pano, 0F, 0F, 0F); Nail_1_L = new ModelRenderer(this, 22, 0); Nail_1_L.addBox(0F, 0F, 0F, 1, 2, 2); Nail_1_L.setRotationPoint(-4F, 22F, -5F); Nail_1_L.setTextureSize(64, 64); Nail_1_L.mirror = true; setRotation(Nail_1_L, 0F, 0F, 0F); Nail_2_L = new ModelRenderer(this, 16, 0); Nail_2_L.addBox(0F, 0F, 0F, 1, 2, 2); Nail_2_L.setRotationPoint(-2F, 22F, -5F); Nail_2_L.setTextureSize(64, 64); Nail_2_L.mirror = true; setRotation(Nail_2_L, 0F, 0F, 0F); Nail_1_R = new ModelRenderer(this, 10, 0); Nail_1_R.addBox(0F, 0F, 0F, 1, 2, 2); Nail_1_R.setRotationPoint(1F, 22F, -5F); Nail_1_R.setTextureSize(64, 64); Nail_1_R.mirror = true; setRotation(Nail_1_R, 0F, 0F, 0F); Nail_2_R = new ModelRenderer(this, 22, 4); Nail_2_R.addBox(0F, 0F, 0F, 1, 2, 2); Nail_2_R.setRotationPoint(3F, 22F, -5F); Nail_2_R.setTextureSize(64, 64); Nail_2_R.mirror = true; setRotation(Nail_2_R, 0F, 0F, 0F); Ear_L = new ModelRenderer(this, 44, 0); Ear_L.addBox(0F, 0F, 0F, 4, 2, 1); Ear_L.setRotationPoint(-5F, 1F, -1F); Ear_L.setTextureSize(64, 64); Ear_L.mirror = true; setRotation(Ear_L, 0F, 0F, 0.597956F); Ear_R = new ModelRenderer(this, 54, 0); Ear_R.addBox(0F, 0F, 0F, 4, 2, 1); Ear_R.setRotationPoint(1F, 3F, -1F); Ear_R.setTextureSize(64, 64); Ear_R.mirror = true; setRotation(Ear_R, 0F, 0F, -0.5979498F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); Goblin_Feet_L.render(f5); Goblin_Feet_R.render(f5); Body.render(f5); Head.render(f5); Arm_L.render(f5); Arm_R.render(f5); Pano.render(f5); Nail_1_L.render(f5); Nail_2_L.render(f5); Nail_1_R.render(f5); Nail_2_R.render(f5); Ear_L.render(f5); Ear_R.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); float f6 = (180F / (float)Math.PI); this.Goblin_Feet_L.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1; this.Goblin_Feet_R.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1; } }
My Client Class
package lassisolet.grandchasemod.proxy; import cpw.mods.fml.client.registry.RenderingRegistry; import lassisolet.grandchasemod.client.renders.ItemRendererAdventureAxe; import lassisolet.grandchasemod.combat.GerenciadorDeArmas; import lassisolet.grandchasemod.entity.EntityGoblinMob; import lassisolet.grandchasemod.entity.Goblin; import lassisolet.grandchasemod.entity.RenderGoblinMob; import lassisolet.grandchasemod.items.GerenciadordeItems; import net.minecraftforge.client.MinecraftForgeClient; import cpw.mods.fml.common.FMLCommonHandler; import net.minecraft.client.Minecraft; public class Client extends CommonProxy { public void registerRenderThigs() { //Entities MinecraftForgeClient.registerItemRenderer(GerenciadorDeArmas.AdventureAxe, new ItemRendererAdventureAxe()); RenderingRegistry.registerEntityRenderingHandler(EntityGoblinMob.class, new RenderGoblinMob(new Goblin(), 0)); } }
And the Common Proxy Class
package lassisolet.grandchasemod.proxy; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import lassisolet.grandchasemod.worldgen.Grand_Chase_ModWorldGen; import lassisolet.grandchase.blocks.GerenciadorDeBlocos; import lassisolet.grandchase.tileentity.TileEntityBlackSteelOven; import lassisolet.grandchasemod.combat.GerenciadorDeArmaduras; import lassisolet.grandchasemod.combat.GerenciadorDeArmas; import lassisolet.grandchasemod.Handler.GuiHandler; //import lassisolet.grandchasemod.craftingmanager.RecipeRemover; import lassisolet.grandchasemod.items.GerenciadordeItems; import lassisolet.grandchasemod.lib.Strings; import lassisolet.grandchasemod.recipes.OreRecipes; import lassisolet.grandchasemod.recipes.WeaponRecipes; import cpw.mods.fml.relauncher.Side; public class CommonProxy { public void registerRenderThings() { } public void registerTileEntitySpecialRenderer() { } public static void commonpreinit() { GerenciadorDeBlocos.init(); GerenciadordeItems.init(); //RecipeRemover.removeRecipe(); GerenciadorDeArmas.init(); GerenciadorDeArmaduras.init(); } public static void commoninit() { GameRegistry.registerTileEntity(TileEntityBlackSteelOven.class, "BlackSteelOven"); OreRecipes.init(); WeaponRecipes.init(); //Entities } public static void commonpostinit() { } public static void RegisterRender() { } }
On my client proxy, the register render things was RegisterrenderThigs (with out the n in things)
When I was trying to make my entity it just dont load the model that I created in the Techne. The Minecraft version is 1.7.10.
Here is my Main Class:
My Entity Render Class:
Entity Class
Entity Mob Class
The Model Class
My Client Class
And the Common Proxy Class
On my client proxy, the register render things was RegisterrenderThigs (with out the n in things)