TehGimpsters
To view all the forum contents. Please login or register.

Join the forum, it's quick and easy

TehGimpsters
To view all the forum contents. Please login or register.
TehGimpsters
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Help]Glowing Glass

Go down

[Help]Glowing Glass Empty [Help]Glowing Glass

Post by Zeperus Fri Sep 09, 2011 6:07 am

Hello Everybody,

I have following Problem:

I wanted to make a Block, that is just Glowing Glass.. But i do have a Problem:

I do not want to use a coustome gfx. I just wan't to use the already existing GFX of glass, but It kinda doesn't want to show up D:. Instead I get a "XRay" Block

Code of the mod_GlowingGlass.java:

Code:
package net.minecraft.src;

public class mod_GlowingGlass extends BaseMod
{
    public String Version()
{
    return "1.0";
}
public mod_GlowingGlass ()
{
    //Register
    ModLoader.RegisterBlock(GlowingGlass);
    ModLoader.AddName(GlowingGlass, "Glowing Glass");
    ModLoader.AddRecipe(new ItemStack(mod_GlowingGlass.GlowingGlass, 1), new Object[] {
        "#","X", Character.valueOf('#'), Block.torchWood ,Character.valueOf('X'), Block.glass
    });
}
 static {
    GlowingGlass = (new BlockGlowingGlass(99, 49)).setHardness(0.3F).setStepSound(Block.soundGlassFootstep) .setBlockName("GlowingGlass").setLightValue(0.9375F);
 }
  public static final Block GlowingGlass;
}



BlockGlowingGlass.java:

Code:
package net.minecraft.src;

import java.util.Random;

public class BlockGlowingGlass extends Block
{

    public BlockGlowingGlass(int i, int j)
    {
        super(i, j, Material.glass);
    }
    public int getRenderBlockPass()
    {
        return mod_GlowingGlass.GlowingGlass.blockID;
    }
}

ONLY POST IF YOU CAN HELP!
Zeperus
Zeperus

Minecraft : Zeperus
YouTube : Zeperus05
Posts : 96
Join date : 2011-07-26
Age : 29

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum