• 0

    posted a message on HMGMC.com - Prison + Skyblock + PVP More Soon!
    In-Game Username: Ravenclaw572
    How do you like the server so far [Optional]: Pretty Good, Somewhat Laggy
    Do you plan on donating? IT HELPS A TON!: Possibly
    Posted in: PC Servers
  • 0

    posted a message on Revolution in Piston Mechanics: Cars, Infinite memory, Piston Robots and More!
    If they could do this, so many new redstone builds would be possible. Especially with 1.5 coming soon, this would be awesome! :)
    Posted in: Suggestions
  • 0

    posted a message on Skull Candles! [+200 Supporters!]
    I'd like it better if the eyes glowed with the torch. It would look nicer, imo. :)
    Posted in: Suggestions
  • 0

    posted a message on Mob Spawn Item Not Working
    Hello! I'm having trouble with trying to get my mob spawner item to work. Currently, it does nothing when I right click besides the placing animation. Heres my code:

    package net.minecraft.src;
    public class ItemSpawner extends Item {
    
    public ItemSpawner(int i)
    {
    super(i);
    }
    
    public boolean hasEffect(ItemStack itemstack)
    {
    return false;
    }
    
    public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
    	 {
    		 if (par3World.isRemote)
    		 {
    			 return true;
    		 }
    		 else
    		 {
    			 int var11 = par3World.getBlockId(par4, par5, par6);
    			 par4 += Facing.offsetsXForSide[par7];
    			 par5 += Facing.offsetsYForSide[par7];
    			 par6 += Facing.offsetsZForSide[par7];
    			 double var12 = 0.0D;
    			 if (par7 == 1 && Block.blocksList[var11] != null && Block.blocksList[var11].getRenderType() == 11)
    			 {
    				 var12 = 0.5D;
    			 }
    			 if (spawnCreature(par3World, par1ItemStack.getItemDamage(), (double)par4 + 0.5D, (double)par5 + var12, (double)par6 + 0.5D) != null && !par2EntityPlayer.capabilities.isCreativeMode)
    			 {
    				 --par1ItemStack.stackSize;
    			 }
    			 return true;
    		 }
    	 }
    	 /**
    	 * Spawns the creature specified by the egg's type in the location specified by the last three parameters.
    	 * Parameters: world, entityID, x, y, z.
    	 */
    	 public static Entity spawnCreature(World par0World, int par1, double par2, double par4, double par6)
    	 {
    		 if (!EntityList.entityEggs.containsKey(Integer.valueOf(par1)))
    		 {
    			 return null;
    		 }
    		 else
    		 {
    			 EntityMyEntity var8 = new EntityMyEntity(par0World);
    			 for (int var9 = 0; var9 < 1; ++var9)
    			 {
    				 if (var8 != null && var8 instanceof EntityLiving)
    				 {
    					 EntityLiving var10 = (EntityLiving)var8;
    					 var8.setLocationAndAngles(par2, par4, par6, MathHelper.wrapAngleTo180_float(par0World.rand.nextFloat() * 360.0F), 0.0F);
    					 var10.rotationYawHead = var10.rotationYaw;
    					 var10.renderYawOffset = var10.rotationYaw;
    					 var10.initCreature();
    					 par0World.spawnEntityInWorld(var8);
    					 var10.playLivingSound();
    				 }
    			 }
    			 return var8;
    		 }
    	 }
    }


    Any and all help is appreciated! Thanks! :)
    Posted in: Mods Discussion
  • 0

    posted a message on Strange Glitch When Implementing Giant as Boss
    Thanks so much! This will help me a lot! I've got so many new ideas for my mod now... :)
    Posted in: Modification Development
  • 0

    posted a message on [Forge] How do I create an item that adds hunger? (Food)
    Make something like this:
    <When food is eaten> {
    player.addHunger(hunger);
    }

    I'm not sure what the <When food is eaten> would be, sorry. That's what you should try to do, though. Look through the Potion Code. And Rotten Flesh, as there's a chance for poision. :)
    Posted in: Modification Development
  • 0

    posted a message on Spawn Item Not Working
    I have a spawn item for my mob, and it's supposed to spawn a mob like a spawn egg does. Except it doesn't do anything. Here's my code:
    package net.minecraft.src;
    public class ItemEntitySpawner extends Item {
    
    public ItemEntitySpawner(int i)
      {
       super(i);
      }
     
      public boolean hasEffect(ItemStack itemstack)
      {
       return false;
      }
     
      public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7)
    	 {
    		 if (par3World.isRemote)
    		 {
    			 return true;
    		 }
    		 int i = par3World.getBlockId(par4, par5, par6);
    		 par4 += Facing.offsetsXForSide[par7];
    		 par5 += Facing.offsetsYForSide[par7];
    		 par6 += Facing.offsetsZForSide[par7];
    		 double d = 0.0D;
    		 if (par7 == 1 && i == Block.fence.blockID || i == Block.netherFence.blockID)
    		 {
    			 d = 0.5D;
    		 }
    		 if (func_48440_a(par3World, par1ItemStack.getItemDamage(), (double)par4 + 0.5D, (double)par5 + d, (double)par6 + 0.5D) && !par2EntityPlayer.capabilities.isCreativeMode)
    		 {
    			 par1ItemStack.stackSize--;
    		 }
    		 return true;
    	 }
    	 public static boolean func_48440_a(World par0World, int par1, double par2, double par4, double par6)
    	 {
    	  EntityMyEntity entity = new EntityMyEntity(par0World);
    		 if (entity != null)
    		 {
    			 entity.setLocationAndAngles(par2, par4, par6, par0World.rand.nextFloat() * 360F, 0.0F);
    			 par0World.spawnEntityInWorld(entity);
    			 ((EntityLiving)entity).playLivingSound();
    		 }
    		 return entity != null;
    	 }
    }


    How can I fix this? There's no errors, it shows up in-game just fine. It's with Mod Loader. Any and all help is appreciated! :)
    Posted in: Modification Development
  • 0

    posted a message on According to eclipse, what are these items called?
    No problem. I had Eclipse open, trying to update my mods. Nothing is working... Oh well. Glad you're happy! Happy Holidays! :)
    Posted in: Modification Development
  • 0

    posted a message on According to eclipse, what are these items called?
    Rose: Block.plantRed
    Yellow Flower: Block.plantYellow
    Red Mushroom: Block.mushroomRed
    Brown Mushroom: Block.mushroomBrown

    :) Enjoy!
    Posted in: Modification Development
  • 0

    posted a message on Born as adults
    You need to define it's age. I don't know how to off the top of my head, sorry. :/
    Posted in: Modification Development
  • 0

    posted a message on Born as adults
    You have it set to spawn your entity right away. You need to set it's age somehow. Here's your error:
    public EntityBison spawnBabyAnimal(EntityAgeable par1EntityAgeable)
    {
    return new EntityBison(this.worldObj); <--- Here you have it set to spawn a normal adult.
    }
    Posted in: Modification Development
  • 0

    posted a message on Modding Fail.
    You forgot to move your, uh, creepy texture into the items folder... O_O I don't want to know what this mod is supposed to do... :blink:
    Posted in: Modification Development
  • 0

    posted a message on Strange Glitch When Implementing Giant as Boss
    *Bump I kind of really want to know why this is happening. Also, I made a Giant Spider, and the same thing happens. :/
    Posted in: Modification Development
  • 0

    posted a message on Strange Glitch When Implementing Giant as Boss
    Here's a video describing what's happening:

    Posted in: Modification Development
  • 0

    posted a message on Mob not spawning?
    Okay, then. I have no other ideas. Sorry. :/
    Posted in: Modification Development
  • To post a comment, please .