Guest User

gVine

a guest
May 2nd, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. package com.rabidpotato.colony.blocks.plants;
  2.  
  3. import java.util.Random;
  4.  
  5. import net.minecraft.block.Block;
  6. import net.minecraft.block.material.Material;
  7. import net.minecraft.client.Minecraft;
  8. import net.minecraft.entity.EntityLivingBase;
  9. import net.minecraft.entity.player.EntityPlayer;
  10. import net.minecraft.init.Blocks;
  11. import net.minecraft.item.ItemStack;
  12. import net.minecraft.world.IBlockAccess;
  13. import net.minecraft.world.World;
  14.  
  15. public class gVine extends Block{
  16.  
  17. protected gVine(Material mat) {
  18. super(mat);
  19. this.setHardness(1.5F);
  20. //dirt is 0.5F. The one for obsidian is 50.0F.
  21. this.setResistance(0.2F);
  22. this.setTickRandomly(true);
  23. this.setStepSound(soundTypeGrass);
  24. this.setHarvestLevel("axe", 2);
  25. //s0 is Wood, 1 is Stone, 2 is Iron and 3 is Diamond.
  26. }
  27.  
  28. @Override
  29. public boolean isOpaqueCube()
  30. {
  31. return false;
  32. }
  33.  
  34. @Override
  35. public boolean isLadder(IBlockAccess world, int x, int y, int z, EntityLivingBase entity)
  36. {
  37. return true;
  38. }
  39.  
  40. @Override
  41. public void updateTick(World world, int x, int y, int z, Random ran)
  42. {
  43. /* super.updateTick(world, x, y, z, ran);
  44. world.scheduleBlockUpdate(x, y, z, Blocks.clay, ran.nextInt(1 - 1) + 1); */
  45. }
  46.  
  47.  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment