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

import java.util.Random;  

import com.lothrazar.samscontent.BlockRegistry;
import com.lothrazar.samscontent.ModMain;
import com.lothrazar.util.*;

import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumWorldBlockLayer;
import net.minecraft.world.World;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;

public class BlockFishing extends Block
{
	private static boolean isEnabled = true;
	  
	public BlockFishing()
	{
		super(Material.wood);  
		this.setCreativeTab(ModMain.tabSamsContent);
		this.setHardness(3F);
		this.setResistance(5F); 
		this.setStepSound(soundTypeWood);
		this.setTickRandomly(true);
    }
	    
	@Override
	public void updateTick(World worldObj,  BlockPos pos, IBlockState state,  Random rand)
    {  
		int xCoord = pos.getX();
		int yCoord = pos.getY();
		int zCoord = pos.getZ();
		 
		 if(worldObj.getBlockState(pos.down()).equals(Blocks.water) == false
		 || worldObj.getBlockState(pos.down(2)).equals(Blocks.water) == false 
		 || worldObj.getBlockState(pos.down(3)).equals(Blocks.water) == false //3 deep, and
		 || worldObj.getBlockState(pos.north()).equals(Blocks.water) == false<commit_msg>reduce fishing block odds by 50%<commit_after>package com.lothrazar.samscontent.block;

import java.util.Random;  

import com.lothrazar.samscontent.BlockRegistry;
import com.lothrazar.samscontent.ModMain;
import com.lothrazar.util.*;

import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumWorldBlockLayer;
import net.minecraft.world.World;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;

public class BlockFishing extends Block
{
	private static boolean isEnabled = true;
	  
	public BlockFishing()
	{
		super(Material.wood);  
		this.setCreativeTab(ModMain.tabSamsContent);
		this.setHardness(3F);
		this.setResistance(5F); 
		this.setStepSound(soundTypeWood);
		this.setTickRandomly(true);
    }
	    
	@Override
	public void updateTick(World worldObj,  BlockPos pos, IBlockState state,  Random rand)
    {  
		if(worldObj.rand.nextInt(2) != 0){return;}//possible values are 0,1
		//meaning we have a 1/2 chance of getting past this check
		
		if(worldObj.getBlockState(pos.down()).equals(Blocks.water) == false
		 || worldObj.getBlockState(pos.down(2)).equals(Blocks.water) == false 
		 || worldObj.getBlockState(pos.down(3)).equals(Blocks.water) == false //3 deep, and
		 || worldObj.getBlockState(pos.north()).equals(Blocks.water) == false
{'fraction_non_alphanumeric': 0.11863938053097345, 'fraction_numerical': 0.00497787610619469, 'mean_word_length': 5.31239092495637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4263497', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1183, 'n_words': 197}