Wiki 9Minecraft Wiki 9Minecraft

Matching on component data in Item Obliterator

Java EditionModGuides 5FAQ 6Related mods 60
DownloadItem Obliterator

Get the files on 9Minecraft

Sometimes the id is not specific enough — you want one potion gone, not every potion. blacklisted_component_data matches against an item's component data instead of its id.

"Potion:\"minecraft:regeneration\""

If the text appears anywhere in the item's components, the item is removed. Regular expressions work here too, with the same leading !.

This check is much more expensive than an id lookup, because every component of every stack has to be examined. Use it for the handful of cases that need it rather than as a general tool.

To find the right value, turn on debug_print_components. It logs the components of whatever you are holding once a second, so you can copy the exact text out of the log.