From 2a4afe1f6be80c6a96c0363742f48f67882c31a8 Mon Sep 17 00:00:00 2001
From: HexedHero <6012891+HexedHero@users.noreply.github.com>
Date: Mon, 30 Aug 2021 15:55:11 +0100
Subject: [PATCH] Add MaterialTags for raw ores and raw ore blocks (#6516)

---
 patches/api/Add-Material-Tags.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/patches/api/Add-Material-Tags.patch b/patches/api/Add-Material-Tags.patch
index 6303310385..840c646fa6 100644
--- a/patches/api/Add-Material-Tags.patch
+++ b/patches/api/Add-Material-Tags.patch
@@ -674,6 +674,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
 +            .add(PICKAXES, SWORDS, SHOVELS, AXES, HOES, HELMETS, CHEST_EQUIPPABLE, LEGGINGS, BOOTS, BOWS)
 +            .add(Material.TRIDENT, Material.SHIELD, Material.FISHING_ROD, Material.SHEARS, Material.FLINT_AND_STEEL, Material.CARROT_ON_A_STICK, Material.WARPED_FUNGUS_ON_A_STICK)
 +            .ensureSize("ENCHANTABLE", 65);
++
++    /**
++     * Covers the variants of raw ores.
++     */
++    public static final MaterialSetTag RAW_ORES = new MaterialSetTag(keyFor("raw_ores"))
++            .add(Material.RAW_COPPER, Material.RAW_GOLD, Material.RAW_IRON);
++
++    /**
++     * Covers the variants of raw ore blocks.
++     */
++    public static final MaterialSetTag RAW_ORE_BLOCKS = new MaterialSetTag(keyFor("raw_ore_blocks"))
++            .add(Material.RAW_COPPER_BLOCK, Material.RAW_GOLD_BLOCK, Material.RAW_IRON_BLOCK);
 +}
 diff --git a/src/main/java/io/papermc/paper/tag/BaseTag.java b/src/main/java/io/papermc/paper/tag/BaseTag.java
 new file mode 100644