Guest User

ObsidianWorkbench

a guest
Feb 23rd, 2013
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package deathman12e3.More_Tools.blocks;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.block.material.Material;
  5. import net.minecraft.creativetab.CreativeTabs;
  6. import net.minecraft.entity.player.EntityPlayer;
  7. import net.minecraft.world.World;
  8.  
  9. public class BlockObsidianWorkbench extends Block
  10. {
  11.  
  12. public BlockObsidianWorkbench(int par1)
  13. {
  14.  
  15. super(par1, Material.rock);
  16. this.blockIndexInTexture = 0;
  17. this.setCreativeTab(CreativeTabs.tabDecorations);
  18.  
  19. }
  20.  
  21. public boolean onBlockActivated(World var1, int var2, int var3, int var4, EntityPlayer player, int var6, float var7, float var8, float var9)
  22. {
  23.  
  24. if (!player.isSneaking())
  25. {
  26.  
  27. player.openGui(Trees.instance, 1, var1, var2, var3, var4);
  28. return true;
  29.  
  30. }
  31.  
  32. else
  33.  
  34. {
  35.  
  36. return false;
  37.  
  38. }
  39.  
  40. }
  41.  
  42. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×