#How to make custom trade with component data
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1721752532:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Hold that item, stand near the villager, and use this command
/data modify entity @e[type=villager,limit=1,sort=nearest] Offers.Recipes[0].buy from entity @s SelectedItem
Where 0 is the number trade you want to modify -1 (so the first trade in the list is 0, second is 1, etc.)
does that villager have a job?
oh no it does not, it probably is why
either way, after you get him to take the trade, you can use a data get command to get the nbt from him to summon them with.
I'm writing from memory, so the syntax may be slightly off. Could be ... set from ...
It is, yes
I wonder if mods look at bug reports marked as invalid if there is new information provided in new comment
turns out there is a bug in 1.21 where villagers shows tooltip info like music disk song name or food value even if trade item does not have that component(aka have it removed)
It only affects Buy slot it seems