1
I'm trying to get a villager to trade a pre-loaded map with an id of 56.
/summon villager ~ ~2 ~ {VillagerData:{profession:cartographer,level:5,type:plains},Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,CustomName:"\"George\"",Offers:{Recipes:[{buy:{id:emerald,Count:1},sell:{id:filled_map{map:56},Count:1,tag:{display:{Name:"\"Library Map\"",Lore:["\"Navigate the library!\""]}}},rewardExp:0b,maxUses:9999999}]}}
The highlighted area gives me an error but it normally works with /give. If someone knows a solution please let me know, also if there is a way to make it so the trade for the map is completely free no item required let me know as well.
/summon villager ~ ~2 ~ {VillagerData:{profession:cartographer,level:5,type:plains},Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,CustomName:"\"George\"",Offers:{Recipes:[{buy:{id:emerald,Count:1},sell:{id:filled_map{map:56},Count:1,tag:{display:{Name:"\"Library Map\"",Lore:["\"Navigate the library!\""]}}},rewardExp:0b,maxUses:9999999}]}}
The highlighted area gives me an error but it normally works with /give. If someone knows a solution please let me know, also if there is a way to make it so the trade for the map is completely free no item required let me know as well.
Create an account or sign in to comment.
2
2
Usually when converted into the mob entity format, you need to add a "tag" nbt tag for custom nbt like displaying item names, etc
so: {id:filled_map{tag:{map:56}}
so: {id:filled_map{tag:{map:56}}
1
Thank you so much <3