Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package theishiopian.sandbox.block;
- import net.minecraft.block.Block;
- import net.minecraft.block.ITileEntityProvider;
- import net.minecraft.block.material.Material;
- import net.minecraft.block.state.IBlockState;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.math.BlockPos;
- import net.minecraft.world.World;
- import theishiopian.sandbox.world.Tracking;
- public class Scarecrow extends Block
- {
- public Scarecrow()
- {
- super(Material.WOOD);
- setUnlocalizedName("test");
- setRegistryName("test");
- setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
- }
- @Override
- public void onBlockAdded(World world, BlockPos pos, IBlockState state)
- {
- Tracking.get(world);
- Tracking.addScarecrow(pos);
- }
- @Override
- public void breakBlock(World world, BlockPos pos, IBlockState state)
- {
- Tracking.get(world);
- Tracking.removeScarecrow(pos);
- }
- }
Add Comment
Please, Sign In to add comment