mojira.dev
MC-271218

Empty Offers:{} NBT doesn't disable trades anymore

I noticed when I am making a datapack, the Offers NBT is not making an effect on the wandering trader.
Previously, in 1.20.4 if i would write this command:

/summon minecraft:wandering_trader ~ ~ ~ {Offers:{}}

Then the wandering trader wouldn't have any trades. It made it useful that i could disable the trading.

 

However in 1.20.5 if a write the same command, the wandering trader will have trades, ignoring the empty Offers:{} NBT.

Comments 2

May or may not be unintended behaviour, but in either case using {Offers:{Recipes:[]}} instead does remove all trades.

Thank you! It does work! I haven't thought about that. It is kind of strange that the old method does not work anymore for this.

MrPlazma

etanaratsastaja

Confirmed

Platform

Normal

Commands, Trading

24w05a, 1.20.5, 1.21, 1.21.1, 24w35a

24w44a

Retrieved