Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BlockFenceGate
- package net.minecraft.src;
- public class BlockFenceGate extends Block
- {
- public BlockFenceGate(int blockID)
- {
- // Call our inherited's class telling it
- // we want to use the jukebox texture and
- // have wood like properties
- super(blockID, 74, Material.wood);
- this.setResistance(2.0F).setHardness(10F).setStepSound(soundClothFootstep);
- Item.itemsList[blockID] = new ItemBlock(blockID-256);
- CraftingManager.getInstance().addRecipe(new ItemStack(blockID, 1), new Object[] {
- ^
- " ","-#-","-#-", Character.valueOf('#'), Block.planks, Character.valueOf('-'), Item.stick,
- });
- }
- }
- modfencegate
- public class mod_FenceGate{
- public static final Block fenceGate = (new BlockFenceGate(99, 1));
- ^ ^
- //fenceGate.setHardness(1.5F);
- //fenceGate.setStepSound(soundClothFootstep);
- //fenceGate.setBlockName("fenceGate");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement