Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

MikeDark

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by MikeDark

  1. Ohh... Sorry, the full code it's in down I remove the super, but the error continued... ( same error) Full Render Code: @edit thanks for your help, I changed the "extended" and modified the model class... thanks...
  2. Sorry, but i don't understand your reply. Rename the methods and variables will solve the problem? If yes, which metodos and variables?
  3. Hello guys. I come here to ask for help to resolve the "GL ERROR". This has occurred after enable the "RenderEquippedItems" method... The video show the problem after enable the "render" and the "solution" after disable the "render". Render Code: Error: Video: https://www.youtube.com/watch?v=fkn2sYTYjSw
  4. Friend didn't work, I have a sleeping bag in my mod and its height is very low and the player suffers the same effect on getting the height of a bed ...
  5. I am creating a tent and she is already fully ready, but I'm suffering from a little bug at bedtime where the player is flying, I tried to give a search but could not find where make the change and would your help... Bug My tent code:
  6. I understand, I ended up placing a minor collision box, was not that thing OH MY GOD, but is good...
  7. Well actually the image was not very clear, but I discovered that the problem was in the plains as in mountainous or forest biomes it they appears in smaller quantities... Good but after solving this problem I came across one that I had not realized, the collision box that it is too big for the sides, however is perfect on the front and top, how can I fix?
  8. Hello everyone, I'm suffering from a problem on the spawn of my mobs, even putting a low rate, spawn limit per chunk, among others, and many of them are appearing and that ends up being bad, and would like to ask help to solve this problem... The Problem: My Bear Entity: package mike.scoutcraft.entity; import mike.scoutcraft.items.SCItems; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIAttackOnCollide; import net.minecraft.entity.ai.EntityAIHurtByTarget; import net.minecraft.entity.ai.EntityAINearestAttackableTarget; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.passive.EntityVillager; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.world.World; public class EntityUrsoPreto extends EntityMob { public EntityUrsoPreto(World world) { super(world); this.experienceValue=5; this.setSize(1.8F, 1.25F); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true)); this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, false)); this.tasks.addTask(3, new EntityAIWander(this, 1.0D)); this.tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 12.0F)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false)); } @Override protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(5.0D); this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(16.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.30D); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30.0D); } protected boolean isAIEnabled() { return true; } @Override public int getMaxSpawnedInChunk() { return 2; } @Override protected boolean isValidLightLevel() { return true; } @Override public boolean getCanSpawnHere() { return true; } protected Item getDropItem(){ return SCItems.CouroDeUrso; } protected void dropRareDrop(int par1){ switch (this.rand.nextInt(3)){ case 0: } } protected String getLivingSound() { return "scoutcraft:rugidourso"; } protected String getHurtSound() { return "scoutcraft:machucarurso"; } protected String getDeathSound() { return "scoutcraft:matarurso"; } } My entity registration and the spawn registry: package mike.scoutcraft.entity; import mike.scoutcraft.main.ScoutCraft; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.biome.BiomeGenBase; import cpw.mods.fml.common.registry.EntityRegistry; public class SCMobs { public static void mainRegistry(){ registerEntity(); } public static void registerEntity(){ createEntity(EntityUrsoMarrom.class, "UrsoMarrom", 0xD62727, 0x27A2D6); createEntity(EntityUrsoPreto.class, "UrsoPreto", 0xD62727, 0x27A2D6); createEntity(EntityFormiga.class, "Formiga", 0xD62727, 0x27A2D6); createEntity(EntityCupim.class, "Cupim", 0xD62727, 0x27A2D6); createEntity(EntityGuaxinim.class, "Guaxinim", 0xD62727, 0x27A2D6); createEntity(EntityGuaxinimLadrao.class, "GuaxinimLadrao", 0xD62727, 0x27A2D6); } public static void createEntity(Class entityClass, String entityName, int solidColour, int spotColour){ int randomId = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(entityClass, entityName, randomId); EntityRegistry.registerModEntity(entityClass, entityName, randomId, ScoutCraft.Instance, 64, 1, true); createEgg(randomId, solidColour, spotColour); EntityRegistry.addSpawn(EntityUrsoMarrom.class, 2, 1, 1, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills); EntityRegistry.addSpawn(EntityUrsoPreto.class, 2, 1, 1, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills); EntityRegistry.addSpawn(EntityGuaxinim.class, 3, 1, 2, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills); EntityRegistry.addSpawn(EntityGuaxinimLadrao.class, 1, 1, 1, EnumCreatureType.creature, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.frozenRiver, BiomeGenBase.iceMountains, BiomeGenBase.icePlains, BiomeGenBase.jungle, BiomeGenBase.jungleEdge, BiomeGenBase.jungleHills, BiomeGenBase.megaTaiga, BiomeGenBase.megaTaigaHills, BiomeGenBase.mesa, BiomeGenBase.mesaPlateau, BiomeGenBase.mesaPlateau_F, BiomeGenBase.mushroomIsland, BiomeGenBase.mushroomIslandShore, BiomeGenBase.plains, BiomeGenBase.river, BiomeGenBase.roofedForest, BiomeGenBase.savanna, BiomeGenBase.savannaPlateau, BiomeGenBase.stoneBeach, BiomeGenBase.swampland, BiomeGenBase.taiga, BiomeGenBase.taigaHills); } private static void createEgg(int randomId, int solidColour, int spotColour) { EntityList.entityEggs.put(Integer.valueOf(randomId), new EntityList.EntityEggInfo(randomId, solidColour, spotColour)); } }
  9. Thank you friend, for those who have the same doubts I used the following code: @Override public void onNeighborBlockChange(World world, int x, int y, int z, Block block) { if(world.getBlock(x, y - 1,z) == Blocks.air) { world.setBlockToAir(x, y, z); } super.onNeighborBlockChange(world, x, y, z, block); }
  10. Good afternoon, I would like to know how can I make my block break when removed the block that is just below it, my friend and I tried a few things but nothing worked, you have any idea?
  11. thank you, I left as 32 even, it is more than the enough
  12. wanted him that spawn randomly in the world, but I've finished this part ... Final Result:
  13. Good friend, I would first like to thank you. I believe should treat me better, I have head full of problems and simply forgot this detail, then came to the support, to ask a simple question... Well, leveraging the same topic, could help me make my block spawn randomly my termites, if not is much ...
  14. Hello, i would like to spawn many entitys on break block, but could only do spawn one: My onBlockDestroyedByPlayer: public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5) { if (!par1World.isRemote) { EntityCupim entitycupim = new EntityCupim(par1World); entitycupim.setLocationAndAngles((double)par2 + 0.5D, (double)par3, (double)par4 + 0.5D, 0.0F, 0.0F); par1World.spawnEntityInWorld(entitycupim); entitycupim.spawnExplosionParticle(); } super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5); }
  15. Thank you friend, now the Scoutcraft has support for multiplayer, I owe a lot to you...
  16. The client.registerRender(); is there, but nothing to direct the Client class ... Main Class package mike.scoutcraft.main; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.stats.Achievement; import net.minecraftforge.common.AchievementPage; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.config.Configuration; import mike.scoutcraft.achievement.SCConquistas; import mike.scoutcraft.blocks.SCBlocos; import mike.scoutcraft.craft.CraftingHandler; import mike.scoutcraft.craft.DropDaGrama; import mike.scoutcraft.craft.FuelHandler; import mike.scoutcraft.craft.ReceitasCraftTable; import mike.scoutcraft.craft.ReceitasFornalha; import mike.scoutcraft.handler.LivingEventHandler; import mike.scoutcraft.items.SCItems; import mike.scoutcraft.lib.Strings; import mike.scoutcraft.proxy.Client; import mike.scoutcraft.proxy.CommonProxy; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; 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.registry.GameRegistry; import cpw.mods.fml.relauncher.SideOnly; @Mod(modid = Strings.MODID, version = Strings.VERSION, name = Strings.MODNAME) public class ScoutCraft { @Instance(Strings.MODID) public static ScoutCraft Instance; @SidedProxy(clientSide = mike.scoutcraft.lib.Strings.CLIENT, serverSide = mike.scoutcraft.lib.Strings.COMMONPROXY) public static CommonProxy proxy; public static final int GuiIdFogueira = 0; public static Achievement QuebrandoCoisas; public static Achievement VamosEsquentar; public static Achievement PoFacil; public static Achievement FazerFogueira; public static Achievement TochasPassado; private static Configuration configuration; public static int lightRange; public static int targetLightValue; public static int handLightValue; public static int lightInterval; public static int serverLightInterval; public static CreativeTabs scoutcraft = new CreativeTabs("ScoutCraft") { public Item getTabIconItem() { return SCItems.InicializadorDeChamas; } }; @EventHandler public static void preLoad(FMLPreInitializationEvent event) { configuration = new Configuration(event.getSuggestedConfigurationFile()); configuration.load(); lightRange = configuration.get("config", "Range/Distancia", 20).getInt(); targetLightValue = configuration.get("config", "Target Light/Alvo Da Luz", 15).getInt(); handLightValue = configuration.get("config", "Hand Light/Luz Emitida", .getInt(); lightInterval = configuration.get("config", "Light Interval/Intervalo Da Luz", 1).getInt(); serverLightInterval = configuration.get("config", "Server Light Interval/Intervalo Da Luz Em Servidor", 5).getInt(); configuration.save(); lightRange = lightRange > 40 ? 40 : (lightRange < 0 ? 0 : lightRange); targetLightValue = targetLightValue > 15 ? 15 : (targetLightValue < 0 ? 0 : targetLightValue); handLightValue = handLightValue > 15 ? 15 : (handLightValue < 0 ? 0 : handLightValue); SCBlocos.init(); SCItems.init(); ReceitasCraftTable.register(); ReceitasFornalha.register(); DropDaGrama.Register(); GameRegistry.registerFuelHandler(new FuelHandler()); MinecraftForge.EVENT_BUS.register(new CraftingHandler()); MinecraftForge.EVENT_BUS.register(new LivingEventHandler()); } @EventHandler public static void load(FMLInitializationEvent event) { client.registerRender(); proxy.registerGuiHandler(); proxy.LanguageRegistry(); proxy.registerTileEntity(); } @EventHandler public static void postLoad(FMLPostInitializationEvent event) { QuebrandoCoisas = new Achievement("achievement.QuebrandoCoisas", "QuebrandoCoisas", 0, 0, SCItems.MarteloDeMadeira, (Achievement)null).initIndependentStat().registerStat(); VamosEsquentar = new Achievement("achievement.VamosEsquentar", "VamosEsquentar", 2, 1, SCItems.InicializadorDeChamas, QuebrandoCoisas).registerStat().setSpecial(); PoFacil = new Achievement("achievement.PoFacil", "PoFacil", 3, 1, SCItems.PoDeCarvao, QuebrandoCoisas).registerStat().setSpecial(); FazerFogueira = new Achievement("achievement.FazerFogueira", "FazerFogueira", 4, 2, SCBlocos.Fogueira, VamosEsquentar).registerStat().setSpecial(); TochasPassado = new Achievement("achievement.TochasPassado", "TochasPassado", 5, 3, SCBlocos.Lampiao, PoFacil).registerStat().setSpecial(); AchievementPage.registerAchievementPage(new AchievementPage("ScoutCraft", new Achievement[]{QuebrandoCoisas, VamosEsquentar, PoFacil, FazerFogueira, TochasPassado})); } }
  17. Hmm right, but the renderer are not showing up, is something wrong?
  18. I was with doubts as how to put the Client registerRender and i decided put so: p, already had the impression it was super wrong ...... how can I replace?
  19. ohh sorry, I sent a piece: p My Main Class package mike.scoutcraft.main; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.stats.Achievement; import net.minecraftforge.common.AchievementPage; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.config.Configuration; import mike.scoutcraft.achievement.SCConquistas; import mike.scoutcraft.blocks.SCBlocos; import mike.scoutcraft.craft.CraftingHandler; import mike.scoutcraft.craft.DropDaGrama; import mike.scoutcraft.craft.FuelHandler; import mike.scoutcraft.craft.ReceitasCraftTable; import mike.scoutcraft.craft.ReceitasFornalha; import mike.scoutcraft.handler.LivingEventHandler; import mike.scoutcraft.items.SCItems; import mike.scoutcraft.lib.Strings; import mike.scoutcraft.proxy.Client; import mike.scoutcraft.proxy.CommonProxy; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; 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.registry.GameRegistry; import cpw.mods.fml.relauncher.SideOnly; @Mod(modid = Strings.MODID, version = Strings.VERSION, name = Strings.MODNAME) public class ScoutCraft { @Instance(Strings.MODID) public static ScoutCraft Instance; @SidedProxy(clientSide = mike.scoutcraft.lib.Strings.CLIENT, serverSide = mike.scoutcraft.lib.Strings.COMMONPROXY) public static CommonProxy proxy; public static Client client; public static final int GuiIdFogueira = 0; public static Achievement QuebrandoCoisas; public static Achievement VamosEsquentar; public static Achievement PoFacil; public static Achievement FazerFogueira; public static Achievement TochasPassado; private static Configuration configuration; public static int lightRange; public static int targetLightValue; public static int handLightValue; public static int lightInterval; public static int serverLightInterval; public static CreativeTabs scoutcraft = new CreativeTabs("ScoutCraft") { public Item getTabIconItem() { return SCItems.InicializadorDeChamas; } }; @EventHandler public static void preLoad(FMLPreInitializationEvent event) { configuration = new Configuration(event.getSuggestedConfigurationFile()); configuration.load(); lightRange = configuration.get("config", "Range/Distancia", 20).getInt(); targetLightValue = configuration.get("config", "Target Light/Alvo Da Luz", 15).getInt(); handLightValue = configuration.get("config", "Hand Light/Luz Emitida", .getInt(); lightInterval = configuration.get("config", "Light Interval/Intervalo Da Luz", 1).getInt(); serverLightInterval = configuration.get("config", "Server Light Interval/Intervalo Da Luz Em Servidor", 5).getInt(); configuration.save(); lightRange = lightRange > 40 ? 40 : (lightRange < 0 ? 0 : lightRange); targetLightValue = targetLightValue > 15 ? 15 : (targetLightValue < 0 ? 0 : targetLightValue); handLightValue = handLightValue > 15 ? 15 : (handLightValue < 0 ? 0 : handLightValue); SCBlocos.init(); SCItems.init(); ReceitasCraftTable.register(); ReceitasFornalha.register(); DropDaGrama.Register(); GameRegistry.registerFuelHandler(new FuelHandler()); MinecraftForge.EVENT_BUS.register(new CraftingHandler()); MinecraftForge.EVENT_BUS.register(new LivingEventHandler()); } @EventHandler public static void load(FMLInitializationEvent event) { client.registerRender(); proxy.registerGuiHandler(); proxy.LanguageRegistry(); proxy.registerTileEntity(); } @EventHandler public static void postLoad(FMLPostInitializationEvent event) { QuebrandoCoisas = new Achievement("achievement.QuebrandoCoisas", "QuebrandoCoisas", 0, 0, SCItems.MarteloDeMadeira, (Achievement)null).initIndependentStat().registerStat(); VamosEsquentar = new Achievement("achievement.VamosEsquentar", "VamosEsquentar", 2, 1, SCItems.InicializadorDeChamas, QuebrandoCoisas).registerStat().setSpecial(); PoFacil = new Achievement("achievement.PoFacil", "PoFacil", 3, 1, SCItems.PoDeCarvao, QuebrandoCoisas).registerStat().setSpecial(); FazerFogueira = new Achievement("achievement.FazerFogueira", "FazerFogueira", 4, 2, SCBlocos.Fogueira, VamosEsquentar).registerStat().setSpecial(); TochasPassado = new Achievement("achievement.TochasPassado", "TochasPassado", 5, 3, SCBlocos.Lampiao, PoFacil).registerStat().setSpecial(); AchievementPage.registerAchievementPage(new AchievementPage("ScoutCraft", new Achievement[]{QuebrandoCoisas, VamosEsquentar, PoFacil, FazerFogueira, TochasPassado})); } } My Client Class package mike.scoutcraft.proxy; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.relauncher.Side; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.item.Item; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import mike.scoutcraft.blocks.SCBlocos; import mike.scoutcraft.items.SCItems; import mike.scoutcraft.render.ItemRenderFogueira; import mike.scoutcraft.render.ItemRenderLampiao; import mike.scoutcraft.render.RenderFogueira; import mike.scoutcraft.render.RenderLampiao; import mike.scoutcraft.render.RenderLanternaDesligada; import mike.scoutcraft.render.RenderLanternaLigada; import mike.scoutcraft.render.RenderMarteloDeDiamante; import mike.scoutcraft.render.RenderMarteloDeFerro; import mike.scoutcraft.render.RenderMarteloDeMadeira; import mike.scoutcraft.render.RenderMarteloDeOuro; import mike.scoutcraft.render.RenderMarteloDePedra; import mike.scoutcraft.render.RenderToco; import mike.scoutcraft.tileentity.TileEntityFogueira; import mike.scoutcraft.tileentity.TileEntityLampiao; public class Client extends CommonProxy { public void registerRender(){ TileEntitySpecialRenderer render1 = new RenderFogueira(); TileEntitySpecialRenderer render2 = new RenderToco(); TileEntitySpecialRenderer render3 = new RenderLampiao(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFogueira.class, render1); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLampiao.class, render3); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.Fogueira), new ItemRenderFogueira(render1, new TileEntityFogueira())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.FogueiraAcesa), new ItemRenderFogueira(render1, new TileEntityFogueira())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.Lampiao), new ItemRenderLampiao(render3, new TileEntityLampiao())); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDePedra, (IItemRenderer)new RenderMarteloDePedra()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeMadeira, (IItemRenderer)new RenderMarteloDeMadeira()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeFerro, (IItemRenderer)new RenderMarteloDeFerro()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeOuro, (IItemRenderer)new RenderMarteloDeOuro()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeDiamante, (IItemRenderer)new RenderMarteloDeDiamante()); MinecraftForgeClient.registerItemRenderer(SCItems.LanternaLigada, (IItemRenderer)new RenderLanternaLigada()); MinecraftForgeClient.registerItemRenderer(SCItems.LanternaDesligada, (IItemRenderer)new RenderLanternaDesligada()); } } My Common Class package mike.scoutcraft.proxy; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.item.Item; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import mike.scoutcraft.blocks.SCBlocos; import mike.scoutcraft.gui.GuiHandler; import mike.scoutcraft.items.SCItems; import mike.scoutcraft.main.ScoutCraft; import mike.scoutcraft.render.ItemRenderFogueira; import mike.scoutcraft.render.ItemRenderLampiao; import mike.scoutcraft.render.RenderFogueira; import mike.scoutcraft.render.RenderLampiao; import mike.scoutcraft.render.RenderLanternaDesligada; import mike.scoutcraft.render.RenderLanternaLigada; import mike.scoutcraft.render.RenderMarteloDeDiamante; import mike.scoutcraft.render.RenderMarteloDeFerro; import mike.scoutcraft.render.RenderMarteloDeMadeira; import mike.scoutcraft.render.RenderMarteloDeOuro; import mike.scoutcraft.render.RenderMarteloDePedra; import mike.scoutcraft.render.RenderToco; import mike.scoutcraft.tileentity.TileEntityFogueira; import mike.scoutcraft.tileentity.TileEntityLampiao; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; public class CommonProxy{ public void registerTileEntity() { GameRegistry.registerTileEntity(TileEntityFogueira.class, "Fogueira"); GameRegistry.registerTileEntity(TileEntityLampiao.class, "Lampiao"); } public void registerGuiHandler(){ NetworkRegistry.INSTANCE.registerGuiHandler(ScoutCraft.Instance, new GuiHandler()); } public void LanguageRegistry(){ LanguageRegistry.instance().addStringLocalization("container.Fogueira", "Fogueira"); } }
  20. I removed the image ,the error changed to the rendererregister of the client, how to solve? Main Class @EventHandler public static void load(FMLInitializationEvent event) { client.registerRender(); proxy.registerGuiHandler(); proxy.LanguageRegistry(); proxy.registerTileEntity(); } Client package mike.scoutcraft.proxy; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.relauncher.Side; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.item.Item; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import mike.scoutcraft.blocks.SCBlocos; import mike.scoutcraft.items.SCItems; import mike.scoutcraft.render.ItemRenderFogueira; import mike.scoutcraft.render.ItemRenderLampiao; import mike.scoutcraft.render.RenderFogueira; import mike.scoutcraft.render.RenderLampiao; import mike.scoutcraft.render.RenderLanternaDesligada; import mike.scoutcraft.render.RenderLanternaLigada; import mike.scoutcraft.render.RenderMarteloDeDiamante; import mike.scoutcraft.render.RenderMarteloDeFerro; import mike.scoutcraft.render.RenderMarteloDeMadeira; import mike.scoutcraft.render.RenderMarteloDeOuro; import mike.scoutcraft.render.RenderMarteloDePedra; import mike.scoutcraft.render.RenderToco; import mike.scoutcraft.tileentity.TileEntityFogueira; import mike.scoutcraft.tileentity.TileEntityLampiao; public class Client extends CommonProxy { public void registerRender(){ TileEntitySpecialRenderer render1 = new RenderFogueira(); TileEntitySpecialRenderer render2 = new RenderToco(); TileEntitySpecialRenderer render3 = new RenderLampiao(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFogueira.class, render1); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLampiao.class, render3); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.Fogueira), new ItemRenderFogueira(render1, new TileEntityFogueira())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.FogueiraAcesa), new ItemRenderFogueira(render1, new TileEntityFogueira())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.Lampiao), new ItemRenderLampiao(render3, new TileEntityLampiao())); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDePedra, (IItemRenderer)new RenderMarteloDePedra()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeMadeira, (IItemRenderer)new RenderMarteloDeMadeira()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeFerro, (IItemRenderer)new RenderMarteloDeFerro()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeOuro, (IItemRenderer)new RenderMarteloDeOuro()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeDiamante, (IItemRenderer)new RenderMarteloDeDiamante()); MinecraftForgeClient.registerItemRenderer(SCItems.LanternaLigada, (IItemRenderer)new RenderLanternaLigada()); MinecraftForgeClient.registerItemRenderer(SCItems.LanternaDesligada, (IItemRenderer)new RenderLanternaDesligada()); } } Client e Sever Crash ---- Minecraft Crash Report ---- // Oops. Time: 26/01/15 14:53 Description: Initializing game java.lang.NullPointerException: Initializing game at mike.scoutcraft.main.ScoutCraft.load(ScoutCraft.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) at net.minecraft.client.Minecraft.startGame(Minecraft.java:541) at net.minecraft.client.Minecraft.run(Minecraft.java:867) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at mike.scoutcraft.main.ScoutCraft.load(ScoutCraft.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:288) at net.minecraft.client.Minecraft.startGame(Minecraft.java:541) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:867) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 710768576 bytes (677 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.85.1236 Minecraft Forge 10.13.2.1236 8 mods loaded, 8 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.10.85.1236} [Forge Mod Loader] (forgeBin-1.7.10-10.13.2.1236.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.13.2.1236} [Minecraft Forge] (forgeBin-1.7.10-10.13.2.1236.jar) Unloaded->Constructed->Pre-initialized->Initialized CodeChickenCore{1.0.4.29} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized NotEnoughItems{1.0.3.74} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.3.74-dev.jar) Unloaded->Constructed->Pre-initialized->Initialized scoutcraft{beta 1.2.0} [scoutCraft] (bin) Unloaded->Constructed->Pre-initialized->Errored DamageIndicatorsMod{3.2.0} [Damage Indicators] ([1.7.10]DamageIndicatorsMod-3.2.0.jar) Unloaded->Constructed->Pre-initialized->Initialized ShowDurability2{1.3.0} [showDurability2] (ShowDurability2-1.7.10-1.4.0.jar) Unloaded->Constructed->Pre-initialized->Initialized Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: AMD Radeon HD 7700 Series GL version 4.4.13092 Compatibility Profile Context 14.301.0.0, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: Português (Brasil) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1)
  21. I put the @SidedProxy in my main class, directing the strings, that direct the client and the common, I did something wrong? Main Class Part @Mod(modid = Strings.MODID, version = Strings.VERSION, name = Strings.MODNAME) public class ScoutCraft { @Instance(Strings.MODID) public static ScoutCraft Instance; @SidedProxy(clientSide = mike.scoutcraft.lib.Strings.CLIENT, serverSide = mike.scoutcraft.lib.Strings.COMMONPROXY) public static CommonProxy proxy; Strings package mike.scoutcraft.lib; public class Strings { public static final String MODID = "scoutcraft"; public static final String VERSION = "beta 1.2.0"; public static final String MODNAME = "ScoutCraft"; public static final String COMMONPROXY = "mike.scoutcraft.proxy.CommonProxy"; public static final String CLIENT = "mike.scoutcraft.proxy.Client"; }
  22. Good afternoon, I'm having some problems with creating server using my mod, it happens that the server attempts to load the TileEntitySpecialRenderer of the Clientproxy resulting in a crash, do not know why this is happening and would like to ask your help... My Main Class package mike.scoutcraft.main; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.stats.Achievement; import net.minecraftforge.common.AchievementPage; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.config.Configuration; import mike.scoutcraft.achievement.SCConquistas; import mike.scoutcraft.blocks.SCBlocos; import mike.scoutcraft.craft.CraftingHandler; import mike.scoutcraft.craft.DropDaGrama; import mike.scoutcraft.craft.FuelHandler; import mike.scoutcraft.craft.ReceitasCraftTable; import mike.scoutcraft.craft.ReceitasFornalha; import mike.scoutcraft.handler.LivingEventHandler; import mike.scoutcraft.items.SCItems; import mike.scoutcraft.lib.Strings; import mike.scoutcraft.proxy.Client; import mike.scoutcraft.proxy.CommonProxy; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; 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.registry.GameRegistry; import cpw.mods.fml.relauncher.SideOnly; @Mod(modid = Strings.MODID, version = Strings.VERSION, name = Strings.MODNAME) public class ScoutCraft { @Instance(Strings.MODID) public static ScoutCraft Instance; @SidedProxy(clientSide = mike.scoutcraft.lib.Strings.CLIENT, serverSide = mike.scoutcraft.lib.Strings.COMMONPROXY) public static CommonProxy proxy; public static final int GuiIdFogueira = 0; public static Achievement QuebrandoCoisas; public static Achievement VamosEsquentar; public static Achievement PoFacil; public static Achievement FazerFogueira; public static Achievement TochasPassado; private static Configuration configuration; public static int lightRange; public static int targetLightValue; public static int handLightValue; public static int lightInterval; public static int serverLightInterval; public static CreativeTabs scoutcraft = new CreativeTabs("ScoutCraft") { public Item getTabIconItem() { return SCItems.InicializadorDeChamas; } }; @EventHandler public static void preLoad(FMLPreInitializationEvent event) { configuration = new Configuration(event.getSuggestedConfigurationFile()); configuration.load(); lightRange = configuration.get("config", "Range/Distancia", 20).getInt(); targetLightValue = configuration.get("config", "Target Light/Alvo Da Luz", 15).getInt(); handLightValue = configuration.get("config", "Hand Light/Luz Emitida", .getInt(); lightInterval = configuration.get("config", "Light Interval/Intervalo Da Luz", 1).getInt(); serverLightInterval = configuration.get("config", "Server Light Interval/Intervalo Da Luz Em Servidor", 5).getInt(); configuration.save(); lightRange = lightRange > 40 ? 40 : (lightRange < 0 ? 0 : lightRange); targetLightValue = targetLightValue > 15 ? 15 : (targetLightValue < 0 ? 0 : targetLightValue); handLightValue = handLightValue > 15 ? 15 : (handLightValue < 0 ? 0 : handLightValue); SCBlocos.init(); SCItems.init(); ReceitasCraftTable.register(); ReceitasFornalha.register(); DropDaGrama.Register(); GameRegistry.registerFuelHandler(new FuelHandler()); MinecraftForge.EVENT_BUS.register(new CraftingHandler()); MinecraftForge.EVENT_BUS.register(new LivingEventHandler()); } @EventHandler public static void load(FMLInitializationEvent event) { Client.registerRender(); CommonProxy.registerGuiHandler(); CommonProxy.LanguageRegistry(); CommonProxy.registerTileEntity(); } @EventHandler public static void postLoad(FMLPostInitializationEvent event) { QuebrandoCoisas = new Achievement("achievement.QuebrandoCoisas", "QuebrandoCoisas", 0, 0, SCItems.MarteloDeMadeira, (Achievement)null).initIndependentStat().registerStat(); VamosEsquentar = new Achievement("achievement.VamosEsquentar", "VamosEsquentar", 2, 1, SCItems.InicializadorDeChamas, QuebrandoCoisas).registerStat().setSpecial(); PoFacil = new Achievement("achievement.PoFacil", "PoFacil", 3, 1, SCItems.PoDeCarvao, QuebrandoCoisas).registerStat().setSpecial(); FazerFogueira = new Achievement("achievement.FazerFogueira", "FazerFogueira", 4, 2, SCBlocos.Fogueira, VamosEsquentar).registerStat().setSpecial(); TochasPassado = new Achievement("achievement.TochasPassado", "TochasPassado", 5, 3, SCBlocos.Lampiao, PoFacil).registerStat().setSpecial(); AchievementPage.registerAchievementPage(new AchievementPage("ScoutCraft", new Achievement[]{QuebrandoCoisas, VamosEsquentar, PoFacil, FazerFogueira, TochasPassado})); } } My ClientProxy Class package mike.scoutcraft.proxy; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.relauncher.Side; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.item.Item; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import mike.scoutcraft.blocks.SCBlocos; import mike.scoutcraft.items.SCItems; import mike.scoutcraft.render.ItemRenderFogueira; import mike.scoutcraft.render.ItemRenderLampiao; import mike.scoutcraft.render.RenderFogueira; import mike.scoutcraft.render.RenderLampiao; import mike.scoutcraft.render.RenderLanternaDesligada; import mike.scoutcraft.render.RenderLanternaLigada; import mike.scoutcraft.render.RenderMarteloDeDiamante; import mike.scoutcraft.render.RenderMarteloDeFerro; import mike.scoutcraft.render.RenderMarteloDeMadeira; import mike.scoutcraft.render.RenderMarteloDeOuro; import mike.scoutcraft.render.RenderMarteloDePedra; import mike.scoutcraft.render.RenderToco; import mike.scoutcraft.tileentity.TileEntityFogueira; import mike.scoutcraft.tileentity.TileEntityLampiao; public class Client extends CommonProxy { public static void registerRender(){ TileEntitySpecialRenderer render1 = new RenderFogueira(); TileEntitySpecialRenderer render2 = new RenderToco(); TileEntitySpecialRenderer render3 = new RenderLampiao(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFogueira.class, render1); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLampiao.class, render3); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.Fogueira), new ItemRenderFogueira(render1, new TileEntityFogueira())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.FogueiraAcesa), new ItemRenderFogueira(render1, new TileEntityFogueira())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(SCBlocos.Lampiao), new ItemRenderLampiao(render3, new TileEntityLampiao())); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDePedra, (IItemRenderer)new RenderMarteloDePedra()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeMadeira, (IItemRenderer)new RenderMarteloDeMadeira()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeFerro, (IItemRenderer)new RenderMarteloDeFerro()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeOuro, (IItemRenderer)new RenderMarteloDeOuro()); MinecraftForgeClient.registerItemRenderer(SCItems.MarteloDeDiamante, (IItemRenderer)new RenderMarteloDeDiamante()); MinecraftForgeClient.registerItemRenderer(SCItems.LanternaLigada, (IItemRenderer)new RenderLanternaLigada()); MinecraftForgeClient.registerItemRenderer(SCItems.LanternaDesligada, (IItemRenderer)new RenderLanternaDesligada()); } } My CommonProxy Class package mike.scoutcraft.proxy; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.item.Item; import net.minecraftforge.client.IItemRenderer; import net.minecraftforge.client.MinecraftForgeClient; import mike.scoutcraft.blocks.SCBlocos; import mike.scoutcraft.gui.GuiHandler; import mike.scoutcraft.items.SCItems; import mike.scoutcraft.main.ScoutCraft; import mike.scoutcraft.render.ItemRenderFogueira; import mike.scoutcraft.render.ItemRenderLampiao; import mike.scoutcraft.render.RenderFogueira; import mike.scoutcraft.render.RenderLampiao; import mike.scoutcraft.render.RenderLanternaDesligada; import mike.scoutcraft.render.RenderLanternaLigada; import mike.scoutcraft.render.RenderMarteloDeDiamante; import mike.scoutcraft.render.RenderMarteloDeFerro; import mike.scoutcraft.render.RenderMarteloDeMadeira; import mike.scoutcraft.render.RenderMarteloDeOuro; import mike.scoutcraft.render.RenderMarteloDePedra; import mike.scoutcraft.render.RenderToco; import mike.scoutcraft.tileentity.TileEntityFogueira; import mike.scoutcraft.tileentity.TileEntityLampiao; import cpw.mods.fml.client.registry.ClientRegistry; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; public class CommonProxy{ public static void registerTileEntity() { GameRegistry.registerTileEntity(TileEntityFogueira.class, "Fogueira"); GameRegistry.registerTileEntity(TileEntityLampiao.class, "Lampiao"); } public static void registerGuiHandler(){ NetworkRegistry.INSTANCE.registerGuiHandler(ScoutCraft.Instance, new GuiHandler()); } public static void LanguageRegistry(){ LanguageRegistry.instance().addStringLocalization("container.Fogueira", "Fogueira"); } } Server Crash ---- Minecraft Crash Report ---- // My bad. Time: 26/01/15 13:59 Description: Exception in server tick loop cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/tileentity/TileEntitySpecialRenderer at cpw.mods.fml.common.LoadController.transition(LoadController.java:162) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692) at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:97) at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:319) at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:210) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387) at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/renderer/tileentity/TileEntitySpecialRenderer at mike.scoutcraft.main.ScoutCraft.load(ScoutCraft.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) ... 5 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 33 more Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/tileentity/TileEntitySpecialRenderer for invalid side SERVER at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50) at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ... 35 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 983136824 bytes (937 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.85.1236 Minecraft Forge 10.13.2.1236 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.10.85.1236} [Forge Mod Loader] (forgeBin-1.7.10-10.13.2.1236.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.13.2.1236} [Minecraft Forge] (forgeBin-1.7.10-10.13.2.1236.jar) Unloaded->Constructed->Pre-initialized->Initialized scoutcraft{beta 1.2.0} [scoutCraft] (bin) Unloaded->Constructed->Pre-initialized->Errored Profiler Position: N/A (disabled) Is Modded: Definitely; Server brand changed to 'fml,forge' Type: Dedicated Server (map_server.txt)
  23. I tried some things but none worked, could you +/- tell me about what to add or remove? My updateEntity: public void updateEntity(){ boolean flag = this.hasPower(); boolean flag1= false; if(hasPower() && this.isFogueira()) { this.power--; } if(!worldObj.isRemote) { if (this.hasItemPower(this.slots[1]) && this.power < (this.maxPower - this.getItempower(this.slots[1]))) { this.power += getItempower(this.slots[1]); if(this.slots[1] != null) { flag1 = true; this.slots[1].stackSize--; if(this.slots[1].stackSize == 0) { this.slots[1] = this.slots[1].getItem().getContainerItem(this.slots[1]); } } } if (hasPower() && canSmelt()) { cookTime++; if (this.cookTime == this.fogueiraSpeed) { this.cookTime = 0; this.smeltItem(); flag1 = true; } }else{ cookTime = 0; } if (flag != this.isFogueira()) { flag1 = true; Fogueira.updateFogueiraBlockState(this.isFogueira(), this.worldObj, this.xCoord, this.yCoord, this.zCoord); } if(this.cookTime > 0){ flag1 = true; Fogueira.updateFogueiraBlockState(this.isFogueira(), this.worldObj, this.xCoord, this.yCoord, this.zCoord); }else{ flag1 = true; Fogueira.updateFogueiraBlockState(this.isFogueira(), this.worldObj, this.xCoord, this.yCoord, this.zCoord); } } if (flag1) { this.markDirty(); } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.