From 7c75e3b68aefba48c8c523157c65cdf2971f94b1 Mon Sep 17 00:00:00 2001 From: Jacob Andersen Date: Sun, 9 Jan 2022 20:25:22 -0800 Subject: [PATCH] Add material tags for deepslate ores (#7174) --- patches/api/Add-Material-Tags.patch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/patches/api/Add-Material-Tags.patch b/patches/api/Add-Material-Tags.patch index b05eec7a1c..a1a00fc90b 100644 --- a/patches/api/Add-Material-Tags.patch +++ b/patches/api/Add-Material-Tags.patch @@ -682,12 +682,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + .add(Material.RAW_COPPER, Material.RAW_GOLD, Material.RAW_IRON); + + /** ++ * Covers the variants of deepslate ores. ++ */ ++ public static final MaterialSetTag DEEPSLATE_ORES = new MaterialSetTag(keyFor("deepslate_ores")) ++ .add(material -> material.name().startsWith("DEEPSLATE_") && material.name().endsWith("_ORE")) ++ .ensureSize("DEEPSLATE_ORES", 8); ++ ++ /** + * 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); + -+ + /** + * Covers all oxidized copper blocks. + */