1

Is it possible to change Wandering Trader/Villager Trades?

LuigiTime34's Avatar LuigiTime3411/3/23 9:40 am
1 emeralds 284 2
11/12/2023 2:04 pm
LuigiTime34's Avatar LuigiTime34
The title says it all really. I've looked around and I can't seem to find anything. Other packs just edit the NBT data of all wandering traders, so I'm wandering if theres a easier way to do this, and if there isn't, maybe you can help me out with it? For context, I'm making a datapack that just adds better trades to the wandering traders, and maybe the villagers too.

Thanks.
Posted by LuigiTime34's Avatar
LuigiTime34
Level 21 : Expert Nerd
10

Create an account or sign in to comment.

2

Peril108
11/12/2023 3:02 am
Level 1 : New Crafter
Peril108's Avatar
For wandering trader: Example you wanted 2 add trade, 6 emeralds for 2 golden apple.
/data merge <trader> {Offers:{Recipes:[{buy:{id:”emerald”,Count:6b},sell:{id:”golden_apple”,Count:2b},maxUses:<a number>}]}}
say u wanted 2 add another 1
/data modify <trader> Offers.Recipes append value{buy:{id:”golden_carrot”,Count:2b},sell:{id:”emerald”,Count:3b},maxUses:<a number>}
obviously change the trades if u want to
I’ve done this with traders, not sure if it’s the same with villagers.
MAKE SURE TO REMEMBER HOW MANY BRACKETS!
hope it helps :)
2
LuigiTime34
11/12/2023 2:04 pm
Level 21 : Expert Nerd
LuigiTime34's Avatar
Thanks for your help! :D
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome