Filled Map Give Command Generator — By Map ID (Java Edition)
Uses modern Minecraft item component syntax (1.20.5+). On older versions these need the legacy NBT tag format instead.
How to Use the Filled Map Generator
- Pick a target selector (defaults to
@p, the nearest player). - Type the map ID you want the item to reference.
- Copy the generated
/givecommand.
Syntax Reference
A filled map carries a map_id item component – a single integer pointing to a specific stored map’s data:
/give @p minecraft:filled_map[map_id=0]
The ID isn’t arbitrary – it references an actual map data entry that must already exist in the world save (stored as map_<id>.dat files inside the world’s data folder), tracking that map’s center coordinates, dimension, zoom scale, and any icons/markers on it. Giving an ID with no matching data typically produces a blank/empty map rather than an error, since the game just has nothing to render for that reference.
Frequently Asked Questions
How do map IDs normally get created in the first place?
Every time a player crafts a new empty map and activates it (or copies/locks one), the game assigns the next available map ID and creates its data entry centered on wherever that map was first used. Structure-locator maps (like an Explorer Map from a cartographer) and treasure maps also generate their own new map ID the moment they’re obtained.
Can I reuse the same map ID to give multiple copies of the identical map?
Yes – that’s exactly what happens naturally when a map is cloned on a cartography table; every copy shares the same underlying map ID and therefore the same data, so all copies show identical exploration progress and update together as more of the map gets explored by any copy.
Does giving a filled map with an ID reveal terrain the player hasn’t explored?
No by itself – the map only renders terrain that’s already been recorded into that ID’s data (typically from a player having explored the area with a copy of that map, or the world seed pre-generating a treasure/structure map’s terrain snapshot). An ID with no explored area shows blank space for the unexplored parts.
What’s the difference between this and just giving an empty map?
An empty (unfilled) map, minecraft:map, isn’t tied to any map ID yet and does nothing until activated by holding it, at which point it generates a brand-new ID and starts recording centered on the player. This generator’s filled_map instead deliberately points at an existing, specific ID rather than creating one fresh.
Related Tools
- Give Command Generator – the full item builder, including all 16 special-item tabs.
- Container Give Command – give a chest pre-filled with maps and other items together.
- Locate Command Generator – find structure and biome coordinates to center a new map on.