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

BoonieQuafter-CrAfTeR

Members
  • Posts

    337
  • Joined

  • Last visited

Everything posted by BoonieQuafter-CrAfTeR

  1. yeah there exact, the problem is that the item doesn't even do anything, like its not even spawning the entity that its supposed to..
  2. this code isn't working and I cant figure out why, but I think its how I wrote the icon code so, can you guys take a look? package com.OlympiansMod.Item; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.init.Items; import net.minecraft.item.EnumAction; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.ArrowLooseEvent; import net.minecraftforge.event.entity.player.ArrowNockEvent; import com.OlympiansMod.entity.EntityMasterBolt; import com.OlympiansMod.entity.EntityThunderBolt; import com.OlympiansMod.lib.Refstrings; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class MasterBolt extends Item{ @SideOnly(Side.CLIENT) private IIcon[] iconArray; private static final String __OBFID = "CL_00001777"; public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer player, int par1) { int j = this.getMaxItemUseDuration(stack) - par1; ArrowLooseEvent event = new ArrowLooseEvent(player, stack, j); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return; } j = event.charge; if(player.capabilities.isCreativeMode){ if(!world.isRemote){ world.spawnEntityInWorld(new EntityMasterBolt(world)); } } return; } public boolean isFull3D(){ return true; } public ItemStack onEaten(ItemStack stack, World world, EntityPlayer player) { return stack; } public int getMaxItemUseDuration(ItemStack stack) { return 72000; } public EnumAction getItemUseAction(ItemStack stack) { return EnumAction.bow; } public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { ArrowNockEvent event = new ArrowNockEvent(player, stack); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return event.result; } return stack; } IIcon[] iconArray1; @Override @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister iconRegister) { super.registerIcons(iconRegister); iconArray = new IIcon[10]; iconArray[0] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_0"); iconArray[1] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_1"); iconArray[2] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_2"); iconArray[3] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_3"); iconArray[4] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_4"); iconArray[5] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_5"); iconArray[6] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_6"); iconArray[7] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_7"); iconArray[8] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_8"); iconArray[9] = iconRegister.registerIcon(Refstrings.MODID + ":MasterBolt_9"); } @Override @SideOnly(Side.CLIENT) public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) { if (usingItem == null) { return itemIcon; } int ticksInUse = stack.getMaxItemUseDuration() - useRemaining; if (ticksInUse > 65) { return iconArray[9]; } else if (ticksInUse > 62) { return iconArray[8]; } else if (ticksInUse > 59) { return iconArray[7]; } else if (ticksInUse > 56) { return iconArray[6]; } else if (ticksInUse > 53) { return iconArray[5]; } else if (ticksInUse > 50) { return iconArray[4]; } else if (ticksInUse > 47) { return iconArray[3]; } else if (ticksInUse > 44) { return iconArray[0]; } else if (ticksInUse > 41) { return iconArray[2]; } else if (ticksInUse > 38) { return iconArray[1]; }else if (ticksInUse > 35) { return iconArray[9]; } else if (ticksInUse > 32) { return iconArray[8]; } else if (ticksInUse > 29) { return iconArray[7]; } else if (ticksInUse > 26) { return iconArray[6]; } else if (ticksInUse > 23) { return iconArray[5]; } else if (ticksInUse > 20) { return iconArray[4]; } else if (ticksInUse > 17) { return iconArray[3]; } else if (ticksInUse > 15) { return iconArray[0]; } else if (ticksInUse > 10) { return iconArray[2]; } else if (ticksInUse > 7) { return iconArray[1]; } else if (ticksInUse > 0) { return iconArray[0]; } else { return itemIcon; } } } thanks.
  3. ok so Im making a ranged mob that, well believe or not, attacks with ranged attacks. Is there any way to change the mobs attack cycle from ranged to melee, like every two ranged attacks it attacks with a melee attack. So yeah thanks. Btw I mean cycle like when the witch throws different potions. also yes I have looked at the witch code, but I was unable to come to a conclusion on whether or not it is possible to change a mobs attack ai.
  4. I am making a set dead method for my mob, basically its going to be part of a death animation. on death the mob is supposed to spawn particles. problem is it doesn't work. public void setDead(){ if(!this.worldObj.isRemote){ for (int i = 0; i < 2; ++i) { worldObj.spawnParticle("lava", this.posX, this.posY, this.posZ, 0.0F, 0.0F, 0.0F); } } super.setDead(); } }
  5. I meant what super jedi said I failed and my eclipse was acting up, PLUS did you even read my thread! I said I wanted to GET the health when my entity reached 1000 health or lower. please work on reading, and my ide didn't let me do it, when I said that it that it DIDN'T Seem to work I meant that It WASNT WORKING. There for I was asking why it WASN'T working, having said that Superjedi(great name btw) has indeed corrected my error and solved the problem. do you look at the thread for less than 2 seconds or something? Btw this is post in reply specifically to TheRealMinecrafter, which you already know. PS. why do you think that if (this.getHealth() <= 1000){ sets the health, it gets it..
  6. Basically I am trying to make an event happen when my entity gets to a certain health or lower than it, but I cant figure out how to do it. I have tried doing this. if(this.gethealth = 1000<0){ but gethealth doesn't seem to work. Thanks in advance.
  7. Change the icon time! @Override @SideOnly(Side.CLIENT) public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) { if (usingItem == null) { return itemIcon; } int ticksInUse = stack.getMaxItemUseDuration() - useRemaining; if (ticksInUse > 5) { return iconArray[2]; } else if (ticksInUse > 4) { return iconArray[1]; } else if (ticksInUse > 0) { return iconArray[0]; } else { return itemIcon; }
  8. also how to you call on the entitys health when they get to a certain health.
  9. so as you guys probably know from previous posts, I am constantly trying to make an attack animation for my ranged mob. the problem is, Im not sure how to implement an attack timer for a ranged mob so, yeah can someone explain it to me please. here is my current code: package com.OlympiansMod.entity; import com.OlympiansMod.Item.ModItems; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.IRangedAttackMob; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIArrowAttack; import net.minecraft.entity.ai.EntityAIAttackOnCollide; import net.minecraft.entity.ai.EntityAIHurtByTarget; import net.minecraft.entity.ai.EntityAILookIdle; import net.minecraft.entity.ai.EntityAIMoveTowardsTarget; 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.boss.BossStatus; import net.minecraft.entity.boss.IBossDisplayData; import net.minecraft.entity.monster.EntityGolem; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.monster.EntityWitch; import net.minecraft.entity.monster.IMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityPotion; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.util.DamageSource; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class Zeus extends EntityGolem implements IBossDisplayData, IRangedAttackMob{ private EntityAIArrowAttack aiArrowAttack = new EntityAIArrowAttack(this, 1.0D, 20, 60, 15.0F); private EntityAIAttackOnCollide aiAttackOnCollide = new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.2D, false); private int attackTimer; private static final String __OBFID = "CL_00001697"; public Zeus(World world) { super(world); { this.isImmuneToFire = true; this.setHealth(this.getMaxHealth()); this.experienceValue = 10000; this.setSize(1.1F, 2F); this.getNavigator().setAvoidsWater(true); this.tasks.addTask(1, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIWander(this, 0.5D)); this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 1.0F)); this.tasks.addTask(3, new EntityAILookIdle(this)); this.tasks.addTask(5, new EntityAIMoveTowardsTarget(this, 0.7D, 100.0F)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector)); if (world != null && !world.isRemote) { this.setCombatTask(); } } } public void onLivingUpdate() { super.onLivingUpdate(); BossStatus.setBossStatus(this, true); if (!this.worldObj.isRemote) { if (this.getAggressive()) { if (this.attackTimer-- <= 0) this.attackTimer = 1; { } }} } public boolean isAIEnabled(){ return true; } @Override protected void entityInit() { super.entityInit(); dataWatcher.addObject(21, (byte) 0); } public void setAggressive(boolean par2) { this.getDataWatcher().updateObject(21, Byte.valueOf((byte)(par2 ? 1 : 0))); } public boolean getAggressive() { return this.getDataWatcher().getWatchableObjectByte(21) == 1; } // protected void addRandomArmor() //{ // super.addRandomArmor(); //this.setCurrentItemOrArmor(0, new ItemStack(ModItems.MasterBolt)); //} protected void applyEntityAttributes(){ super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(70.0D); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(5000.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.5D); } public void setCombatTask() { { this.tasks.addTask(4, this.aiArrowAttack); } { this.tasks.addTask(4, this.aiAttackOnCollide); } } @Override public void attackEntityWithRangedAttack(EntityLivingBase entity, float par1) { if (!this.getAggressive()) { EntityMasterBolt Bolt = new EntityMasterBolt(this.worldObj, this); Bolt.rotationPitch -= -20.0F; double d0 = entity.posX + entity.motionX - this.posX; double d1 = entity.posY + (double)entity.getEyeHeight() - 1.900000023841858D - this.posY; double d2 = entity.posZ + entity.motionZ - this.posZ; float f1 = MathHelper.sqrt_double(d0 * d0 + d2 * d2); Bolt.setThrowableHeading(d0, d1 + (double)(f1 * 0.2F), d2, 0.75F, 8.0F); this.worldObj.spawnEntityInWorld(Bolt); } } @SideOnly(Side.CLIENT) public void handleHealthUpdate(byte p_70103_1_) { if (p_70103_1_ == 15) { this.attackTimer = 1; for (int i = 0; i < this.rand.nextInt(35) + 10; ++i) { this.worldObj.spawnParticle("witchMagic", this.posX + this.rand.nextGaussian() * 0.12999999523162842D, this.boundingBox.maxY + 0.5D + this.rand.nextGaussian() * 0.12999999523162842D, this.posZ + this.rand.nextGaussian() * 0.12999999523162842D, 0.0D, 0.0D, 0.0D); } } else { super.handleHealthUpdate(p_70103_1_); } } @SideOnly(Side.CLIENT) public int getattackTimer() { return this.attackTimer; } protected void dropFewItems(boolean par1, int par2) { this.dropItem(ModItems.MasterBolt, 1); } } thanks
  10. you guys don't even.. the only person who has helped me at all is Erino, he actually(well, maybe) read my post. so yeah I have alternative ideas so its no biggy thanks anyway.
  11. I don't think so.. I have a onUpdate method that constantly spawns the particles, and you can see the results of spawning one of them just fine. Like so: public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5){ super.onUpdate(stack, world, entity, par4, par5); { EntityPlayer player = (EntityPlayer) entity; ItemStack equipped = player.getCurrentEquippedItem(); if(equipped == stack){ world.spawnParticle("witchMagic", player.posX - 0.2, player.posY - 2, player.posZ - .5, 0f, 0f, 0f); world.spawnParticle("witchMagic", player.posX - 0.2, player.posY - 2, player.posZ + .5, 0f, 0f, 0f); world.spawnParticle("witchMagic", player.posX + 0.2, player.posY - 2, player.posZ - .5, 0f, 0f, 0f); world.spawnParticle("witchMagic", player.posX + 0.2, player.posY - 2, player.posZ + .5, 0f, 0f, 0f); world.spawnParticle("witchMagic", player.posX - 0.2, player.posY - 2, player.posZ - .5, 0f, 0f, 0f); world.spawnParticle("witchMagic", player.posX + 0.2, player.posY - 2, player.posZ + .5, 0f, 0f, 0f); world.spawnParticle("witchMagic", player.posX - 0.5, player.posY - 2, player.posZ, 0f, 0f, 0f); world.spawnParticle("witchMagic", player.posX + 0.5, player.posY - 2, player.posZ, 0f, 0f, 0f); } } } and yes I know that I am spawning the particle 5 blocks into the ground, but it doesn't make a difference to not do that plus, the lava particles are huge so it will be very noticeable.
  12. The title says it all. I want my item to spawn particles when its being used, why doesn't this work? public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer player, int p_77615_4_) { int j = this.getMaxItemUseDuration(stack) - p_77615_4_; ArrowLooseEvent event = new ArrowLooseEvent(player, stack, j); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return; } j = event.charge; if(!player.capabilities.isCreativeMode){ world.spawnParticle("lava", player.posX - 0.2, player.posY - 5, player.posZ - .5, 0f, 0f, 0f); world.spawnParticle("lava", player.posX - 0.2, player.posY - 5, player.posZ + .5, 0f, 0f, 0f); world.spawnParticle("lava", player.posX + 0.2, player.posY - 5, player.posZ - .5, 0f, 0f, 0f); world.spawnParticle("lava", player.posX + 0.2, player.posY - 5, player.posZ + .5, 0f, 0f, 0f); world.spawnParticle("lava", player.posX, player.posY - 5, player.posZ, 0f, 0f, 0f); world.spawnParticle("lava", player.posX - 0.2, player.posY- 5, player.posZ, 0f, 0f, 0f); world.spawnParticle("lava", player.posX + 0.2, player.posY - 5, player.posZ, 0f, 0f, 0f); world.spawnParticle("lava", player.posX - 0.5, player.posY - 5, player.posZ - .5, 0f, 0f, 0f); world.spawnParticle("lava", player.posX + 0.5, player.posY - 5, player.posZ + .5, 0f, 0f, 0f); player.attackEntityFrom(DamageSource.causeIndirectMagicDamage(player, player), 10); stack.damageItem(1, player); Thanks in advance.
  13. actually never mind about every thing above, I failed because I needed a super because the method was being overridden. and I added an IIcon[] iconArray1; and it works just fine other than when its in use the icons don't work. why is this exactly?
  14. so yeah, basically I am making a custom bow which is pretty simple in my eyes, my problem is that my minecraft I crashing on this line of code "return iconArray[0];" im not sure why it not returning the icon array but here is the code and crash report. Thanks. package com.OlympiansMod.Item; import com.OlympiansMod.lib.Refstrings; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.init.Items; import net.minecraft.item.EnumAction; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.ArrowLooseEvent; import net.minecraftforge.event.entity.player.ArrowNockEvent; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class CrossBow extends Item{ public static final String[] bowPullIconNameArray = new String[] {"Crossbow_0", "Crossbow_1", "Crossbow_2"}; @SideOnly(Side.CLIENT) private IIcon[] iconArray; private static final String __OBFID = "CL_00001777"; public CrossBow() { this.maxStackSize = 1; this.setMaxDamage(384); this.setCreativeTab(CreativeTabs.tabCombat); } public void onPlayerStoppedUsing(ItemStack stack, World world, EntityPlayer player, int p_77615_4_) { int j = this.getMaxItemUseDuration(stack) - p_77615_4_; ArrowLooseEvent event = new ArrowLooseEvent(player, stack, j); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return; } j = event.charge; if(player.capabilities.isCreativeMode||player.inventory.consumeInventoryItem(Items.arrow)) if(!world.isRemote){ world.spawnEntityInWorld(new EntityArrow(world, player, 10)); } return; } public int getMaxItemUseDuration(ItemStack stack) { return 72000; } public EnumAction getItemUseAction(ItemStack stack) { return EnumAction.bow; } public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) { ArrowNockEvent event = new ArrowNockEvent(player, stack); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return event.result; } if (player.capabilities.isCreativeMode || player.inventory.hasItem(Items.arrow)) { player.setItemInUse(stack, this.getMaxItemUseDuration(stack)); } return stack; } public int getItemEnchantability() { return 1; } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister iconRegister) { IIcon[] iconArray; iconArray = new IIcon[4]; iconArray[0] = iconRegister.registerIcon(Refstrings.MODID + ":textures/items/Crossbow_0"); iconArray[1] = iconRegister.registerIcon(Refstrings.MODID + ":textures/items/Crossbow_1"); iconArray[2] = iconRegister.registerIcon(Refstrings.MODID + ":textures/items/Crossbow_2"); } @Override @SideOnly(Side.CLIENT) public IIcon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining) { if (usingItem == null) { return itemIcon; } int ticksInUse = stack.getMaxItemUseDuration() - useRemaining; if (ticksInUse > 0) { return iconArray[0]; } else if (ticksInUse > 13) { return iconArray[1]; } else if (ticksInUse > 17) { return iconArray[2]; } else { return itemIcon; } } } Crash report A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.OlympiansMod.Item.CrossBow.getIcon(CrossBow.java:117) at net.minecraft.entity.player.EntityPlayer.getItemIcon(EntityPlayer.java:2070) at net.minecraft.client.renderer.ItemRenderer.renderItem(ItemRenderer.java:106) at net.minecraft.client.renderer.ItemRenderer.renderItemInFirstPerson(ItemRenderer.java:511) at net.minecraft.client.renderer.EntityRenderer.renderHand(EntityRenderer.java:797) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1437) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player168'/339, l='MpServer', x=102.69, y=65.62, z=206.93]] Chunk stats: MultiplayerChunkCache: 25, 25 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (224,64,248), Chunk: (at 0,4,8 in 14,15; contains blocks 224,0,240 to 239,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 28567 game time, 15981 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 34 total; [EntityChicken['Chicken'/64, l='MpServer', x=76.41, y=71.00, z=182.41], EntitySkeleton['Skeleton'/65, l='MpServer', x=73.88, y=68.00, z=195.38], EntityXPOrb['Experience Orb'/133, l='MpServer', x=123.44, y=64.25, z=237.29], EntityBat['Bat'/75, l='MpServer', x=81.36, y=43.78, z=160.50], EntityChicken['Chicken'/76, l='MpServer', x=84.41, y=71.00, z=167.10], EntitySkeleton['Skeleton'/77, l='MpServer', x=83.72, y=66.00, z=189.78], EntityChicken['Chicken'/78, l='MpServer', x=80.94, y=72.00, z=178.78], EntitySkeleton['Skeleton'/145, l='MpServer', x=135.22, y=72.00, z=176.31], EntityChicken['Chicken'/87, l='MpServer', x=108.42, y=68.00, z=162.53], EntityCreeper['Creeper'/88, l='MpServer', x=109.84, y=14.00, z=177.88], EntityChicken['Chicken'/89, l='MpServer', x=108.56, y=70.00, z=178.44], EntityChicken['Chicken'/90, l='MpServer', x=100.59, y=64.00, z=205.47], EntityArrow['arrow'/91, l='MpServer', x=108.50, y=64.00, z=203.88], EntityClientPlayerMP['Player168'/339, l='MpServer', x=102.69, y=65.62, z=206.93], EntityArrow['arrow'/92, l='MpServer', x=104.59, y=64.00, z=203.13], EntityArrow['arrow'/93, l='MpServer', x=104.38, y=64.00, z=203.28], EntityArrow['arrow'/94, l='MpServer', x=104.81, y=64.00, z=204.25], EntityArrow['arrow'/95, l='MpServer', x=104.34, y=64.00, z=204.34], EntityArrow['arrow'/96, l='MpServer', x=104.00, y=64.00, z=203.91], EntityArrow['arrow'/97, l='MpServer', x=104.31, y=64.00, z=204.66], EntityArrow['arrow'/98, l='MpServer', x=103.94, y=64.00, z=204.34], EntityArrow['arrow'/99, l='MpServer', x=104.31, y=64.00, z=204.75], EntityArrow['arrow'/100, l='MpServer', x=104.03, y=64.00, z=204.44], EntityArrow['arrow'/101, l='MpServer', x=103.63, y=64.00, z=204.06], EntityArrow['arrow'/102, l='MpServer', x=104.03, y=64.00, z=204.41], EntityArrow['arrow'/103, l='MpServer', x=103.75, y=64.00, z=204.19], EntityArrow['arrow'/104, l='MpServer', x=103.59, y=64.00, z=204.16], EntityArrow['arrow'/105, l='MpServer', x=103.59, y=64.00, z=204.31], EntityArrow['arrow'/106, l='MpServer', x=103.22, y=64.00, z=203.91], EntityXPOrb['Experience Orb'/107, l='MpServer', x=93.83, y=58.25, z=232.25], EntityXPOrb['Experience Orb'/108, l='MpServer', x=98.75, y=57.81, z=236.76], EntityZombie['Zombie'/61, l='MpServer', x=69.56, y=71.00, z=165.66], EntitySpider['Spider'/62, l='MpServer', x=70.50, y=71.00, z=164.41], EntityZombie['Zombie'/63, l='MpServer', x=74.06, y=43.00, z=181.53]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556) at net.minecraft.client.Minecraft.run(Minecraft.java:980) at net.minecraft.client.main.Main.main(Main.java:164) 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_45, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 673182128 bytes (641 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 13, tallocated: 95 FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available theolympiansmod{0.1} [The Olympians Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: AMD Radeon HD 8400 GL version 4.3.12804 Compatibility Profile Context 13.352.1004.1007, 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: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) [22:41:25] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Boone.mcfuzz\Desktop\Olympians Mod\eclipse\.\crash-reports\crash-2015-06-30_22.41.25-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
  15. so then I have to make an entity registry for every one of my entitys then right?
  16. so you wan m to register my entitys like this? package com.OlympiansMod.entity; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.biome.BiomeGenBase; import com.OlympiansMod.Main.MainRegistry; import com.sun.xml.internal.bind.v2.model.core.ID; import cpw.mods.fml.common.registry.EntityRegistry; public class MEntity { public static void MainRegistry(){ registerEntity(); } public static void registerEntity(){ createEntity(EntityGreekFire.class, "GreekFire"); createEntity(EntityBullet.class, "Bullet"); createEntity(EntitySGuardian.class, "SGuardian"); createEntity(EntitySGolem.class, "SGolem"); createEntity(EntityUndead.class, "Undead"); createEntity(EntityUndeadGreekArcher.class, "UndeadArcherGreek"); createEntity(EntityThunderBolt.class, "ThunderBolt"); createEntity(EntityMasterBolt.class, "MasterBolt"); createEntity(Zeus.class, "Zeus"); createEntity(Arachne.class, "Arachne"); createEntity(EntityCell.class, "EntityCell"); } public static void createEntity(Class entityClass, String entityName){ int randomID = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerModEntity(entityClass, entityName, randomID, MainRegistry.modInstance, 1, 80, true); //EntityRegistry.registerModEntity(EntityGreekFire.class, "GreekFire", 4013479, MainRegistry.modInstance, 1, 80, true); //EntityRegistry.registerModEntity(EntityBullet.class, "Bullet", 302942, MainRegistry.modInstance, 1, 80, true); //EntityRegistry.registerModEntity(EntitySGuardian.class, "SGaurdian", 301320, MainRegistry.modInstance, 80, 1, true); //EntityRegistry.registerModEntity(EntitySGolem.class, "EntitySGolem", 420193, MainRegistry.modInstance, 80, 1, true); //EntityRegistry.registerModEntity(EntityUndead.class, "UndeadRoman", 403998, MainRegistry.modInstance, 80, 1, true); //EntityRegistry.registerModEntity(EntityUndeadGreekArcher.class, "UndeadArcherGreek", 403698, MainRegistry.modInstance, 80, 1, true); //EntityRegistry.registerModEntity(EntityThunderBolt.class, "ThunderBolt", 413698, MainRegistry.modInstance, 80, 1, true); //EntityRegistry.registerModEntity(EntityMasterBolt.class, "MasterBolt", 413798, MainRegistry.modInstance, 80, 1, true); //EntityRegistry.registerModEntity(Zeus.class, "Zeus", 414798, MainRegistry.modInstance, 100, 1, true); //EntityRegistry.registerModEntity(Arachne.class, "Arachne", 414799, MainRegistry.modInstance, 80, 1, true); //EntityRegistry.registerModEntity(EntityCell.class, "EntityCell", 414789, MainRegistry.modInstance, 80, 1, true); } }
×
×
  • Create New...

Important Information

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