mojira.dev
MC-259959

Villager doesn't understand shortened NBT of "buy" and "buyB" items correctly

I wanted to summon a villager who should buy a bottle of water and sell a potion of night vision.

What I expected to happen was...:
He would sell me the potion.

What actually happened was...:
He didn't even see the water bottle in my inventory!

(After that, I tried to use {Potion:"minecraft:water"} instead of {Potion:water}, and it worked! But it's inconvenient to use in such way!)

Steps to Reproduce:
1. Run the command in command.txt

2. Try to buy the potion.

Linked issues

Attachments

Comments 2

Caused by MC-120371; the tag contents are never re-saved, soit never gets saved with the namespace if you don't provide it.

The fact the villager denies the default water bottles is because the NBT simply doesn't match.

Duplicate of MC-120371.

Her0br0bus

(Unassigned)

Unconfirmed

1.19.3

Retrieved