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

Hextor

Members
  • Posts

    24
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Personal Text
    I am not as new as I once was.

Hextor's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. -the custom name tag just doesnt appear over the monster -its movement speed is like 2 or 3 times the (I lowered its movements speed from 1.0 to 0.1 a while ago, nothing changed) Here is one of my other custom mobs, maybe I can show in a more clear way whats the problem: -custom name tag doesn't appear -when right clicking on it, nothing happens -I can't inflict any damage to it I would like to add that these mobs worked perfectly and some time ago I opened up eclipse and suddenly everything went wrong. Anyway I'm planning to update my mc & forge to 1.8. Can you recommend a good tutorial on how to do this? package net.aethoscraft.mod.entity.npc; import net.aethoscraft.mod.gui.DefConvGui; import net.minecraft.client.Minecraft; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.boss.IBossDisplayData; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; public class DefHuCitizen extends EntityLiving { public DefHuCitizen(World world) { super(world); this.setCustomNameTag("Human Citizen"); this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, 5.0F)); } protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.1D); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(10.0D); this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(50.0D); } @Override public boolean interact(EntityPlayer player) { if (!this.worldObj.isRemote) { Minecraft.getMinecraft().displayGuiScreen(new DefConvGui()); return true; } else { return super.interact(player); } } @Override public boolean canBeCollidedWith() { return false; } @Override public boolean canBePushed() { return false; } }
  2. Here is my main mod class package net.aethoscraft.mod; import cpw.mods.fml.common.Mod; 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.network.NetworkRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.aethoscraft.mod.blocks.CopperBlock; import net.aethoscraft.mod.blocks.CopperOre; import net.aethoscraft.mod.blocks.MithrilBlock; import net.aethoscraft.mod.blocks.MithrilOre; import net.aethoscraft.mod.blocks.RubyOre; import net.aethoscraft.mod.blocks.SilverOre; import net.aethoscraft.mod.blocks.SulfuronOre; import net.aethoscraft.mod.blocks.spec.BookBlock; import net.aethoscraft.mod.currency.GeneralCurrency; import net.aethoscraft.mod.entity.hostile.EntityBoar; import net.aethoscraft.mod.entity.hostile.EntityDefNurgh; import net.aethoscraft.mod.entity.hostile.EntityGraymWolf; import net.aethoscraft.mod.entity.npc.DefHuCitizen; import net.aethoscraft.mod.entity.npc.DefHuVendor; import net.aethoscraft.mod.handler.EntityHandler; import net.aethoscraft.mod.handler.PlayerHandler; import net.aethoscraft.mod.items.AncientSpark; import net.aethoscraft.mod.items.BackPack; import net.aethoscraft.mod.items.GeneralFood; import net.aethoscraft.mod.items.GeneralItems; import net.aethoscraft.mod.items.GeneralMaterials; import net.aethoscraft.mod.items.GeneralReagents; import net.aethoscraft.mod.items.SulfuronSlab; import net.aethoscraft.mod.items.books.ItemAlchBook1; import net.aethoscraft.mod.proxy.CommonProxy; import net.aethoscraft.mod.tileentity.TileEntityBookBlock; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; @Mod(modid = Aethoscraft.modid, version = Aethoscraft.version) public class Aethoscraft { public static final String modid = "Aethoscraft"; public static final String version = "Alpha v0.02"; @SidedProxy(clientSide = "net.aethoscraft.mod.proxy.ClientProxy",serverSide = "net.aethoscraft.mod.proxy.CommonProxy") public static CommonProxy aethosProxy; @Instance(modid) public static Aethoscraft instance; private static int guiIndex = 0; public static int GUI_ITEM_INV = guiIndex++; //tabs public static CreativeTabs GeneralTab; public static CreativeTabs CurrencyTab; public static CreativeTabs ReagentsTab; public static CreativeTabs ABlockTab; public static CreativeTabs WeaponTab; public static CreativeTabs AFoodTab; public static CreativeTabs AMobsTab; public static CreativeTabs AMaterialsTab; //currency public static Item currGoldCoin; public static Item currGoldSack; public static Item currGoldStamp; //books public static Item bookAlchBook1; //food public static Item itemBoarRibs; public static Item itemSourGoatCheese; public static Item itemBoiledClamMeat; public static Item itemSpicedChicken; public static Item itemFrostleafBerries; public static Item itemGodricsEgg; public static Item itemSaltyBoarMeat; public static Item itemEggSunnySideUp; //materials public static Item itemCopperIngot; public static Item itemSilverIngot; public static Item itemSteelIngot; public static Item itemMithrilIngot; public static Item itemSulfuronIngot; public static Item itemArcaniumIngot; public static Item itemRuby; public static Item itemSapphire; public static Item itemSunstone; public static Item itemMoonstone; public static Item itemWaterMote; public static Item itemEarthMote; public static Item itemAirMote; public static Item itemFireMote; public static Item itemMagicDust; public static Item itemAbyssalCrystal; public static Item itemAncientSpark; //reagents public static Item itemSaltPile; public static Item itemDistAlcohol; public static Item itemSeaWeed; public static Item itemTapioraRoot; public static Item itemSyldrassilSeed; public static Item itemWolfHeart; public static Item itemBlueHermetia; public static Item itemSandWeed; public static Item itemScorphasLeaf; //general public static Item itemSulfuronSlab; public static Item itemBoarTusk; public static Item itemWolfPelt; public static Item itemVenomSac; public static Item itemShinyScales; public static Item itemBackPack; //blocks public static Block oreCopperOre; public static Block oreSilverOre; public static Block oreMithrilOre; public static Block oreSulfuronOre; public static Block oreRubyOre; public static Block blockCopperBlock; public static Block blockMithrilBlock; //decorative blocks & stuff public static Block blockBook1; //Toolmaterials public static ToolMaterial defStaffMaterial = EnumHelper.addToolMaterial("StaffMaterial", 0, 400, 10.0F, 3.1F, 0); @Mod.EventHandler public void PreInitialization(FMLPreInitializationEvent event){ aethosProxy.registerRenderThings(); //creative tabs GeneralTab = new CreativeTabs("General"){ @SideOnly(Side.CLIENT) public Item getTabIconItem(){ return itemSulfuronSlab; }}; CurrencyTab = new CreativeTabs("Currency"){ @SideOnly(Side.CLIENT) public Item getTabIconItem(){ return currGoldSack; }}; AMaterialsTab = new CreativeTabs("AMaterials"){ @SideOnly(Side.CLIENT) public Item getTabIconItem(){ return itemCopperIngot; }}; ABlockTab = new CreativeTabs("Block"){ @SideOnly(Side.CLIENT) public Item getTabIconItem(){ return Item.getItemFromBlock(oreCopperOre); }}; /* WeaponTab = new CreativeTabs("Weapon"){ @SideOnly(Side.CLIENT) public Item getTabIconItem(){ return item2001; }}; */ AFoodTab = new CreativeTabs("Food"){ @SideOnly(Side.CLIENT) public Item getTabIconItem(){ return itemBoarRibs; }}; AMobsTab = new CreativeTabs("CustomSpawns"){ //place for custom spawn eggs @SideOnly(Side.CLIENT) public Item getTabIconItem(){ return currGoldSack; }}; ReagentsTab = new CreativeTabs("Reagents"){ @SideOnly(Side.CLIENT) public Item getTabIconItem(){ return itemTapioraRoot; }}; //blocks oreCopperOre = new CopperOre(Material.rock).setBlockName("CopperOre"); oreSilverOre = new SilverOre(Material.rock).setBlockName("SilverOre"); oreMithrilOre = new MithrilOre(Material.rock).setBlockName("MithrilOre"); oreSulfuronOre = new SulfuronOre(Material.rock).setBlockName("SulfuronOre"); oreRubyOre = new RubyOre(Material.rock).setBlockName("RubyOre"); blockCopperBlock = new CopperBlock(Material.iron).setBlockName("CopperBlock"); blockMithrilBlock = new MithrilBlock(Material.iron).setBlockName("MithrilBlock"); //decorative blocks... blockBook1 = new BookBlock(Material.wood).setBlockName("BookBlock1"); //currency currGoldCoin = new GeneralCurrency().setUnlocalizedName("GoldCoin").setTextureName("Aethoscraft:GoldCoin"); currGoldSack = new GeneralCurrency().setUnlocalizedName("GoldSack").setTextureName("Aethoscraft:GoldSack"); currGoldStamp = new GeneralCurrency().setUnlocalizedName("GoldStamp").setTextureName("Aethoscraft:GoldStamp"); //books bookAlchBook1 = new ItemAlchBook1().setUnlocalizedName("AlchBook"); //materials itemCopperIngot = new GeneralMaterials().setUnlocalizedName("CopperIngot"); itemSilverIngot = new GeneralMaterials().setUnlocalizedName("SilverIngot"); itemSteelIngot = new GeneralMaterials().setUnlocalizedName("SteelIngot"); itemMithrilIngot = new GeneralMaterials().setUnlocalizedName("MithrilIngot"); itemSulfuronIngot = new GeneralMaterials().setUnlocalizedName("SulfuronIngot"); itemArcaniumIngot = new GeneralMaterials().setUnlocalizedName("ArcaniumIngot"); itemRuby = new GeneralMaterials().setUnlocalizedName("Ruby"); itemSapphire = new GeneralMaterials().setUnlocalizedName("Sapphire"); itemSunstone = new GeneralMaterials().setUnlocalizedName("Sunstone"); itemMoonstone = new GeneralMaterials().setUnlocalizedName("Moonstone"); itemWaterMote = new GeneralMaterials().setUnlocalizedName("WaterMote"); itemEarthMote = new GeneralMaterials().setUnlocalizedName("EarthMote"); itemAirMote = new GeneralMaterials().setUnlocalizedName("AirMote"); itemFireMote = new GeneralMaterials().setUnlocalizedName("FireMote"); itemMagicDust = new GeneralMaterials().setUnlocalizedName("MagicDust"); itemAbyssalCrystal = new GeneralMaterials().setUnlocalizedName("AbyssalCrystal"); itemAncientSpark = new AncientSpark().setUnlocalizedName("AncientSpark"); //general itemSulfuronSlab = new SulfuronSlab().setUnlocalizedName("SulfuronSlab"); itemBoarTusk = new GeneralItems().setUnlocalizedName("BoarTusk"); itemWolfPelt = new GeneralItems().setUnlocalizedName("WolfPelt"); itemVenomSac = new GeneralItems().setUnlocalizedName("VenomSac"); itemShinyScales = new GeneralItems().setUnlocalizedName("ShinyScales"); itemBackPack = new BackPack().setUnlocalizedName("BackPack"); //reagents itemSaltPile = new GeneralReagents().setUnlocalizedName("SaltPile"); itemDistAlcohol = new GeneralReagents().setUnlocalizedName("DistAlcohol"); itemSeaWeed = new GeneralReagents().setUnlocalizedName("SeaWeed"); itemTapioraRoot = new GeneralReagents().setUnlocalizedName("TapioraRoot"); itemSyldrassilSeed = new GeneralReagents().setUnlocalizedName("SyldrassilSeed"); itemWolfHeart = new GeneralReagents().setUnlocalizedName("WolfHeart"); itemBlueHermetia = new GeneralReagents().setUnlocalizedName("BlueHermetia"); itemSandWeed = new GeneralReagents().setUnlocalizedName("SandWeed"); itemScorphasLeaf = new GeneralReagents().setUnlocalizedName("ScorphasLeaf"); //food GameRegistry.registerItem(itemBoarRibs = new GeneralFood("BoarRibs", 2, 0.2f, false, new PotionEffect(Potion.regeneration.id, 200, 0)).setAlwaysEdible(), "BoarRibs"); GameRegistry.registerItem(itemSourGoatCheese = new GeneralFood("SourGoatCheese", 1, 0.2f, false, new PotionEffect(Potion.regeneration.id, 200, 0)).setAlwaysEdible(), "SourGoatCheese"); GameRegistry.registerItem(itemBoiledClamMeat = new GeneralFood("BoiledClamMeat", 2, 0.2f, false, new PotionEffect(Potion.regeneration.id, 200, 0)).setAlwaysEdible(), "BoiledClamMeat"); GameRegistry.registerItem(itemSpicedChicken = new GeneralFood("SpicedChicken", 2, 0.2f, false, new PotionEffect(Potion.regeneration.id, 200, 0)).setAlwaysEdible(), "SpicedChicken"); GameRegistry.registerItem(itemFrostleafBerries = new GeneralFood("FrostleafBerries", 2, 0.2f, false, new PotionEffect(Potion.regeneration.id, 200, 0)).setAlwaysEdible(), "FrostleafBerries"); GameRegistry.registerItem(itemEggSunnySideUp = new GeneralFood("EggSunnySideUp",2, 0.2f,false,new PotionEffect(Potion.regeneration.id, 200, 0)).setAlwaysEdible(), "EggSunnySideUp"); GameRegistry.registerItem(itemGodricsEgg = new GeneralFood("GodricsEgg",2,0.2f,false,new PotionEffect(Potion.regeneration.id, 200, 2)).setAlwaysEdible(),"GodricsEgg"); GameRegistry.registerItem(itemSaltyBoarMeat = new GeneralFood("SaltyBoarMeat",2,0.8f,false,new PotionEffect(Potion.regeneration.id, 200, 0)).setAlwaysEdible(), "SaltyBoarMeat"); //potions //blocks GameRegistry.registerBlock(oreCopperOre,"CopperOre"); GameRegistry.registerBlock(oreSilverOre, "SilverOre"); GameRegistry.registerBlock(oreMithrilOre,"MithrilOre"); GameRegistry.registerBlock(oreSulfuronOre,"SulfuronOre"); GameRegistry.registerBlock(oreRubyOre,"RubyOre"); GameRegistry.registerBlock(blockCopperBlock,"CopperBlock"); GameRegistry.registerBlock(blockMithrilBlock,"MithrilBlock"); //decorative blocks... GameRegistry.registerBlock(blockBook1,"BlockBook1"); //currency GameRegistry.registerItem(currGoldCoin,"GoldCoin"); GameRegistry.registerItem(currGoldSack,"GoldSack"); GameRegistry.registerItem(currGoldStamp,"GoldStamp"); //books GameRegistry.registerItem(bookAlchBook1,"AlchBook"); //materials GameRegistry.registerItem(itemCopperIngot, "CopperIngot"); GameRegistry.registerItem(itemSilverIngot,"SilverIngot"); GameRegistry.registerItem(itemSteelIngot,"SteelIngot"); GameRegistry.registerItem(itemMithrilIngot, "MithrilIngot"); GameRegistry.registerItem(itemSulfuronIngot, "SulfuronIngot"); GameRegistry.registerItem(itemArcaniumIngot, "ArcaniumIngot"); GameRegistry.registerItem(itemRuby, "Ruby"); GameRegistry.registerItem(itemSapphire, "Sapphire"); GameRegistry.registerItem(itemSunstone, "Sunstone"); GameRegistry.registerItem(itemMoonstone, "Moonstone"); GameRegistry.registerItem(itemWaterMote, "WaterMote"); GameRegistry.registerItem(itemEarthMote, "EarthMote"); GameRegistry.registerItem(itemAirMote, "AirMote"); GameRegistry.registerItem(itemFireMote, "FireMote"); GameRegistry.registerItem(itemMagicDust, "MagicDust"); GameRegistry.registerItem(itemAbyssalCrystal, "AbyssalCrystal"); GameRegistry.registerItem(itemAncientSpark, "AncientSpark"); //general items GameRegistry.registerItem(itemSulfuronSlab, "SulfuronSlab"); GameRegistry.registerItem(itemBoarTusk, "BoarTusk"); GameRegistry.registerItem(itemWolfPelt, "WolfPelt"); GameRegistry.registerItem(itemVenomSac, "VenomSac"); GameRegistry.registerItem(itemShinyScales, "ShinyScales"); GameRegistry.registerItem(itemBackPack,"BackPack"); //reagents GameRegistry.registerItem(itemSaltPile,"SaltPile"); GameRegistry.registerItem(itemDistAlcohol,"DistAlcohol"); GameRegistry.registerItem(itemSeaWeed,"SeaWeed"); GameRegistry.registerItem(itemTapioraRoot,"TapioraRoot"); GameRegistry.registerItem(itemSyldrassilSeed,"SyédrassilSeed"); GameRegistry.registerItem(itemWolfHeart,"WolfHeart"); GameRegistry.registerItem(itemBlueHermetia, "BlueHermetia"); GameRegistry.registerItem(itemSandWeed,"SandWeed"); GameRegistry.registerItem(itemScorphasLeaf,"ScorphasLeaf"); } @Mod.EventHandler public void Initialization(FMLInitializationEvent event){ //metal,stone & gems GameRegistry.addSmelting(oreCopperOre,new ItemStack(itemCopperIngot, 2), 1); GameRegistry.addSmelting(oreSilverOre,new ItemStack(itemSilverIngot,1),3); GameRegistry.addSmelting(oreMithrilOre,new ItemStack(itemMithrilIngot, 1), 5); GameRegistry.addSmelting(oreSulfuronOre,new ItemStack(itemSulfuronIngot, 1), 7); GameRegistry.addSmelting(Items.iron_ingot,new ItemStack(itemSteelIngot, 1), 1); GameRegistry.addShapelessRecipe(new ItemStack(itemArcaniumIngot),new Object[]{itemMithrilIngot,itemMithrilIngot,itemAncientSpark,itemSulfuronIngot,itemSulfuronIngot}); //foods GameRegistry.addSmelting(Items.egg,new ItemStack(itemEggSunnySideUp,1),1); GameRegistry.addShapelessRecipe(new ItemStack(itemGodricsEgg), new Object[]{itemEggSunnySideUp,itemTapioraRoot}); GameRegistry.addShapelessRecipe(new ItemStack(itemSaltyBoarMeat), new Object[]{Items.cooked_porkchop,itemSaltPile}); //currency GameRegistry.addRecipe(new ItemStack(currGoldSack),new Object[]{"CCC","CCC","CCC",'C', currGoldCoin}); GameRegistry.addRecipe(new ItemStack(currGoldStamp),new Object[]{"CCC","CCC","CCC",'C', currGoldSack}); GameRegistry.addShapelessRecipe(new ItemStack(currGoldSack,9,0),new Object[]{currGoldStamp}); GameRegistry.addShapelessRecipe(new ItemStack(currGoldCoin,9,0),new Object[]{currGoldSack}); //entities //NPC EntityHandler.registerCreatures(DefHuVendor.class, "DefHumanVendor"); EntityHandler.registerCreatures(DefHuCitizen.class, "DefHumanCitizen"); //EntityHandler.registerModEntityWithEgg(DefHuCitizen.class, "DefHumanCiziten",0xE12072, 0x000000); //hostile EntityHandler.registerModEntityWithEgg(EntityBoar.class, "Boar", 0xE18222, 0x000000); EntityHandler.registerModEntityWithEgg(EntityGraymWolf.class, "GraymWolf", 0xE18519, 0x000000); EntityHandler.registerModEntityWithEgg(EntityDefNurgh.class, "Nurgh", 0xE182341, 0x000000); //tileentity GameRegistry.registerTileEntity(TileEntityBookBlock.class, "BookBlock1"); //handlers NetworkRegistry.INSTANCE.registerGuiHandler(this, new CommonProxy()); MinecraftForge.EVENT_BUS.register(new PlayerHandler()); } @Mod.EventHandler public void PostInitialization(FMLPostInitializationEvent event){ } } EntityHandler class: package net.aethoscraft.mod.handler; import java.util.Random; import net.aethoscraft.mod.Aethoscraft; import net.aethoscraft.mod.items.ItemCustSpwnEgg; import net.aethoscraft.mod.proxy.CommonProxy; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.item.Item; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; public class EntityHandler extends CommonProxy { public static int modEntityID = -1; public static void registerCreatures(Class entityClass, String name){ int entityID = EntityRegistry.findGlobalUniqueEntityId(); long x = name.hashCode(); Random random = new Random(x); int mainColor = random.nextInt() * 16777215; int subColor = random.nextInt() * 16777215; EntityRegistry.registerGlobalEntityID(entityClass, name, entityID); EntityRegistry.addSpawn(entityClass, 50, 2, 4,EnumCreatureType.creature); EntityRegistry.registerModEntity(entityClass, name, entityID, Aethoscraft.instance, 16, 1, true); EntityList.entityEggs.put(Integer.valueOf(entityID),new EntityList.EntityEggInfo(entityID, mainColor,subColor)); } public static void registerModEntityWithEgg(Class parEntityClass, String parEntityName,int parEggColor, int parEggSpotsColor) { EntityRegistry.registerModEntity(parEntityClass, parEntityName, ++modEntityID,Aethoscraft.instance, 80, 3, false); registerSpawnEgg(parEntityName, parEggColor, parEggSpotsColor); } public static void registerSpawnEgg(String parSpawnName, int parEggColor, int parEggSpotsColor) { Item itemSpawnEgg = new ItemCustSpwnEgg(parSpawnName, parEggColor, parEggSpotsColor).setUnlocalizedName("spawn_egg_"+parSpawnName.toLowerCase()).setTextureName("aethoscraft:spawn_egg"); GameRegistry.registerItem(itemSpawnEgg, "spawnEgg"+parSpawnName); } } One of my custom monsters: package net.aethoscraft.mod.entity.hostile; import java.util.Random; import net.aethoscraft.mod.Aethoscraft; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; 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.EntityAIWatchClosest; import net.minecraft.entity.boss.IBossDisplayData; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.DamageSource; import net.minecraft.world.World; public class EntityDefNurgh extends EntityMob implements IBossDisplayData { Random r = new Random(); public EntityDefNurgh(World world){ super(world); this.experienceValue = 3; this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false)); this.tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 5.0F)); this.targetTasks.addTask(0, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); this.setCustomNameTag("Greenskin Nurgh"); } protected void ApplyEntityAttributes(){ super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(5.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.01D); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(2.5D); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(11.0D); } @Override public boolean attackEntityAsMob(Entity entityTarget) { float attackDamage = (float)getEntityAttribute(SharedMonsterAttributes .attackDamage).getAttributeValue(); int knockbackModifier = 0; if (entityTarget instanceof EntityLivingBase) { attackDamage += EnchantmentHelper.getEnchantmentModifierLiving(this, (EntityLivingBase)entityTarget); knockbackModifier += EnchantmentHelper.getKnockbackModifier(this, (EntityLivingBase)entityTarget); } boolean isTargetHurt = entityTarget.attackEntityFrom(DamageSource .causeMobDamage(this), attackDamage); return isTargetHurt ; } @Override protected void attackEntity(Entity p_70785_1_, float p_70785_2_) { if (this.attackTime <= 0 && p_70785_2_ < 2.0F && p_70785_1_.boundingBox.maxY > this.boundingBox.minY && p_70785_1_.boundingBox.minY < this.boundingBox.maxY) { this.attackTime = 20; this.attackEntityAsMob(p_70785_1_); } } @Override protected boolean isAIEnabled() { return true; } protected Item getDropItem() { if(r.nextInt(100)<20 && r.nextInt(100)>5) return Aethoscraft.itemShinyScales; else if(r.nextInt(100)<5) return Aethoscraft.itemSeaWeed; else return null; } }
  3. I know it sound weird, but today I opened up eclipse and basically all of my mobs stopped working. Hostile mobs' movements speed just skyrocketed, they kinda teleport while the movement speed attribute is set to 0.1 or below. setCustomNameTag just doesn't appears. Friendly NPCs like vendors' trade GUI doesn't open up on interact. I didnt change anything since yesterday, my mobs worked perfectly then. I don't know if its some kind of coding problem/Eclipse/Forge, but it happened me before and reinstalling the whole thing solved the problem.Now I have so much code, rebuilding the whole stuff would take days. Please help me!
  4. Can u give me a good tutorial on how to avoid global entity IDs (i know that global IDs can only store 256 entities)?I mean that I wish to use custom IDs and if I'm not mistaken, spawn eggs don't work with custom IDs.
  5. Thanks for the source code, it definetly gonna help me!
  6. package net.Aethoscraft.mod.handlers; import java.util.Random; import net.Aethoscraft.mod.Aethoscraft; import net.minecraft.entity.EntityList; import net.minecraft.entity.EntityList.EntityEggInfo; import net.minecraft.entity.EnumCreatureType; import cpw.mods.fml.common.registry.EntityRegistry; public class EntityHandler { public static void registerMonsters(Class entityClass, String name){ int entityID = EntityRegistry.findGlobalUniqueEntityId(); long x = name.hashCode(); Random random = new Random(x); int mainColor = random.nextInt() * 16777215; int subColor = random.nextInt() * 16777215; EntityRegistry.registerGlobalEntityID(entityClass, name, entityID); EntityRegistry.addSpawn(entityClass, 50, 2, 4,EnumCreatureType.monster); EntityRegistry.registerModEntity(entityClass, name, entityID, Aethoscraft.instance, 16, 1, true); EntityList.entityEggs.put(Integer.valueOf(entityID),new EntityList.EntityEggInfo(entityID, mainColor,subColor)); } public static void registerCreatures(Class entityClass, String name){ int entityID = EntityRegistry.findGlobalUniqueEntityId(); long x = name.hashCode(); Random random = new Random(x); int mainColor = random.nextInt() * 16777215; int subColor = random.nextInt() * 16777215; EntityRegistry.registerGlobalEntityID(entityClass, name, entityID); EntityRegistry.addSpawn(entityClass, 50, 2, 4,EnumCreatureType.creature); EntityRegistry.registerModEntity(entityClass, name, entityID, Aethoscraft.instance, 16, 1, true); EntityList.entityEggs.put(Integer.valueOf(entityID),new EntityList.EntityEggInfo(entityID, mainColor,subColor)); } } In the main mod class I simply call the handler class above: EntityHandler.registerMonsters(EntityBoar.class, "Boar");
  7. I created a Boar mob and tried to make a Monster Spawner via command that spawns my mob. First I tried with /give @p mob_spawner 1 0 {BlockEntityTag:{EntityId:Skeleton}}. It gave me the basic spawner block which spawns pigs. After that I used /setblock ~ ~ ~ mob_spawner 0 destroy {EntityId:Boar}. It spawned the block with the little spinning boar with it, but spawned nothing. Is the problem in the code or I search somewhere else? Just to be sure here is my Boar.class package net.Aethoscraft.mod.entity.hostile; import java.util.Random; import net.Aethoscraft.mod.Aethoscraft; import net.minecraft.entity.Entity; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIHurtByTarget; import net.minecraft.entity.ai.EntityAINearestAttackableTarget; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.boss.IBossDisplayData; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.world.World; public class EntityBoar extends EntityMob implements IBossDisplayData { Random r = new Random(); public EntityBoar(World world) { super(world); this.experienceValue = 2; this.tasks.addTask(0, new EntityAIWatchClosest(this, EntityPlayer.class, 5.0F)); this.targetTasks.addTask(0, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); this.setCustomNameTag("Boar"); } protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(5.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.3D); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(1.5D); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(40.0D); } public boolean attackEntityAsMob(Entity p_70652_1_) { return true; } protected boolean isAIEnabled() { return true; } protected Item getDropItem() { if(r.nextInt(100)>20) return Items.leather; else return Aethoscraft.itemBoarTusk; } }
  8. I have a custom entity, which works fine except when it moves its head. It looks like this: http://www.kepfeltoltes.hu/view/151028/topic_www.kepfeltoltes.hu_.jpg His ears and nose doesn't move along with his head, which also has a pretty bad rotation point. Here are my codes. What should I change to make it work? package net.Aethoscraft.mod.renderer; import net.Aethoscraft.mod.Aethoscraft; import net.Aethoscraft.mod.entity.npc.EntityImpVendor; import net.Aethoscraft.mod.models.ModelImp; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.ResourceLocation; public class RenderImp extends RenderLiving{ private static final ResourceLocation DefTextures = new ResourceLocation(Aethoscraft.modid + ":" + "textures/model/entities/DefImp.png"); protected ModelImp modelEntity; public RenderImp(ModelImp model, float f) { super(model, f); modelEntity = ((ModelImp)mainModel); } protected void renderEquippedItems(EntityImpVendor entity, float par2) { super.renderEquippedItems((EntityLiving)entity, par2); } protected void renderEquippedItems(EntityLivingBase entityLivingBase, float par2) { this.renderEquippedItems((EntityImpVendor)entityLivingBase, par2); } @Override protected ResourceLocation getEntityTexture(Entity p_110775_1_) { return this.DefTextures; }} package net.Aethoscraft.mod.models; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; import net.minecraft.util.MathHelper; public class ModelImp extends ModelBase { //fields ModelRenderer RightLeg; ModelRenderer LeftLeg; ModelRenderer Chest; ModelRenderer Head; ModelRenderer LeftArm; ModelRenderer RightArm; ModelRenderer Nose; ModelRenderer LeftEar; ModelRenderer RightEar; public ModelImp() { textureWidth = 64; textureHeight = 64; RightLeg = new ModelRenderer(this, 0, 9); RightLeg.addBox(0F, 0F, 0F, 2, 6, 2); RightLeg.setRotationPoint(-4F, 18F, 0F); RightLeg.setTextureSize(64, 64); RightLeg.mirror = true; setRotation(RightLeg, 0F, 0F, 0F); LeftLeg = new ModelRenderer(this, 0, 9); LeftLeg.addBox(0F, 0F, 0F, 2, 6, 2); LeftLeg.setRotationPoint(1F, 18F, 0F); LeftLeg.setTextureSize(64, 64); LeftLeg.mirror = true; setRotation(LeftLeg, 0F, 0F, 0F); Chest = new ModelRenderer(this, 0, 0); Chest.addBox(0F, 0F, 0F, 7, 7, 2); Chest.setRotationPoint(-4F, 11F, 0F); Chest.setTextureSize(64, 64); Chest.mirror = true; setRotation(Chest, 0F, 0F, 0F); Head = new ModelRenderer(this, 0, 17); Head.addBox(0F, 0F, 0F, 5, 4, 4); Head.setRotationPoint(-3F, 7F, -1F); Head.setTextureSize(64, 64); Head.mirror = true; setRotation(Head, 0F, 0F, 0F); LeftArm = new ModelRenderer(this, 0, 25); LeftArm.addBox(0F, 0F, 0F, 2, 6, 2); LeftArm.setRotationPoint(3F, 11F, 0F); LeftArm.setTextureSize(64, 64); LeftArm.mirror = true; setRotation(LeftArm, 0F, 0F, 0F); RightArm = new ModelRenderer(this, 0, 25); RightArm.addBox(0F, 0F, 0F, 2, 6, 2); RightArm.setRotationPoint(-6F, 11F, 0F); RightArm.setTextureSize(64, 64); RightArm.mirror = true; setRotation(RightArm, 0F, 0F, 0F); Nose = new ModelRenderer(this, 9, 10); Nose.addBox(0F, 0F, 0F, 1, 1, 2); Nose.setRotationPoint(-1F, 9F, -3F); Nose.setTextureSize(64, 64); Nose.mirror = true; setRotation(Nose, 0F, 0F, 0F); LeftEar = new ModelRenderer(this, 18, 25); LeftEar.addBox(0F, 0F, 0F, 0, 2, 5); LeftEar.setRotationPoint(2F, 7F, 0F); LeftEar.setTextureSize(64, 64); LeftEar.mirror = true; setRotation(LeftEar, 0F, 0.8551081F, 0F); RightEar = new ModelRenderer(this, 8, 25); RightEar.addBox(0F, 0F, 0F, 0, 2, 5); RightEar.setRotationPoint(-3F, 7F, 0F); RightEar.setTextureSize(64, 64); RightEar.mirror = true; setRotation(RightEar, 0F, -0.8551081F, 0F); } 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); RightLeg.render(f5); LeftLeg.render(f5); Chest.render(f5); Head.render(f5); LeftArm.render(f5); RightArm.render(f5); Nose.render(f5); LeftEar.render(f5); RightEar.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); this.Head.rotateAngleY = f3 / (180F / (float)Math.PI); this.Head.rotateAngleX = f4 / (180F / (float)Math.PI); this.RightArm.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F; this.LeftArm.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F; this.RightArm.rotateAngleZ = 0.0F; this.LeftArm.rotateAngleZ = 0.0F; this.RightLeg.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1; this.LeftLeg.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1; this.RightLeg.rotateAngleY = 0.0F; this.LeftLeg.rotateAngleY = 0.0F; } }
  9. I'm planning to add some RPG skills to my mod (strength,agility... stuff like that), but I dont know how to do that. What classes I should start check out or are there any tutorials about this topic?
  10. I used the same code as the original mod class, where things worked perfectly, I had problems with a custom mobs movement when I thought that cleaning the project would solve the problem (It was a bad idea, I know.),then everything went wrong somehow. After the cleanup modloader doesn't even recognised my mod. Now as I said FML says is is loaded, but nothing appears: I wrote a recipe for my coin and when I try to craft it nothing happens. It cannot be found in the misc tab, and cant find any matches when I try to search for it in the all items tab (its name hasn't been declared in the lang file, so I search as item.GoldCoin.name, but 0 match). Here is my main mod class: package net.Aethoscraft.mod; import net.Aethoscraft.mod.currency.GeneralCurrency; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Instance; 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; @Mod(modid = Aethoscraft.modid, version = Aethoscraft.version) public class Aethoscraft { public static final String modid = "Aethoscraft"; public static final String version = "Alpha v0.02"; @Instance(modid) public static Aethoscraft instance; //currency public static Item currGoldCoin; public void PreInitialization(FMLPreInitializationEvent event){ currGoldCoin = new GeneralCurrency().setUnlocalizedName("GoldCoin"); System.out.println("Output"); GameRegistry.registerItem(currGoldCoin,"GoldCoin"); } public void Initialization(FMLInitializationEvent event){ GameRegistry.addShapelessRecipe(new ItemStack(Items.gold_nugget),new Object[]{currGoldCoin}); } public void PostInitialization(FMLPostInitializationEvent event){ } } Here is my GeneralCurrency class: public class GeneralCurrency extends Item { public GeneralCurrency() { this.setCreativeTab(CreativeTabs.tabMisc); } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister iconRegister) { this.itemIcon = iconRegister.registerIcon(Aethoscraft.modid + ":"+this.getUnlocalizedName().substring(5)); } } And here is the console output: [12:46:00] [main/INFO] [GradleStart]: Extra: [] [12:46:01] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Hextor/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [12:46:01] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [12:46:01] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [12:46:01] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [12:46:01] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [12:46:01] [main/INFO] [FML]: Forge Mod Loader version 7.99.32.1517 for Minecraft 1.7.10 loading [12:46:01] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_65, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_65 [12:46:01] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:46:01] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [12:46:01] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [12:46:01] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [12:46:01] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [12:46:01] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [12:46:01] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:46:01] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [12:46:01] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [12:46:01] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [12:46:02] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [12:46:07] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:46:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [12:46:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [12:46:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:46:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [12:46:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [12:46:09] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [12:46:13] [main/INFO]: Setting user: Player279 [12:46:17] [Client thread/INFO]: LWJGL Version: 2.9.1 [12:46:21] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ---- // Hey, that tickles! Hehehe! Time: 2015.10.24. 12:46 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR 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 7 (amd64) version 6.1 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 946476160 bytes (902 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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: GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.4.13283 Compatibility Profile Context 14.501.1003.0' Renderer: 'AMD Radeon HD 7340 Graphics' [12:46:22] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [12:46:22] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1517 Initialized [12:46:22] [Client thread/INFO] [FML]: Replaced 183 ore recipies [12:46:22] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [12:46:24] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [12:46:24] [Client thread/INFO] [FML]: Searching C:\Users\Hextor\Desktop\Aethoscraft\eclipse\mods for mods [12:46:25] [Client thread/INFO] [Aethoscraft]: Mod Aethoscraft is missing the required element 'name'. Substituting Aethoscraft [12:47:01] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [12:47:01] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Aethoscraft] at CLIENT [12:47:01] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, Aethoscraft] at SERVER [12:47:04] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Aethoscraft [12:47:04] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: Aethoscraft/ in C:\Users\Hextor\Desktop\Aethoscraft\bin [12:47:04] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [12:47:04] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [12:47:04] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [12:47:05] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [12:47:05] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:47:05] [Client thread/INFO] [FML]: Applying holder lookups [12:47:05] [Client thread/INFO] [FML]: Holder lookups applied [12:47:05] [Client thread/INFO] [FML]: Injecting itemstacks [12:47:05] [Client thread/INFO] [FML]: Itemstack injection complete [12:47:05] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [12:47:05] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem... [12:47:06] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [12:47:06] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:47:11] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [12:47:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [12:47:11] [sound Library Loader/INFO]: Sound engine started [12:47:13] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas [12:47:13] [Client thread/INFO]: Created: 16x16 textures/items-atlas [12:47:13] [Client thread/INFO] [FML]: Injecting itemstacks [12:47:13] [Client thread/INFO] [FML]: Itemstack injection complete [12:47:13] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [12:47:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Aethoscraft [12:47:14] [Client thread/WARN]: ResourcePack: ignored non-lowercase namespace: Aethoscraft/ in C:\Users\Hextor\Desktop\Aethoscraft\bin [12:47:16] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [12:47:17] [Client thread/INFO]: Created: 256x256 textures/items-atlas [12:47:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [12:47:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down... [12:47:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [12:47:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [12:47:17] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [12:47:17] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem... [12:47:17] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [12:47:17] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:47:18] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [12:47:18] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [12:47:18] [sound Library Loader/INFO]: Sound engine started [12:47:46] [server thread/INFO]: Starting integrated minecraft server version 1.7.10 [12:47:46] [server thread/INFO]: Generating keypair [12:47:47] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [12:47:47] [server thread/INFO] [FML]: Applying holder lookups [12:47:47] [server thread/INFO] [FML]: Holder lookups applied [12:47:47] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@61c9bd54) [12:47:47] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@61c9bd54) [12:47:47] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@61c9bd54) [12:47:47] [server thread/INFO]: Preparing start region for level 0 [12:47:48] [server thread/INFO]: Preparing spawn area: 17% [12:47:49] [server thread/INFO]: Preparing spawn area: 64% [12:47:50] [server thread/INFO]: Changing view distance to 12, from 10 [12:47:53] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2598ms behind, skipping 51 tick(s) [12:47:53] [Netty Client IO #0/INFO] [FML]: Server protocol version 2 [12:47:53] [Netty IO #1/INFO] [FML]: Client protocol version 2 [12:47:53] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.99.99,Aethoscraft@Alpha v0.02,Forge@10.13.4.1517,mcp@9.05 [12:47:53] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [12:47:53] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [12:47:53] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [12:47:54] [server thread/INFO] [FML]: [server thread] Server side modded connection established [12:47:54] [server thread/INFO]: Player279[local:E:fae73b12] logged in with entity id 208 at (106.84243047064379, 4.0, -404.48509800754687) [12:47:54] [server thread/INFO]: Player279 joined the game [12:48:15] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 6701ms behind, skipping 134 tick(s) [12:48:19] [server thread/INFO]: Player279 has just earned the achievement [Taking Inventory] [12:48:19] [Client thread/INFO]: [CHAT] Player279 has just earned the achievement [Taking Inventory] [12:48:35] [Client thread/INFO]: Stopping! [12:48:35] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [12:48:35] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down... [12:48:35] [server thread/INFO]: Stopping server [12:48:35] [server thread/INFO]: Saving players [12:48:35] [server thread/INFO]: Saving worlds [12:48:35] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [12:48:35] [server thread/INFO]: Saving chunks for level 'New World'/Nether [12:48:35] [server thread/INFO]: Saving chunks for level 'New World'/The End [12:48:36] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [12:48:36] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
  11. I clean my project a while ago and got a bunch of various problems (post here: http://www.minecraftforge.net/forum/index.php/topic,34530.0.html). It hasn't been solved and I didnt get any answer to my problem so I thought reinstalling eclipse and forge might solve the issue. It didn't work: Basically the my problem is that I create a custom item/mob anything, and it should work as intended (I'm not a complete newbie to modding/programming ) and when I run eclipse, my mod gets loaded, I see it in the Mod part of the main menu, yet nothing appears in-game. E.g.: I created a "gold coin" item, set to appear in misc tab yet it didn't appear at all.Same issue with everything else. Please help me!
  12. I deleted the corrupted JAR and ran sDecW and stuff like that. After finishing there was and error: project "minecraft" is missing required source folder src/Aethoscraft, solved that and now there are no problems or error messages at all, but the problem still exists.
  13. I ran clearCache and etc., everything went well. When I start the game forge says i have 4 mods loaded (my own included), but nothing appears in-game (besides vanilla content ofc.) When I run the game i get the same error message, what I've posted before.
  14. I placed the code into a default folder. (I made it about a year ago, the way that a youtube guide told me, gradlew setupDecomp... etc) The run configuration says GradleStart is the main class. I actually managed to get an error message: [18:44:29] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [18:44:29] [Client thread/INFO] [FML]: Searching C:\Users\Hextor\Desktop\Aethoscraft\eclipse\mods for mods [18:44:43] [Client thread/ERROR] [FML]: Unable to read a class file correctly java.lang.ArrayIndexOutOfBoundsException: 1869638089 at org.objectweb.asm.ClassReader.readInt(ClassReader.java:2340) ~[asm-debug-all-5.0.3.jar:5.0.3] at org.objectweb.asm.ClassReader.getAttributes(ClassReader.java:2198) ~[asm-debug-all-5.0.3.jar:5.0.3] at org.objectweb.asm.ClassReader.accept(ClassReader.java:565) ~[asm-debug-all-5.0.3.jar:5.0.3] at org.objectweb.asm.ClassReader.accept(ClassReader.java:506) ~[asm-debug-all-5.0.3.jar:5.0.3] at cpw.mods.fml.common.discovery.asm.ASMModParser.<init>(ASMModParser.java:53) [ASMModParser.class:?] at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:72) [JarDiscoverer.class:?] at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?] at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?] at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?] at cpw.mods.fml.common.Loader.identifyMods(Loader.java:362) [Loader.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:487) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:206) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] [18:44:44] [Client thread/ERROR] [FML]: There was a problem reading the entry com/google/common/io/MultiInputStream.class in the jar C:\Users\Hextor\.gradle\caches\modules-2\files-2.1\com.google.guava\guava\17.0\9c6ef172e8de35fd8d4d8783e4821e57cdef7445\guava-17.0.jar - probably a corrupt zip
×
×
  • Create New...

Important Information

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