mojira.dev
MC-138953

Custom potions lose NBT after brewing

The bug

Custom potions lose their NBT after adding ingredients in a brewing stand.

Reproduction steps

  1. Create a potion item with custom effects

    /give @s minecraft:potion{Potion:"minecraft:strength",CustomPotionEffects:[{Id:14b,Amplifier:0b,Duration:1200,Ambient:0b,ShowParticles:1b,ShowIcon:1b}],CustomPotionColor:255}
  2. Place the potion in a brewing stand and add for example Redstone Dust as ingredient

  3. Once brewing finished, look at the result potion
    ❌ The custom effect got lost

Linked issues

Attachments

Comments 12

Can confirm that this issue is still present in 21w05b. You can use the following command to reproduce this issue:

/give @s minecraft:potion{Potion:"minecraft:strength",CustomPotionEffects:[{Id:14b,Amplifier:0b,Duration:1200,Ambient:0b,ShowParticles:1b,ShowIcon:1b}],CustomPotionColor:255}

Thanks to @unknown, for providing the command.

Thanks, I have included the command in the description.

@@unknown, what do you mean by "adding ingredients in a crafting table"?

after adding ingredients in a brewing table or crafting

In case you mean crafting tipped arrows, that seems to preserve the custom effects in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w15a.

2 more comments

Can confirm in 1.18.2 and 22w18a.

Can confirm in 23w33a.

This is still an issue in 24w11a. But, if a potion just has minecraft:potion_contents.custom_effects, without setting minecraft:potion_contents.potion, it will now simply fail to brew altogether instead of converting to an uncraftable potion as before.

(It will, however, still attempt to brew into a new potion, thus wasting potion ingredients, but that's a whole other issue entirely.)

Can confirm in 1.21.8.

This issue contrasts the crafting of tipped arrows. Tipped arrows can be crafted with custom potions and yield the expected result: a custom tipped arrow.

You can turn a custom lingering potion into custom tipped arrows, but not a custom splash potion into a custom lingering potion.

rocky

(Unassigned)

Confirmed

Commands

Minecraft 18w44a, 1.14.4, 19w44a, 1.16, 1.16.2 Release Candidate 1, ..., 1.19.2, 1.20.1, 23w31a, 1.20.2, 24w10a

Retrieved