Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Block.blocksList[18] = null;
  2.                 Item.itemsList[18] = null;
  3.                 Block foliage = (BlockFoliage)(new BlockFoliage(18, 52)).setHardness(0.2F).setLightOpacity(1).setStepSound(Block.soundGrassFootstep).setBlockName("leaves");
  4.                 ModLoader.RegisterBlock(foliage);
  5.                 try
  6.                 {
  7.                         ModLoader.setPrivateValue(Block.class, null, "L",  foliage);
  8.                 } catch (Throwable gg)
  9.                 {      
  10.                         System.err.println(gg);
  11.                         try
  12.                         {
  13.                                 ModLoader.setPrivateValue(Block.class, null, "leaves",  foliage);
  14.                         } catch (Throwable hh)
  15.                         {
  16.                                 System.err.println(hh);
  17.                         }
  18.                 }