package minestrapteam.mods.minestrappolation.block; import minestrapteam.mods.minestrappolation.Minestrappolation; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.util.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; public class BlockInvincium extends MBlock { public BlockInvincium(Material material) { super(material, MapColor.redColor); this.setCreativeTab(Minestrappolation.tabMBuilding); } @Override public void onEntityCollidedWithBlock(World world, BlockPos pos, IBlockState state, Entity entity) { super.onEntityCollidedWithBlock(world, pos, state, entity); entity.setFire(15); } @Override public boolean canEntityDestroy(IBlockAccess world, BlockPos pos, Entity entity) { return false; } }