MineToolsminetools.cn · Minecraft Java Tools

Magenta Banner command

minecraft:magenta_bannerEnglish name Magenta Banner

Magenta Banner (minecraft:magenta_banner) can be stacked up to 16.Here are common commands for giving, placing, clearing, and checking. Click "Copy" to use one.

Common Commands

Give the nearest player 1 Magenta Banner
/give @p minecraft:magenta_banner
Give a stack (16)
/give @p minecraft:magenta_banner 16
Give all players
/give @a minecraft:magenta_banner
Gold Name
/give @p magenta_banner[custom_name={translate:"block.minecraft.magenta_banner",color:"gold",italic:false}]

To use a name of your own, replace the translate part with plain text

Place one at your feet
/setblock ~ ~ ~ minecraft:magenta_banner
Fill a 5×5 Area
/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:magenta_banner

Replaces the block layer beneath you

Clear all Magenta Banner from the player
/clear @p minecraft:magenta_banner
Check if holding Magenta Banner
/execute as @a if items entity @s weapon.mainhand minecraft:magenta_banner run title @s actionbar ["",{text:"✔ ",color:"green"},{translate:"block.minecraft.magenta_banner"}]
Edit in the Item Generator (name, enchantments, attributes, ...)

Basic Information

Item ID
minecraft:magenta_banner
Max Stack Size
16
Type
Block (placeable)

Similar Items

Items Made of the Same Material

Data from the official Minecraft Java 26.3 data. All commands have passed the 26.3 syntax check.