As you know.. since Villagers were introduced - we've had ways to have custom Trades & also have villagers sell Custom items - such as enchanted item with lores - & since 1.11 - we've had 'Cartographers' able to sell special maps to Mansion/Sea Monuments
I was wondering if any Command Block experts out there know of a way to get Villagers to have custom Trades where they sell custom maps.
I know the maps are called 'filled_map' when empty maps are used, & using [F3]'s 'advanced tooltips' each filled map seems to have a unique number e.g '(#0358/1)' and a 'typical' custom /summon command is something like :-
So I was thinking that PERHAPS the sell part would be something like '......sell:{id:"filled_map",Count:1,tag{id:6}},.....' (where 'id:6' means the villager will sell a map number '(#0358/6)' ) however - this of course doesn't work.
Reading on the Wiki it seems that filled map data is NOT assigned to the map itself but to a file that saved onto the server so personally I don't it is at all possible...
... but can some expert confirm/deny this.. Is such a thing possible ???
If so - Whats the command you can use in a Command block ??
Ok after many attempts - I seemed to figured it out all by myself, so I thought I'd post here what I found since 12 people have looked at this thread (no replies though so guessing THEY wanted to know how as well). It seems I was nearly right in my first assumption of what to use...
This is a command that summons in a villager that will sell you a custom map
As you can see - it wasn't a 'tag' needed in the command but 'Damage'
To set up the custom map:
First you need to get an empty map & open it when in the area you want the map to show
Look at the title of the Map & it'll have something like 'Map #4' - or if you have advanded tooltip on ([f3] + H) you'll see 'Map (#0358/4)'
Put the Number of the map into 'Damage' & when you buy one from the villager, he'll give you that particular map
Only tried this out on Single player but it seems to work, but now it's possible to get villagers to sell treasure maps - or maps to specific locations. While they're not like Cartographer maps.. it's a start
I didn't think I'd find the specific command that I wanted anywhere, but here it is :D!
However, the command to summon a villager with a custom trade has changed to fit their new system in the new updates. Is there any way to make them sell custom maps using the new command?
Here is my command, maybe theres some kind of flaw I'm not noticing. When I run the command and trade with the new villager, I get a map with the Id 0 instead of 39 and it doesn't load the custom map I designed.
/summon villager ~ ~.5 ~ {VillagerData:{profession:cartographer,level:2,type:plains},Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,CustomName:"\"Suspicious Villager\"",Offers:{Recipes:[{buy:{id:emerald,Count:8},buyB:{id:map,Count:1},sell:{id:filled_map,Count:1b,Damage:39,tag:{display:{Name:"\"Puzzle Map #1\"",Lore:["\"Can you figure it out?\""]}}},maxUses:9999999}]}}
I didn't think I'd find the specific command that I wanted anywhere, but here it is :D!
However, the command to summon a villager with a custom trade has changed to fit their new system in the new updates. Is there any way to make them sell custom maps using the new command?
Here is my command, maybe theres some kind of flaw I'm not noticing. When I run the command and trade with the new villager, I get a map with the Id 0 instead of 39 and it doesn't load the custom map I designed.
/summon villager ~ ~.5 ~ {VillagerData:{profession:cartographer,level:2,type:plains},Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,CustomName:"\"Suspicious Villager\"",Offers:{Recipes:[{buy:{id:emerald,Count:8},buyB:{id:map,Count:1},sell:{id:filled_map,Count:1b,Damage:39,tag:{display:{Name:"\"Puzzle Map #1\"",Lore:["\"Can you figure it out?\""]}}},maxUses:9999999}]}}
Thanks!
/summon villager ~ ~0.5 ~ {VillagerData:{profession:cartographer,level:2,type:plains},Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,CustomName:"\"Suspicious Villager\"",Offers:{Recipes:[{buy:{id:emerald,Count:8},buyB:{id:map,Count:1},sell:{id:filled_map,Count:1b,tag:{map:39,display:{Name:"\"Puzzle Map #1\"",Lore:["\"Can you figure it out?\""]}}},maxUses:9999999}]}}
As you know.. since Villagers were introduced - we've had ways to have custom Trades & also have villagers sell Custom items - such as enchanted item with lores - & since 1.11 - we've had 'Cartographers' able to sell special maps to Mansion/Sea Monuments
I was wondering if any Command Block experts out there know of a way to get Villagers to have custom Trades where they sell custom maps.
I know the maps are called 'filled_map' when empty maps are used, & using [F3]'s 'advanced tooltips' each filled map seems to have a unique number e.g '(#0358/1)' and a 'typical' custom /summon command is something like :-
So I was thinking that PERHAPS the sell part would be something like '......sell:{id:"filled_map",Count:1,tag{id:6}},.....' (where 'id:6' means the villager will sell a map number '(#0358/6)' ) however - this of course doesn't work.
Reading on the Wiki it seems that filled map data is NOT assigned to the map itself but to a file that saved onto the server so personally I don't it is at all possible...
... but can some expert confirm/deny this.. Is such a thing possible ???
If so - Whats the command you can use in a Command block ??
Thanks in Advance
Ok after many attempts - I seemed to figured it out all by myself, so I thought I'd post here what I found since 12 people have looked at this thread (no replies though so guessing THEY wanted to know how as well). It seems I was nearly right in my first assumption of what to use...
This is a command that summons in a villager that will sell you a custom map
As you can see - it wasn't a 'tag' needed in the command but 'Damage'
To set up the custom map:
Only tried this out on Single player but it seems to work, but now it's possible to get villagers to sell treasure maps - or maps to specific locations. While they're not like Cartographer maps.. it's a start
I didn't think I'd find the specific command that I wanted anywhere, but here it is :D!
However, the command to summon a villager with a custom trade has changed to fit their new system in the new updates. Is there any way to make them sell custom maps using the new command?
Here is my command, maybe theres some kind of flaw I'm not noticing. When I run the command and trade with the new villager, I get a map with the Id 0 instead of 39 and it doesn't load the custom map I designed.
/summon villager ~ ~.5 ~ {VillagerData:{profession:cartographer,level:2,type:plains},Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,CustomName:"\"Suspicious Villager\"",Offers:{Recipes:[{buy:{id:emerald,Count:8},buyB:{id:map,Count:1},sell:{id:filled_map,Count:1b,Damage:39,tag:{display:{Name:"\"Puzzle Map #1\"",Lore:["\"Can you figure it out?\""]}}},maxUses:9999999}]}}
Thanks!
==Links==
๐๐๐๐จ๐ง๐ ๐๐ก๐๐ง๐ง๐๐ฅ- https://www.youtube.com/channel/UCQYroXqdZtYBnyspneetBGA/featured
๐๐ง๐ฌ๐ญ๐๐ ๐ซ๐๐ฆ- https://www.instagram.com/cowsdabest_yt/?hl=en
๐๐ฐ๐ข๐ญ๐ญ๐๐ซ- https://twitter.com/cowsdabestyt
๐๐ข๐ฌ๐๐จ๐ซ๐- https://discord.gg/H2NfhpQ
==DISCLAIMER!==
Please credit me if you are going to use it in a video or a map!
This worked thank you so much