Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.rabidpotato.colony.blocks.plants;
- import java.util.Random;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.client.Minecraft;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.init.Blocks;
- import net.minecraft.item.ItemStack;
- import net.minecraft.world.IBlockAccess;
- import net.minecraft.world.World;
- public class gVine extends Block{
- protected gVine(Material mat) {
- super(mat);
- this.setHardness(1.5F);
- //dirt is 0.5F. The one for obsidian is 50.0F.
- this.setResistance(0.2F);
- this.setTickRandomly(true);
- this.setStepSound(soundTypeGrass);
- this.setHarvestLevel("axe", 2);
- //s0 is Wood, 1 is Stone, 2 is Iron and 3 is Diamond.
- }
- @Override
- public boolean isOpaqueCube()
- {
- return false;
- }
- @Override
- public boolean isLadder(IBlockAccess world, int x, int y, int z, EntityLivingBase entity)
- {
- return true;
- }
- @Override
- public void updateTick(World world, int x, int y, int z, Random ran)
- {
- /* super.updateTick(world, x, y, z, ran);
- world.scheduleBlockUpdate(x, y, z, Blocks.clay, ran.nextInt(1 - 1) + 1); */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment