<commit_before>package enosphorous.chateau_romani.handlers;

import enosphorous.chateau_romani.common.Items;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.monster.EntityWitch;
import net.minecraft.item.Item;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.living.LivingDropsEvent;

public class WitchDropHandler {
	public static double rand;
	
	@ForgeSubscribe
	public void onEntityDrop1(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.3D) { 
					event.entityLiving.dropItem(Items.fermented_grain.itemID, 2);
				}
			}
		}
	}
	
	@ForgeSubscribe
	public void onEntityDrop2(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.3D) { 
					event.entityLiving.dropItem(Items.milk_bottle.itemID, 1);
				}
			}
		}
	}
	
	@ForgeSubscribe
	public void onEntityDrop3(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.1D) { 
					event.entityLiving.dropItem(Items.bottled_fire.itemID, 1);
				}
			}
		}
	}
	
	@ForgeSubscribe
	public void onEntityDrop4(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.03D) { 
					event.entityLiving.dropItem(Items.bottled_ghast.itemID, 1);
				}
			}
		}
	}
}<commit_msg>Added potions to Witch drops.<commit_after>package enosphorous.chateau_romani.handlers;

import enosphorous.chateau_romani.common.Items;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.monster.EntityWitch;
import net.minecraft.item.Item;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.living.LivingDropsEvent;

public class WitchDropHandler {
	public static double rand;
	
	@ForgeSubscribe
	public void onEntityDrop1(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.3D) { 
					event.entityLiving.dropItem(Items.fermented_grain.itemID, 2);
				}
			}
		}
	}
	
	@ForgeSubscribe
	public void onEntityDrop2(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.3D) { 
					event.entityLiving.dropItem(Items.milk_bottle.itemID, 1);
				}
			}
		}
	}
	
	@ForgeSubscribe
	public void onEntityDrop3(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.1D) { 
					event.entityLiving.dropItem(Items.bottled_fire.itemID, 1);
				}
			}
		}
	}
	
	@ForgeSubscribe
	public void onEntityDrop4(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.03D) { 
					event.entityLiving.dropItem(Items.bottled_ghast.itemID, 1);
				}
			}
		}
	}
	
	@ForgeSubscribe
	public void onEntityDrop5(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.05D) { 
					event.entityLiving.dropItem(Items.potion_red.itemID, 1);
				}
			}
		}
	}
	
	@ForgeSubscribe
	public void onEntityDrop6(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.05D) { 
					event.entityLiving.dropItem(Items.potion_green.itemID, 1);
				}
			}
		}	
	}
	
	@ForgeSubscribe
	public void onEntityDrop7(LivingDropsEvent event) {
		if (event.source.getDamageType().equals("player")) { 
			rand = Math.random();
			if (event.entityLiving instanceof EntityWitch) {
				if (rand < 0.02D) { 
					event.entityLiving.dropItem(Items.potion_blue.itemID, 1);
				}
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.12523320895522388, 'fraction_numerical': 0.01142723880597015, 'mean_word_length': 3.840857787810384, 'pattern_counts': {'":': 0, '<': 14, '<?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': '7657123', 'n_tokens_mistral': 1802, 'n_tokens_neox': 1491, 'n_words': 244}