<commit_before>package com.lothrazar.cyclicmagic.block;

import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumWorldBlockLayer;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

/**
 * imported from https://github.com/PrinceOfAmber/SamsPowerups/blob/
 * 5083ec601e34bbe045d9a3d0ca091e3d44af562f/src/main/java/com/lothrazar/samscontent/BlockRegistry.jav
 * a
 * 
 * @author Lothrazar
 *
 */
public class BlockFragile extends Block {
	public BlockFragile() {
		super(Material.wood);
		this.setTickRandomly(true);
		this.setHardness(0F);
		this.setResistance(0F);
		this.setStepSound(soundTypeWood);
	}

	@Override
	public boolean isOpaqueCube() {
		return false;// transparency
	}

	@SideOnly(Side.CLIENT)
	public EnumWorldBlockLayer getBlockLayer() {
		return EnumWorldBlockLayer.CUTOUT;// transparency
	}

	@Override
	public void updateTick(World worldObj, BlockPos pos, IBlockState state, Random rand) {
		// TODO: maybe an extra random counter here
		// true would make it drop the 'block items' - but no recpie for them
		worldObj.destroyBlock(pos, false);
	}

	@Override
	public int quantityDropped(Random random) {
		return 0; // this makes it drop nothing at all
	}
}<commit_msg>block mining fragile blocks with silk<commit_after>package com.lothrazar.cyclicmagic.block;

import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumWorldBlockLayer;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

/**
 * imported from https://github.com/PrinceOfAmber/SamsPowerups/blob/
 * 5083ec601e34bbe045d9a3d0ca091e3d44af562f/src/main/java/com/lothrazar/samscontent/BlockRegistry.jav
 * a
 * 
 * @author Lothrazar
 *
 */
public class BlockFragile extends Block {
	public BlockFragile() {
		super(Material.wood);
		this.setTickRandomly(true);
		this.setHardness(0F);
		this.setResistance(0F);
		this.setStepSound(soundTypeWood);
	}

	@Override
	public boolean isOpaqueCube() {
		return false;// transparency
	}

	@SideOnly(Side.CLIENT)
	public EnumWorldBlockLayer getBlockLayer() {
		return EnumWorldBlockLayer.CUTOUT;// transparency
	}

	@Override
	public void updateTick(World worldObj, BlockPos pos, IBlockState state, Random rand) {
		// TODO: maybe an extra random counter here
		// true would make it drop the 'block items' - but no recpie for them
		worldObj.destroyBlock(pos, false);
	}

	@Override
	public int quantityDropped(Random random) {
		return 0; // this makes it drop nothing at all
	}
	
	@Override
	public boolean canSilkHarvest(World world, BlockPos pos, IBlockState state, EntityPlayer player){
		return false;
	}
}
{'fraction_non_alphanumeric': 0.10176125244618395, 'fraction_numerical': 0.01761252446183953, 'mean_word_length': 4.932301740812379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4263495', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1016, 'n_words': 220}