Darkhax-Minecraft / ItemStages

Allows items to be put into stages.
GNU Lesser General Public License v2.1
7 stars 18 forks source link

Can't add items with items to stage #59

Closed Enot1laz closed 3 years ago

Enot1laz commented 3 years ago

Hi, I trying to add all mod (forestry) to stage with one method. And all OK, but some items(like bees, butterflies, saplings) with different but similar MBT don't want to add using this method. What I must do?

Darkhax commented 3 years ago

Generally you would use a * as the metadata to define a wildcard for all sub-items. Some items with complex NBT will require stages to be applied on a more specific basis.

// All lvl 5 enchantments
mods.ItemStages.addItemStage("one", <minecraft:enchanted_book>.withTag({StoredEnchantments: [{lvl: 5 as short}]}));

// All enchanted books
mods.ItemStages.addItemStage("one", <minecraft:enchanted_book:*>);