Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1.  BlockFenceGate
  2. package net.minecraft.src;
  3.  
  4. public class BlockFenceGate extends Block
  5. {
  6.  
  7.     public BlockFenceGate(int blockID)
  8.     {
  9.         // Call our inherited's class telling it
  10.         // we want to use the jukebox texture and
  11.         // have wood like properties
  12.         super(blockID, 74, Material.wood);
  13.  
  14.         this.setResistance(2.0F).setHardness(10F).setStepSound(soundClothFootstep);
  15.        
  16.         Item.itemsList[blockID] = new ItemBlock(blockID-256);
  17.        
  18.         CraftingManager.getInstance().addRecipe(new ItemStack(blockID, 1), new Object[] {
  19.                                                     ^
  20.             "   ","-#-","-#-", Character.valueOf('#'), Block.planks, Character.valueOf('-'), Item.stick,
  21.         });    
  22.     }  
  23. }
  24.  
  25. modfencegate
  26.  
  27. public class mod_FenceGate{
  28. public static final Block fenceGate = (new BlockFenceGate(99, 1));
  29.                 ^                      ^
  30. //fenceGate.setHardness(1.5F);
  31. //fenceGate.setStepSound(soundClothFootstep);
  32. //fenceGate.setBlockName("fenceGate");
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement