Darkhax-Minecraft / ItemStages

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

Non-NBT version of item being staged as well as the NBT specified item #3

Closed justinrusso closed 6 years ago

justinrusso commented 6 years ago

I'm trying to stage the normal bucket in stage one, and 2 buckets filled with something in stage 3. The end result is that the empty bucket is staged in 3, as is the NBT ones (with fluids)

It does show in JEI when stage one is unlocked, but the item is still restricted, and the tooltip states that stage three is required. Unlocking stage three then un-restricts it. (which is common interaction when an item has multiple stages assigned from my experience)

Script:

mods.ItemStages.addItemStage("one", <ceramics:clay_bucket>);
mods.ItemStages.addItemStage("three", <ceramics:clay_bucket>.withTag({fluids: {FluidName: "redstone", Amount: 1000}}));
mods.ItemStages.addItemStage("three", <ceramics:clay_bucket>.withTag({fluids: {FluidName: "redstone_alloy", Amount: 1000}}));
justinrusso commented 6 years ago

Thank you!

Its fixed the issue for the most part, but now the one with no nbt tag does not get staged at all.

I am using version 1.0.16

Darkhax commented 6 years ago

Are you staging the one with no tags specifically?

This is the test script lines I added for this.

// Enchantment Book test
mods.ItemStages.addItemStage("one", <minecraft:enchanted_book>);
mods.ItemStages.addItemStage("six", <minecraft:enchanted_book>.withTag({StoredEnchantments: [{lvl: 5 as short, id: 16 as short}]}));
mods.ItemStages.addItemStage("seven", <minecraft:enchanted_book>.withTag({StoredEnchantments: [{lvl: 3 as short, id: 48 as short}]}));
mods.ItemStages.addItemStage("eight", <minecraft:enchanted_book>.withTag({StoredEnchantments: [{lvl: 1 as short, id: 35 as short}]}));
justinrusso commented 6 years ago

My fault - script was erroring. All good now! 👍