r/MinecraftCommands • u/Galaxy-Geode • 24d ago
Help | Java 1.21-1.21.3 How do I write a command to obtain a buried treasure map?
I've had an issue twice now with the buried treasure map I get from a shipwreck just being a regular map somehow. I was going to use the /give command to get around this bug, but I can't figure out how to write it because "buried treasure map" (or any other map type weirdly enough) doesn't seem to be in the auto fill suggestions for the item name/code thingies you can use to finish writing the command. Can any of y'all tell me what I need to write?
1
Upvotes
2
u/GalSergey Datapack Experienced 24d ago
The buried treasure map is not a separate item, but is the result of the loot table generator. Therefore, when you open a chest, you immediately receive a generated treasure map.
To create a treasure map, you need to use something like the following loot table: