1

Villager Trading Preloaded map

Jazumes 2/25/20 4:58 pm
194
2/26/2020 3:30 pm
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.
Posted by
Jazumes
Level 17 : Journeyman Miner
4

  Have something to say?

JoinSign in

2

HoboMaggot
02/26/2020 4:07 am
Level 55 : Grandmaster Blob
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}}
2
Jazumes
02/26/2020 3:30 pm
Level 17 : Journeyman Miner
Thank you so much <3
1

Welcome