From 68df2c9e52478f29ac29fedf2fc0a53b88c5e6bb Mon Sep 17 00:00:00 2001 From: Newwind Date: Sun, 8 Dec 2024 21:40:02 +0000 Subject: [PATCH] Add command block material tags (#11720) --- patches/api/Add-Material-Tags.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/patches/api/Add-Material-Tags.patch b/patches/api/Add-Material-Tags.patch index c416ce3d25..0860e171ef 100644 --- a/patches/api/Add-Material-Tags.patch +++ b/patches/api/Add-Material-Tags.patch @@ -9,6 +9,7 @@ are related to each other by a trait. Co-authored-by: Jake Potrebic Co-authored-by: Lena Kolb Co-authored-by: Layla Silbernberg +Co-authored-by: Newwind diff --git a/src/main/java/com/destroystokyo/paper/MaterialSetTag.java b/src/main/java/com/destroystokyo/paper/MaterialSetTag.java new file mode 100644 @@ -702,6 +703,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + .add(Material.RAW_COPPER, Material.RAW_GOLD, Material.RAW_IRON).lock(); + + /** ++ * Covers all command block types. ++ */ ++ public static final MaterialSetTag COMMAND_BLOCKS = new MaterialSetTag(keyFor("command_blocks")) ++ .endsWith("COMMAND_BLOCK") ++ .ensureSize("COMMAND_BLOCKS", 3).lock(); ++ ++ /** + * Covers the variants of deepslate ores. + */ + public static final MaterialSetTag DEEPSLATE_ORES = new MaterialSetTag(keyFor("deepslate_ores"))