Skip to content

Commit

Permalink
Filter out admin items in 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraculixxT committed Nov 13, 2024
1 parent ea56bb0 commit a40c224
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ fun getItems(silkTouch: Boolean, removeHardToObtain: Boolean): List<Material> {
it.isItem
&& !it.isLegacy
&& it.creativeCategory != null
&& !it.name.endsWith("_ore")
&& (!it.name.endsWith("_ore") || !silkTouch)
&& !it.name.contains("WEATHERED_")
&& (!it.name.contains("OXIDIZED_") || !removeHardToObtain)
&& !it.name.startsWith("INFESTED_")
&& !it.name.endsWith("SPAWN_EGG")
&& (!it.name.contains("_CORAL") || !silkTouch)
&& !it.name.endsWith("_HEAD")
&& !it.name.contains("COMMAND_")
&& (!it.name.contains("AMETHYST") || !silkTouch)
}.toMutableList()
if (!silkTouch) list.removeAll(
Expand Down Expand Up @@ -46,7 +47,13 @@ fun getItems(silkTouch: Boolean, removeHardToObtain: Boolean): List<Material> {
Material.LINGERING_POTION,
Material.TIPPED_ARROW,
Material.ENCHANTED_BOOK,
Material.LIGHT
Material.KNOWLEDGE_BOOK,
Material.LIGHT,
Material.STRUCTURE_VOID,
Material.STRUCTURE_BLOCK,
Material.JIGSAW,
Material.BARRIER,
Material.DEBUG_STICK,
)
)
if (majorVersion >= 17) list.remove(Material.BUDDING_AMETHYST)
Expand Down

0 comments on commit a40c224

Please sign in to comment.