mojira.dev
MC-61041

"CustomPotionEffects", "ActiveEffects", and "Effects" NBT tags still use numeral IDs

The Bug:

"CustomPotionEffects", "ActiveEffects", and "Effects" NBT tags still use numeral IDs.

Steps to Reproduce:

  1. Give yourself a potion with custom effects using numeral IDs by using the command provided below.

    /give @s minecraft:potion{CustomPotionEffects:[{Id:1,Amplifier:0,Duration:1000}]}
  2. Take note as to whether or not "CustomPotionEffects", "ActiveEffects", and "Effects" NBT tags still use numeral IDs.

Observed Behavior:

The given NBT tags use numeral IDs.

Expected Behavior:

The given NBT tags would not use numeral IDs. Instead, they would use IDs in the form of words. For example, "minecraft:speed" instead of "1".

Linked issues

MC-61443 .give-ing items with named enchantments in the tag, doesn't give correct enchantment Resolved MC-61954 Cannot use the new enchantment/effect IDs in ench/CustomPotionEffects NBT tags Resolved MC-67606 Effect names do not work in data tags Resolved MC-70354 English Enchant NBT Code Resolved MC-71422 Effect name (instead of ID) can't be used in NBT tags Resolved

Attachments

Comments 31

I think the names are commands-only.

Right now only commands support the named ids. NBT tags are updated later and still use numerical ids.

i wanted to report this but it looks like you already are aware of it.

Confirmed for 18w07c.

Affects 18w11a

21 more comments

Maybe also include the ActiveEffects on mobs and Effects on area effect clouds to the report.

Can confirm in 1.17-1.18.2-rc1

Still an issue, this also applies to save files, which means mods that add more potion effects could encounter some serious issues.

NBT = save data...

Fixed in 23w32a.

Tom Scheeper

Avoma

(Unassigned)

Confirmed

Low

Commands

ActiveEffects, CustomPotionEffects, Effects

Minecraft 14w28a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, ..., 22w44a, 1.19.3, 1.19.4, 1.20, 1.20.1

Minecraft 18w21a, 23w32a

Retrieved