• 0

    posted a message on [HELP] Wrong icon for flower.
    Quote from Stewiecraft

    Post your BlockCFlower and I should be able to fix it for you.


    It's basicly just BlockFlower.java.

    // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3) braces deadcode fieldsfirst

    package net.minecraft.src;

    import java.util.Random;

    // Referenced classes of package net.minecraft.src:
    // Block, Material, World, BlockGrass,
    // AxisAlignedBB

    public class BlockCFlower extends Block
    {

    protected BlockCFlower(int i, int j)
    {
    super(i, Material.plants);
    blockIndexInTexture = j;
    setTickOnLoad(true);
    float f = 0.2F;
    setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 3F, 0.5F + f);
    }

    public boolean canPlaceBlockAt(World world, int i, int j, int k)
    {
    return super.canPlaceBlockAt(world, i, j, k) && canThisPlantGrowOnThisBlockID(world.getBlockId(i, j - 1, k));
    }

    protected boolean canThisPlantGrowOnThisBlockID(int i)
    {
    return i == Block.grass.blockID || i == Block.dirt.blockID || i == Block.tilledField.blockID;
    }

    public void onNeighborBlockChange(World world, int i, int j, int k, int l)
    {
    super.onNeighborBlockChange(world, i, j, k, l);
    checkFlowerChange(world, i, j, k);
    }

    public void updateTick(World world, int i, int j, int k, Random random)
    {
    checkFlowerChange(world, i, j, k);
    }

    protected final void checkFlowerChange(World world, int i, int j, int k)
    {
    if(!canBlockStay(world, i, j, k))
    {
    dropBlockAsItem(world, i, j, k, world.getBlockMetadata(i, j, k), 0);
    world.setBlockWithNotify(i, j, k, 0);
    }
    }

    public boolean canBlockStay(World world, int i, int j, int k)
    {
    return (world.getFullBlockLightValue(i, j, k) >= 8 || world.canBlockSeeTheSky(i, j, k)) && canThisPlantGrowOnThisBlockID(world.getBlockId(i, j - 1, k));
    }

    public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
    {
    return null;
    }

    public boolean isOpaqueCube()
    {
    return false;
    }

    public boolean renderAsNormalBlock()
    {
    return false;
    }

    public int getRenderType()
    {
    return 1;
    }

    }
    Posted in: Modification Development
  • 0

    posted a message on [HELP] Wrong icon for flower.
    Wont work... Thanks anyways! :smile.gif:
    Posted in: Modification Development
  • 0

    posted a message on Need help
    Quote from mukiemuk

    Anything more basic? I am a newbie


    This might work.
    Posted in: Modification Development
  • 0

    posted a message on Need help
    Here's one. Frogbites
    Posted in: Modification Development
  • 0

    posted a message on [HELP] Wrong icon for flower.
    Hello, I am making a new flower for a mod. I got it to generate naturaly and all that, it has its correct texture when sitting on dirt, but once I break it, it looks like a flat greyscale grass texture icon?

    Thanks in advance!

    This is my code:

    package net.minecraft.src;
    
    import java.util.Random;
    
    public class mod_Cyan extends BaseMod
    {
    	public static final Block Flower = new BlockCFlower(148, 0).setHardness(0.0F).setResistance(0F).setBlockName("Flower");
    	
    	public mod_Cyan()
    	{
    		ModLoader.RegisterBlock(Flower);
    		ModLoader.AddName(Flower, "Cyan Rose");
    		Flower.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/SAPM/Cyan_Flower.png");
    		
    		   ModLoader.AddRecipe(new ItemStack(Item.dyePowder, 2, 6), new Object[] { 
    		   		"X", Character.valueOf('X'), mod_Cyan.Flower
    	   		});
    	}
    	
    	public String Version()
    	{
    		return "1.0.0";
    	}
    
    	@Override
    	public String getVersion() {
    		return null;
    	}
    
    	@Override
    	public void load() {
    		
    	}
    	
    	public void GenerateSurface(World var1, Random var2, int var3, int var4)
    	{
    		int var5;
    		int var6;
    		int var7;
    		int var8;
    			for(var5 = 0; var5 < 2; ++var5)
    			{
    				var6 = var3 + var2.nextInt(16) + 8; 
    				var7 = var2.nextInt(128);
    				var8 = var4 + var2.nextInt(16) + 8;
    				(new WorldGenFlowers(mod_Cyan.Flower.blockID)).generate(var1, var2, var6, var7, var8);
    			}
    	}
    } 
    Posted in: Modification Development
  • 0

    posted a message on [Factions]-[Raiding]-[PvP]-[Stargates]-[Golden Tunnels]-[Towns]-[Roleplay] Frigid Wastes
    IGN: halo291
    Age: 13
    Why you want to join: Sounds awesome!
    Your character (describe backstory etc.):

    When the comet hit, my entire gold city of Minepan turned to ice. I, the king of Minepan, the only survivor of Minepan, am now wandering and trying to survive the frozen underground aftermath of the comet. Although, I knew that I would never get my city back, so I became a warrior.

    Did you read the backstory? (summarize it):
    A comet comes down and freezes the entire planet. Some miners became insane when they came intact with the comet.
    Do you have a customized artic skin?:
    Yes.
    Did you download the TP?(found in other stuff):
    Yes.
    Did you read the rules?:
    Yes.

    Hope this is good enough for me to get re-accepted. :smile.gif:
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on This thread is obsolete

    SERVER IS UP

    SQUID, ZWARTE ONLY YOU CAN GET IN


    Approximately what time will everyone else be able to come in?
    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on This thread is obsolete
    I'm a little confused right now. I'm not sure if I'm supposed to reapply in the new white list forum, or if that's for the new people.
    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on This thread is obsolete

    Severe as in, can't get the map to work, server broke.



    Well, I'm going to bed, so hopefully you guys can get it to work by time I wake up. :smile.gif:
    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on This thread is obsolete

    Severe problems.


    Severe?! :ohmy.gif:
    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on This thread is obsolete


    Here it is.

    And this.

    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on This thread is obsolete
    Quote from SeriouSquid

    Pics or it didn't happen.


    It's my avatar. I'll try to upload my skin.
    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on This thread is obsolete
    I made my guy arctic-ized. What do you guys think?
    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on This thread is obsolete
    Quote from SeriouSquid

    Seriously, when the **** is the server gonna get sorted out?
    And Halo, make your skin more arctic friendly, like what I did for taco.


    I'm still working on it.
    Posted in: Starting Up / Looking For Server
  • 0

    posted a message on This thread is obsolete
    Quote from zwartebanddief

    Alright :wink.gif:, but why did your character change?(Just for you backstory)


    He thought that he'd never get his city back as it was obliterated/frozen, and want's to live out the rest of his days as a warrior because war flows through his blood. :cool.gif: (He is nice and will not declare war, unless others attack.)
    Posted in: Starting Up / Looking For Server
  • To post a comment, please .