Updated:

Swamp Hut Map: item ID and commands

The ID for Swamp Hut Map is minecraft:swamp_hut_map. It is an item, used with /give and /clear. It was added in Java 26.3.

Basic data

NameSwamp Hut Map
ID (Java Edition)minecraft:swamp_hut_map
TypeItem
Java versionsJava 26.3 and later
Bedrock 26.52This ID is not accepted as is

Commands you can copy

Java Edition

Give one

/give @p minecraft:swamp_hut_map 1

Put in main hand (Java 1.17+)

/item replace entity @p weapon.mainhand with minecraft:swamp_hut_map

Remove from inventory

/clear @p minecraft:swamp_hut_map

Open this command in the Give generator

Bedrock Edition

Bedrock does not accept this ID. Check the Bedrock form with the Java / Bedrock converter.

Version notes

It was added in Java 26.3. Older versions report that the ID is unknown.

Java 1.20.5 and later write extra item data in [ ] (components); 1.20.4 and earlier use { } (NBT). A plain /give with only the ID is the same in both.

Questions

What is the ID for Swamp Hut Map?

It is minecraft:swamp_hut_map. In commands you can also write swamp_hut_map without minecraft:.

Why does the command turn red?

The ID is misspelled, or it does not exist in that version yet. Swamp Hut Map works in Java 26.3 and later. The Command Error Doctor can check it.

Related IDs