Advertisement
Guest User

Untitled

a guest
Feb 17th, 2016
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  1. package com.phoenix.pyromancy.blocks;
  2.  
  3. import com.phoenix.pyromancy.Pyromancy;
  4. import net.minecraft.block.Block;
  5. import net.minecraft.block.material.Material;
  6. import net.minecraft.world.World;
  7.  
  8. import java.util.Random;
  9.  
  10. public class BlockFireberryBush extends Block
  11. {
  12.     public BlockFireberryBush(String itemName)
  13.     {
  14.         super(Material.leaves);
  15.         setCreativeTab(Pyromancy.tabPyromancy);
  16.         setStepSound(soundTypeGrass);
  17.         setBlockBounds(0.1F, 0.0F, 0.1F, 0.9F, 1.0F, 0.9F);
  18.         this.setTickRandomly(true);
  19.     }
  20.  
  21.     @Override
  22.     public boolean isOpaqueCube()
  23.     {
  24.         return false;
  25.     }
  26.  
  27.     @Override
  28.     public void updateTick(World world, int x, int y, int z, Random random)
  29.     {
  30.             world.setBlockState(x,y,z, Pyromancy.harvestableFireberryBush); // <--- I have no idea what I'm doing any more
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement