Items#

Minecraft Java Edition block and item identifiers.

GENERATED FILE - do not edit by hand. Regenerate with uv run python scripts/generate_items.py.

The identifiers come from Minecraft 26.3. They replace mcipc.rcon.enumerations.Item, which has not been updated since Minecraft 1.16 and lacks blocks such as deepslate or cherry planks. This enum is a str subclass with the same member names, so its members compare equal to the matching mcipc members and to plain strings such as "minecraft:stone", and can be passed to any mcipc command.

class mciwb.item.Item(value)[source]#

Minecraft Java Edition blocks and items.

Lookup by value accepts the identifier with or without the minecraft: prefix, e.g. Item("stone") is Item.STONE.

There is a member for every block and item, named as its identifier in upper case: Item.STONE_BRICKS is minecraft:stone_bricks. A member is also a str, so it is equal to its identifier and can be used wherever a command takes a block name.

from mciwb.imports import Item

Item.STONE_BRICKS == "minecraft:stone_bricks"   # True
Item("stone_bricks") is Item.STONE_BRICKS       # True
str(Item.STONE_BRICKS)                          # "minecraft:stone_bricks"
mciwb.item.MINECRAFT_VERSION = '26.3'#

The Minecraft Java Edition release these identifiers were generated from.

src/mciwb/item.py is generated from the Minecraft client by scripts/generate_items.py. Run that script for a new Minecraft release: see the contributing guide.