Guest User

Untitled

a guest
Oct 6th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. package theishiopian.sandbox.block;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.block.ITileEntityProvider;
  5. import net.minecraft.block.material.Material;
  6. import net.minecraft.block.state.IBlockState;
  7. import net.minecraft.creativetab.CreativeTabs;
  8. import net.minecraft.tileentity.TileEntity;
  9. import net.minecraft.util.math.BlockPos;
  10. import net.minecraft.world.World;
  11. import theishiopian.sandbox.world.Tracking;
  12.  
  13. public class Scarecrow extends Block
  14. {
  15.  
  16.     public Scarecrow()
  17.     {
  18.         super(Material.WOOD);
  19.         setUnlocalizedName("test");
  20.         setRegistryName("test");
  21.         setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
  22.     }
  23.     @Override
  24.     public void onBlockAdded(World world, BlockPos pos, IBlockState state)
  25.     {
  26.         Tracking.get(world);
  27.         Tracking.addScarecrow(pos);
  28.     }
  29.     @Override
  30.     public void breakBlock(World world, BlockPos pos, IBlockState state)
  31.     {
  32.         Tracking.get(world);
  33.         Tracking.removeScarecrow(pos);
  34.     }
  35. }
Add Comment
Please, Sign In to add comment