blocks – Block descriptions

The blocks module contains descriptions of blocks.

class bravo.blocks.Block(slot, name, secondary=0, drop=None, replace=0, ratio=1, quantity=1, dim=16, breakable=True, orientation=None, vanishes=False)[source]

Bases: object

A model for a block.

There are lots of rules and properties specific to different types of blocks. This class encapsulates those properties in a singleton-style interface, allowing many blocks to be referenced in one location.

The basic idea of this class is to provide some centralized data and information about blocks, in order to abstract away as many special cases as possible. In general, if several blocks all have some special behavior, then it may be worthwhile to store data describing that behavior on this class rather than special-casing it in multiple places.

Parameters:
  • slot (int) – The index of this block. Must be globally unique.
  • name (str) – A common name for this block.
  • secondary (int) – The metadata/damage/secondary attribute for this block. Defaults to zero.
  • drop (tuple) – The type of block that should be dropped when an instance of this block is destroyed. Defaults to the block value, to drop instances of this same type of block. To indicate that this block does not drop anything, set to air (0, 0).
  • replace (int) – The type of block to place in the map when instances of this block are destroyed. Defaults to air.
  • ratio (float) – The probability of this block dropping a block on destruction.
  • quantity (int) – The number of blocks dropped when this block is destroyed.
  • dim (int) – How much light dims when passing through this kind of block. Defaults to 16 = opaque block.
  • breakable (bool) – Whether this block is diggable, breakable, bombable, explodeable, etc. Only a few blocks actually genuinely cannot be broken, so the default is True.
  • orientation (tuple) – The orientation data for a block. See orientable() for an explanation. The data should be in standard face order.
  • vanishes (bool) – Whether this block vanishes, or is replaced by, another block when built upon.
face(metadata)[source]

Retrieve the face for given metadata corresponding to an orientation, or None if the metadata is invalid for this block.

This method only returns valid data for orientable blocks; check orientable() first.

orientable()[source]

Whether this block can be oriented.

Orientable blocks are positioned according to the face on which they are built. They may not be buildable on all faces. Blocks are only orientable if their metadata can be used to directly and uniquely determine the face against which they were built.

Ladders are orientable, signposts are not.

Return type:bool
Returns:True if this block can be oriented, False if not.
orientation(face)[source]

Retrieve the metadata for a certain orientation, or None if this block cannot be built against the given face.

This method only returns valid data for orientable blocks; check orientable() first.

class bravo.blocks.Item(slot, name, secondary=0)[source]

Bases: object

An item.

bravo.blocks.armor_boots = (301, 305, 309, 313, 317)

List of slots of boots.

bravo.blocks.armor_chestplates = (299, 303, 307, 311, 315)

List of slots of chestplates.

Note that slot 303 (chainmail chestplate) is a chestplate, even though it is not normally obtainable.

bravo.blocks.armor_helmets = (86, 298, 302, 306, 310, 314)

List of slots of helmets.

Note that slot 86 (pumpkin) is a helmet.

bravo.blocks.armor_leggings = (300, 304, 308, 312, 316)

List of slots of leggings.

bravo.blocks.blocks = {0: Block((0, 0) 'air': unbreakable, transparent), 1: Block((1, 0) 'stone': drops 1 (key (4, 0), rate 100.00%)), 2: Block((2, 0) 'grass': drops 1 (key (3, 0), rate 100.00%)), 3: Block((3, 0) 'dirt'), 4: Block((4, 0) 'cobblestone'), 5: Block((5, 0) 'wood'), 'wooden-door-block': Block((64, 0) 'wooden-door-block': drops 1 (key (324, 0), rate 100.00%)), 7: Block((7, 0) 'bedrock': unbreakable), 8: Block((8, 0) 'water': unbreakable, translucent (3)), 9: Block((9, 0) 'spring': unbreakable, translucent (3)), 10: Block((10, 0) 'lava': unbreakable, transparent), 11: Block((11, 0) 'lava-spring': unbreakable, transparent), 12: Block((12, 0) 'sand'), 13: Block((13, 0) 'gravel': drops 1 (key (318, 0), rate 10.00%)), 14: Block((14, 0) 'gold-ore'), 15: Block((15, 0) 'iron-ore'), 16: Block((16, 0) 'coal-ore': drops 1 (key (263, 0), rate 100.00%)), 17: Block((17, 3) 'jungle-log': drops 1 (key (17, 0), rate 100.00%)), 18: Block((18, 3) 'jungle-leaf': translucent (1), drops 1 (key (6, 0), rate 100.00%)), 19: Block((19, 0) 'sponge'), 20: Block((20, 0) 'glass': transparent, drops 1 (key (0, 0), rate 100.00%)), 21: Block((21, 0) 'lapis-lazuli-ore': drops 6 (key (351, 4), rate 100.00%)), 22: Block((22, 0) 'lapis-lazuli-block'), 23: Block((23, 0) 'dispenser'), 24: Block((24, 0) 'sandstone'), 25: Block((25, 0) 'note-block'), 26: Block((26, 0) 'bed-block': drops 1 (key (355, 0), rate 100.00%)), 'redstone-ore': Block((73, 0) 'redstone-ore': drops 5 (key (331, 0), rate 100.00%)), 28: Block((28, 0) 'detector-rail'), 29: Block((29, 0) 'sticky-piston'), 30: Block((30, 0) 'spider-web'), 31: Block((31, 0) 'tall-grass'), 32: Block((32, 0) 'shrub'), 33: Block((33, 0) 'piston'), 35: Block((35, 15) 'black-wool': drops 1 (key (35, 0), rate 100.00%)), 6: Block((6, 3) 'jungle-sapling': transparent, drops 1 (key (6, 0), rate 100.00%)), 38: Block((38, 0) 'rose': transparent), 39: Block((39, 0) 'brown-mushroom': transparent), 40: Block((40, 0) 'red-mushroom': transparent), 'rose': Block((38, 0) 'rose': transparent), 42: Block((42, 0) 'iron'), 43: Block((43, 0) 'double-step'), 44: Block((44, 3) 'cobblestone-step': transparent, drops 1 (key (44, 0), rate 100.00%)), 45: Block((45, 0) 'brick'), 46: Block((46, 0) 'tnt'), 47: Block((47, 0) 'bookshelf'), 48: Block((48, 0) 'mossy-cobblestone'), 49: Block((49, 0) 'obsidian'), 50: Block((50, 0) 'torch': transparent), 'wood': Block((5, 0) 'wood'), 52: Block((52, 0) 'mob-spawner': transparent, drops 1 (key (0, 0), rate 100.00%)), 53: Block((53, 0) 'wooden-stairs': transparent), 54: Block((54, 0) 'chest'), 55: Block((55, 0) 'redstone-wire': transparent), 56: Block((56, 0) 'diamond-ore': drops 1 (key (264, 0), rate 100.00%)), 57: Block((57, 0) 'diamond-block'), 58: Block((58, 0) 'workbench'), 'gravel': Block((13, 0) 'gravel': drops 1 (key (318, 0), rate 10.00%)), 'spider-web': Block((30, 0) 'spider-web'), 61: Block((61, 0) 'furnace'), 62: Block((62, 0) 'burning-furnace': drops 1 (key (61, 0), rate 100.00%)), 63: Block((63, 0) 'signpost': transparent, drops 1 (key (323, 0), rate 100.00%)), 64: Block((64, 0) 'wooden-door-block': drops 1 (key (324, 0), rate 100.00%)), 65: Block((65, 0) 'ladder': transparent), 66: Block((66, 0) 'tracks': transparent), 'sapling': Block((6, 0) 'sapling': transparent), 68: Block((68, 0) 'wall-sign': transparent, drops 1 (key (323, 0), rate 100.00%)), 69: Block((69, 0) 'lever': transparent), 70: Block((70, 0) 'stone-plate': transparent), 71: Block((71, 0) 'iron-door-block': drops 1 (key (330, 0), rate 100.00%)), 72: Block((72, 0) 'wooden-plate': transparent), 73: Block((73, 0) 'redstone-ore': drops 5 (key (331, 0), rate 100.00%)), 74: Block((74, 0) 'glowing-redstone-ore': drops 5 (key (331, 0), rate 100.00%)), 75: Block((75, 0) 'redstone-torch-off': transparent), 76: Block((76, 0) 'redstone-torch': transparent), 77: Block((77, 0) 'stone-button': transparent), 78: Block((78, 0) 'snow'), 79: Block((79, 0) 'ice': translucent (3), becomes 9, drops 1 (key (0, 0), rate 100.00%)), 80: Block((80, 0) 'snow-block'), 81: Block((81, 0) 'cactus': transparent), 82: Block((82, 0) 'clay': drops 4 (key (337, 0), rate 100.00%)), 83: Block((83, 0) 'reed': transparent, drops 1 (key (338, 0), rate 100.00%)), 84: Block((84, 0) 'jukebox'), 'iron-ore': Block((15, 0) 'iron-ore'), 86: Block((86, 0) 'pumpkin'), 87: Block((87, 0) 'brimstone'), 88: Block((88, 0) 'slow-sand'), 89: Block((89, 0) 'lightstone': drops 1 (key (348, 0), rate 100.00%)), 90: Block((90, 0) 'portal': transparent), 91: Block((91, 0) 'jack-o-lantern'), 92: Block((92, 0) 'cake-block': transparent), 93: Block((93, 0) 'redstone-repeater-off': transparent, drops 1 (key (356, 0), rate 100.00%)), 94: Block((94, 0) 'redstone-repeater-on': transparent, drops 1 (key (356, 0), rate 100.00%)), 95: Block((95, 0) 'locked-chest'), 96: Block((96, 0) 'trapdoor'), 97: Block((97, 0) 'hidden-silverfish': drops 1 (key (0, 0), rate 100.00%)), 98: Block((98, 0) 'stone-brick'), 99: Block((99, 0) 'huge-brown-mushroom': drops 2 (key (39, 0), rate 100.00%)), 100: Block((100, 0) 'huge-red-mushroom': drops 2 (key (40, 0), rate 100.00%)), 101: Block((101, 0) 'iron-bars'), 102: Block((102, 0) 'glass-pane'), 103: Block((103, 0) 'melon'), 104: Block((104, 0) 'pumpkin-stem': drops 3 (key (361, 0), rate 100.00%)), 105: Block((105, 0) 'melon-stem': drops 3 (key (362, 0), rate 100.00%)), 106: Block((106, 0) 'vine'), 107: Block((107, 0) 'fence-gate'), 'diamond-ore': Block((56, 0) 'diamond-ore': drops 1 (key (264, 0), rate 100.00%)), 'glowing-redstone-ore': Block((74, 0) 'glowing-redstone-ore': drops 5 (key (331, 0), rate 100.00%)), 'tall-grass': Block((31, 0) 'tall-grass'), 111: Block((111, 0) 'lily-pad': drops 1 (key (0, 0), rate 100.00%)), 112: Block((112, 0) 'nether-brick'), 'crops': Block((59, 0) 'crops': transparent), 'sand': Block((12, 0) 'sand'), 115: Block((115, 0) 'nether-wart-block': drops 1 (key (372, 0), rate 100.00%)), 'clay': Block((82, 0) 'clay': drops 4 (key (337, 0), rate 100.00%)), 'lever': Block((69, 0) 'lever': transparent), 'double-step': Block((43, 0) 'double-step'), 'bed-block': Block((26, 0) 'bed-block': drops 1 (key (355, 0), rate 100.00%)), 129: Block((129, 0) 'emerald-ore'), 'workbench': Block((58, 0) 'workbench'), 'orange-wool': Block((35, 1) 'orange-wool': drops 1 (key (35, 0), rate 100.00%)), 'hidden-silverfish': Block((97, 0) 'hidden-silverfish': drops 1 (key (0, 0), rate 100.00%)), 'fence': Block((85, 0) 'fence': transparent), 'dark-green-wool': Block((35, 13) 'dark-green-wool': drops 1 (key (35, 0), rate 100.00%)), 'spring': Block((9, 0) 'spring': unbreakable, translucent (3)), 'torch': Block((50, 0) 'torch': transparent), 'vine': Block((106, 0) 'vine'), 109: Block((109, 0) 'stone-brick-stairs'), 'sponge': Block((19, 0) 'sponge'), 'redstone-repeater-off': Block((93, 0) 'redstone-repeater-off': transparent, drops 1 (key (356, 0), rate 100.00%)), 'melon': Block((103, 0) 'melon'), 'iron-bars': Block((101, 0) 'iron-bars'), 110: Block((110, 0) 'mycelium': drops 1 (key (3, 0), rate 100.00%)), 'cactus': Block((81, 0) 'cactus': transparent), 'sticky-piston': Block((29, 0) 'sticky-piston'), 'huge-red-mushroom': Block((100, 0) 'huge-red-mushroom': drops 2 (key (40, 0), rate 100.00%)), 'brown-mushroom': Block((39, 0) 'brown-mushroom': transparent), 27: Block((27, 0) 'powered-rail'), 'shrub': Block((32, 0) 'shrub'), 'birch-log': Block((17, 2) 'birch-log': drops 1 (key (17, 0), rate 100.00%)), 113: Block((113, 0) 'nether-brick-fence'), 'blue-wool': Block((35, 11) 'blue-wool': drops 1 (key (35, 0), rate 100.00%)), 114: Block((114, 0) 'nether-brick-stairs'), 'ice': Block((79, 0) 'ice': translucent (3), becomes 9, drops 1 (key (0, 0), rate 100.00%)), 108: Block((108, 0) 'brick-stairs'), 'piston': Block((33, 0) 'piston'), 'pine-log': Block((17, 1) 'pine-log': drops 1 (key (17, 0), rate 100.00%)), 'nether-wart-block': Block((115, 0) 'nether-wart-block': drops 1 (key (372, 0), rate 100.00%)), 'lightstone': Block((89, 0) 'lightstone': drops 1 (key (348, 0), rate 100.00%)), 'stone-step': Block((44, 0) 'stone-step': transparent), 'cake-block': Block((92, 0) 'cake-block': transparent), 'dirt': Block((3, 0) 'dirt'), 'pumpkin': Block((86, 0) 'pumpkin'), 'red-wool': Block((35, 14) 'red-wool': drops 1 (key (35, 0), rate 100.00%)), 'water': Block((8, 0) 'water': unbreakable, translucent (3)), 'step': Block((44, 0) 'step': transparent), 'jungle-leaf': Block((18, 3) 'jungle-leaf': translucent (1), drops 1 (key (6, 0), rate 100.00%)), 'nether-brick': Block((112, 0) 'nether-brick'), 37: Block((37, 0) 'flower': transparent), 'emerald-ore': Block((129, 0) 'emerald-ore'), 'stone': Block((1, 0) 'stone': drops 1 (key (4, 0), rate 100.00%)), 'brown-wool': Block((35, 12) 'brown-wool': drops 1 (key (35, 0), rate 100.00%)), 'jungle-sapling': Block((6, 3) 'jungle-sapling': transparent, drops 1 (key (6, 0), rate 100.00%)), 'normal-leaf': Block((18, 0) 'normal-leaf': translucent (1), drops 1 (key (6, 0), rate 100.00%)), 'leaves': Block((18, 0) 'leaves': translucent (1), drops 1 (key (6, 0), rate 11.11%)), 'cyan-wool': Block((35, 9) 'cyan-wool': drops 1 (key (35, 0), rate 100.00%)), 'tracks': Block((66, 0) 'tracks': transparent), 59: Block((59, 0) 'crops': transparent), 'fence-gate': Block((107, 0) 'fence-gate'), 41: Block((41, 0) 'gold'), 'wooden-stairs': Block((53, 0) 'wooden-stairs': transparent), 'powered-rail': Block((27, 0) 'powered-rail'), 'jukebox': Block((84, 0) 'jukebox'), 'yellow-wool': Block((35, 4) 'yellow-wool': drops 1 (key (35, 0), rate 100.00%)), 'magenta-wool': Block((35, 2) 'magenta-wool': drops 1 (key (35, 0), rate 100.00%)), 'detector-rail': Block((28, 0) 'detector-rail'), 'normal-sapling': Block((6, 0) 'normal-sapling': transparent), 'stone-stairs': Block((67, 0) 'stone-stairs': transparent), 'diamond-block': Block((57, 0) 'diamond-block'), 133: Block((133, 0) 'emerald-block'), 'brimstone': Block((87, 0) 'brimstone'), 'melon-stem': Block((105, 0) 'melon-stem': drops 3 (key (362, 0), rate 100.00%)), 'log': Block((17, 0) 'log'), 'brick-stairs': Block((108, 0) 'brick-stairs'), 'snow-block': Block((80, 0) 'snow-block'), 'trapdoor': Block((96, 0) 'trapdoor'), 'lava-spring': Block((11, 0) 'lava-spring': unbreakable, transparent), 'red-mushroom': Block((40, 0) 'red-mushroom': transparent), 'light-blue-wool': Block((35, 3) 'light-blue-wool': drops 1 (key (35, 0), rate 100.00%)), 51: Block((51, 0) 'fire': transparent), 'bedrock': Block((7, 0) 'bedrock': unbreakable), 'pine-sapling': Block((6, 1) 'pine-sapling': transparent, drops 1 (key (6, 0), rate 100.00%)), 'lily-pad': Block((111, 0) 'lily-pad': drops 1 (key (0, 0), rate 100.00%)), 'brick': Block((45, 0) 'brick'), 'mossy-cobblestone': Block((48, 0) 'mossy-cobblestone'), 'jungle-log': Block((17, 3) 'jungle-log': drops 1 (key (17, 0), rate 100.00%)), 'fire': Block((51, 0) 'fire': transparent), 'signpost': Block((63, 0) 'signpost': transparent, drops 1 (key (323, 0), rate 100.00%)), 'glass': Block((20, 0) 'glass': transparent, drops 1 (key (0, 0), rate 100.00%)), 'reed': Block((83, 0) 'reed': transparent, drops 1 (key (338, 0), rate 100.00%)), 'lime-wool': Block((35, 5) 'lime-wool': drops 1 (key (35, 0), rate 100.00%)), 'bookshelf': Block((47, 0) 'bookshelf'), 'gold': Block((41, 0) 'gold'), 'wall-sign': Block((68, 0) 'wall-sign': transparent, drops 1 (key (323, 0), rate 100.00%)), 'normal-log': Block((17, 0) 'normal-log'), 'tnt': Block((46, 0) 'tnt'), 'pine-leaf': Block((18, 1) 'pine-leaf': translucent (1), drops 1 (key (6, 0), rate 100.00%)), 'wool': Block((35, 0) 'wool'), 'birch-sapling': Block((6, 2) 'birch-sapling': transparent, drops 1 (key (6, 0), rate 100.00%)), 60: Block((60, 0) 'soil': transparent, drops 1 (key (3, 0), rate 100.00%)), 'jack-o-lantern': Block((91, 0) 'jack-o-lantern'), 'wooden-plate': Block((72, 0) 'wooden-plate': transparent), 'air': Block((0, 0) 'air': unbreakable, transparent), 'iron': Block((42, 0) 'iron'), 'dispenser': Block((23, 0) 'dispenser'), 'grass': Block((2, 0) 'grass': drops 1 (key (3, 0), rate 100.00%)), 'redstone-wire': Block((55, 0) 'redstone-wire': transparent), 'black-wool': Block((35, 15) 'black-wool': drops 1 (key (35, 0), rate 100.00%)), 'cobblestone-step': Block((44, 3) 'cobblestone-step': transparent, drops 1 (key (44, 0), rate 100.00%)), 'gold-ore': Block((14, 0) 'gold-ore'), 'huge-brown-mushroom': Block((99, 0) 'huge-brown-mushroom': drops 2 (key (39, 0), rate 100.00%)), 'white-wool': Block((35, 0) 'white-wool'), 'stone-button': Block((77, 0) 'stone-button': transparent), 'soil': Block((60, 0) 'soil': transparent, drops 1 (key (3, 0), rate 100.00%)), 'locked-chest': Block((95, 0) 'locked-chest'), 'glass-pane': Block((102, 0) 'glass-pane'), 'redstone-torch': Block((76, 0) 'redstone-torch': transparent), 'iron-door-block': Block((71, 0) 'iron-door-block': drops 1 (key (330, 0), rate 100.00%)), 'light-gray-wool': Block((35, 8) 'light-gray-wool': drops 1 (key (35, 0), rate 100.00%)), 'nether-brick-fence': Block((113, 0) 'nether-brick-fence'), 'stone-brick': Block((98, 0) 'stone-brick'), 'purple-wool': Block((35, 10) 'purple-wool': drops 1 (key (35, 0), rate 100.00%)), 'birch-leaf': Block((18, 2) 'birch-leaf': translucent (1), drops 1 (key (6, 0), rate 100.00%)), 'coal-ore': Block((16, 0) 'coal-ore': drops 1 (key (263, 0), rate 100.00%)), 'nether-brick-stairs': Block((114, 0) 'nether-brick-stairs'), 'sandstone': Block((24, 0) 'sandstone'), 'snow': Block((78, 0) 'snow'), 'lava': Block((10, 0) 'lava': unbreakable, transparent), 'stone-brick-stairs': Block((109, 0) 'stone-brick-stairs'), 'chest': Block((54, 0) 'chest'), 'gray-wool': Block((35, 7) 'gray-wool': drops 1 (key (35, 0), rate 100.00%)), 'mycelium': Block((110, 0) 'mycelium': drops 1 (key (3, 0), rate 100.00%)), 'furnace': Block((61, 0) 'furnace'), 'wooden-step': Block((44, 2) 'wooden-step': transparent, drops 1 (key (44, 0), rate 100.00%)), 'pink-wool': Block((35, 6) 'pink-wool': drops 1 (key (35, 0), rate 100.00%)), 'emerald-block': Block((133, 0) 'emerald-block'), 'ladder': Block((65, 0) 'ladder': transparent), 'stone-plate': Block((70, 0) 'stone-plate': transparent), 'cobblestone': Block((4, 0) 'cobblestone'), 'flower': Block((37, 0) 'flower': transparent), 'portal': Block((90, 0) 'portal': transparent), 'pumpkin-stem': Block((104, 0) 'pumpkin-stem': drops 3 (key (361, 0), rate 100.00%)), 'slow-sand': Block((88, 0) 'slow-sand'), 'lapis-lazuli-ore': Block((21, 0) 'lapis-lazuli-ore': drops 6 (key (351, 4), rate 100.00%)), 'lapis-lazuli-block': Block((22, 0) 'lapis-lazuli-block'), 'note-block': Block((25, 0) 'note-block'), 'redstone-repeater-on': Block((94, 0) 'redstone-repeater-on': transparent, drops 1 (key (356, 0), rate 100.00%)), 67: Block((67, 0) 'stone-stairs': transparent), 'mob-spawner': Block((52, 0) 'mob-spawner': transparent, drops 1 (key (0, 0), rate 100.00%)), 'redstone-torch-off': Block((75, 0) 'redstone-torch-off': transparent), 'sandstone-step': Block((44, 1) 'sandstone-step': transparent, drops 1 (key (44, 0), rate 100.00%)), 'obsidian': Block((49, 0) 'obsidian'), 'burning-furnace': Block((62, 0) 'burning-furnace': drops 1 (key (61, 0), rate 100.00%)), 85: Block((85, 0) 'fence': transparent)}

A dictionary of Block objects.

This dictionary can be indexed by slot number or block name.

bravo.blocks.items = {'': Item((387, 0) ''), 'wooden-door': Item((324, 0) 'wooden-door'), 379: Item((379, 0) ''), 'emerald': Item((388, 0) 'emerald'), 'compass': Item((345, 0) 'compass'), 'blaze-rod': Item((369, 0) 'blaze-rod'), 'chainmail-leggings': Item((304, 0) 'chainmail-leggings'), 'paper': Item((339, 0) 'paper'), 'glass-bottle': Item((374, 0) 'glass-bottle'), 'shears': Item((359, 0) 'shears'), 'cooked-porkchop': Item((320, 0) 'cooked-porkchop'), 'fermented-spider-eye': Item((376, 0) 'fermented-spider-eye'), 261: Item((261, 0) 'bow'), 'sugar-cane': Item((338, 0) 'sugar-cane'), 'slimeball': Item((341, 0) 'slimeball'), 'purple-dye': Item((351, 5) 'purple-dye'), 'chainmail-helmet': Item((302, 0) 'chainmail-helmet'), 348: Item((348, 0) 'glowstone-dust'), 'magma-cream': Item((378, 0) 'magma-cream'), 'diamond-chestplate': Item((311, 0) 'diamond-chestplate'), 349: Item((349, 0) 'raw-fish'), 'chirp-music-disc': Item((2259, 0) 'chirp-music-disc'), 'cocoa-beans': Item((351, 3) 'cocoa-beans'), 'wooden-sword': Item((268, 0) 'wooden-sword'), 'string': Item((287, 0) 'string'), 'pink-dye': Item((351, 9) 'pink-dye'), 346: Item((346, 0) 'fishing-rod'), 'pumpkin-seeds': Item((361, 0) 'pumpkin-seeds'), 'melon-slice': Item((360, 0) 'melon-slice'), 'snowball': Item((332, 0) 'snowball'), 'flint': Item((318, 0) 'flint'), 'iron-helmet': Item((306, 0) 'iron-helmet'), 'dye': Item((351, 0) 'dye'), 'magenta-dye': Item((351, 13) 'magenta-dye'), 'diamond-pickaxe': Item((278, 0) 'diamond-pickaxe'), 'bread': Item((297, 0) 'bread'), 'iron-boots': Item((309, 0) 'iron-boots'), 'leather-chestplate': Item((299, 0) 'leather-chestplate'), 'iron-door': Item((330, 0) 'iron-door'), 'diamond-shovel': Item((277, 0) 'diamond-shovel'), 'raw-porkchop': Item((319, 0) 'raw-porkchop'), 'leather': Item((334, 0) 'leather'), 'gold-chestplate': Item((315, 0) 'gold-chestplate'), 'gold-sword': Item((283, 0) 'gold-sword'), 'charcoal': Item((263, 1) 'charcoal'), 'green-music-disc': Item((2257, 0) 'green-music-disc'), 'rotten-flesh': Item((367, 0) 'rotten-flesh'), 'blocks-music-disc': Item((2258, 0) 'blocks-music-disc'), 'ghast-tear': Item((370, 0) 'ghast-tear'), 'arrow': Item((262, 0) 'arrow'), 361: Item((361, 0) 'pumpkin-seeds'), 'iron-chestplate': Item((307, 0) 'iron-chestplate'), 'water-bucket': Item((326, 0) 'water-bucket'), 'iron-pickaxe': Item((257, 0) 'iron-pickaxe'), 'cooked-fish': Item((350, 0) 'cooked-fish'), 'bone': Item((352, 0) 'bone'), 'diamond-leggings': Item((312, 0) 'diamond-leggings'), 363: Item((363, 0) 'raw-beef'), 'blaze-powder': Item((377, 0) 'blaze-powder'), 'mine-cart': Item((328, 0) 'mine-cart'), 'leather-leggings': Item((300, 0) 'leather-leggings'), 'bone-meal': Item((351, 15) 'bone-meal'), 'raw-beef': Item((363, 0) 'raw-beef'), 'ink-sac': Item((351, 0) 'ink-sac'), 'sign': Item((323, 0) 'sign'), 'diamond-axe': Item((279, 0) 'diamond-axe'), 366: Item((366, 0) 'cooked-chicken'), 'storage-minecart': Item((342, 0) 'storage-minecart'), 'redstone': Item((331, 0) 'redstone'), 'stone-sword': Item((272, 0) 'stone-sword'), 'wooden-axe': Item((271, 0) 'wooden-axe'), 'stone-axe': Item((275, 0) 'stone-axe'), 'paintings': Item((321, 0) 'paintings'), 'clock': Item((347, 0) 'clock'), 'milk': Item((335, 0) 'milk'), 'gold-boots': Item((317, 0) 'gold-boots'), 'clay-brick': Item((336, 0) 'clay-brick'), 'boat': Item((333, 0) 'boat'), 'gold-nugget': Item((371, 0) 'gold-nugget'), 'far-music-disc': Item((2260, 0) 'far-music-disc'), 364: Item((364, 0) 'steak'), 'diamond-sword': Item((276, 0) 'diamond-sword'), 373: Item((373, 0) 'potions'), 'redstone-repeater': Item((356, 0) 'redstone-repeater'), 'stone-hoe': Item((291, 0) 'stone-hoe'), 'nether-wart': Item((372, 0) 'nether-wart'), 'wheat': Item((296, 0) 'wheat'), 'light-blue-dye': Item((351, 12) 'light-blue-dye'), 'powered-minecart': Item((343, 0) 'powered-minecart'), 384: Item((384, 0) ''), 2257: Item((2257, 0) 'green-music-disc'), 2256: Item((2256, 0) 'gold-music-disc'), 376: Item((376, 0) 'fermented-spider-eye'), 2258: Item((2258, 0) 'blocks-music-disc'), 2259: Item((2259, 0) 'chirp-music-disc'), 'cookie': Item((357, 0) 'cookie'), 'ender-pearl': Item((368, 0) 'ender-pearl'), 'green-dye': Item((351, 2) 'green-dye'), 314: Item((314, 0) 'gold-helmet'), 'diamond-boots': Item((313, 0) 'diamond-boots'), 'steak': Item((364, 0) 'steak'), 'leather-boots': Item((301, 0) 'leather-boots'), 'gold-helmet': Item((314, 0) 'gold-helmet'), 'lapis-lazuli': Item((351, 4) 'lapis-lazuli'), 'bow': Item((261, 0) 'bow'), 'gray-dye': Item((351, 8) 'gray-dye'), 'clay-balls': Item((337, 0) 'clay-balls'), 'seeds': Item((295, 0) 'seeds'), 'yellow-dye': Item((351, 11) 'yellow-dye'), 2260: Item((2260, 0) 'far-music-disc'), 'potions': Item((373, 0) 'potions'), 'fishing-rod': Item((346, 0) 'fishing-rod'), 256: Item((256, 0) 'iron-shovel'), 257: Item((257, 0) 'iron-pickaxe'), 258: Item((258, 0) 'iron-axe'), 259: Item((259, 0) 'flint-and-steel'), 260: Item((260, 0) 'apple'), 'apple': Item((260, 0) 'apple'), 262: Item((262, 0) 'arrow'), 263: Item((263, 0) 'coal'), 264: Item((264, 0) 'diamond'), 265: Item((265, 0) 'iron-ingot'), 266: Item((266, 0) 'gold-ingot'), 267: Item((267, 0) 'iron-sword'), 268: Item((268, 0) 'wooden-sword'), 269: Item((269, 0) 'wooden-shovel'), 270: Item((270, 0) 'wooden-pickaxe'), 271: Item((271, 0) 'wooden-axe'), 272: Item((272, 0) 'stone-sword'), 273: Item((273, 0) 'stone-shovel'), 274: Item((274, 0) 'stone-pickaxe'), 275: Item((275, 0) 'stone-axe'), 276: Item((276, 0) 'diamond-sword'), 277: Item((277, 0) 'diamond-shovel'), 278: Item((278, 0) 'diamond-pickaxe'), 279: Item((279, 0) 'diamond-axe'), 280: Item((280, 0) 'stick'), 281: Item((281, 0) 'bowl'), 282: Item((282, 0) 'mushroom-soup'), 283: Item((283, 0) 'gold-sword'), 284: Item((284, 0) 'gold-shovel'), 285: Item((285, 0) 'gold-pickaxe'), 286: Item((286, 0) 'gold-axe'), 287: Item((287, 0) 'string'), 288: Item((288, 0) 'feather'), 289: Item((289, 0) 'sulphur'), 290: Item((290, 0) 'wooden-hoe'), 291: Item((291, 0) 'stone-hoe'), 292: Item((292, 0) 'iron-hoe'), 293: Item((293, 0) 'diamond-hoe'), 294: Item((294, 0) 'gold-hoe'), 295: Item((295, 0) 'seeds'), 296: Item((296, 0) 'wheat'), 297: Item((297, 0) 'bread'), 298: Item((298, 0) 'leather-helmet'), 299: Item((299, 0) 'leather-chestplate'), 300: Item((300, 0) 'leather-leggings'), 301: Item((301, 0) 'leather-boots'), 302: Item((302, 0) 'chainmail-helmet'), 303: Item((303, 0) 'chainmail-chestplate'), 304: Item((304, 0) 'chainmail-leggings'), 305: Item((305, 0) 'chainmail-boots'), 306: Item((306, 0) 'iron-helmet'), 307: Item((307, 0) 'iron-chestplate'), 308: Item((308, 0) 'iron-leggings'), 309: Item((309, 0) 'iron-boots'), 310: Item((310, 0) 'diamond-helmet'), 311: Item((311, 0) 'diamond-chestplate'), 312: Item((312, 0) 'diamond-leggings'), 313: Item((313, 0) 'diamond-boots'), 'feather': Item((288, 0) 'feather'), 315: Item((315, 0) 'gold-chestplate'), 'diamond-helmet': Item((310, 0) 'diamond-helmet'), 317: Item((317, 0) 'gold-boots'), 'gold-ingot': Item((266, 0) 'gold-ingot'), 319: Item((319, 0) 'raw-porkchop'), 320: Item((320, 0) 'cooked-porkchop'), 321: Item((321, 0) 'paintings'), 322: Item((322, 0) 'golden-apple'), 'diamond': Item((264, 0) 'diamond'), 324: Item((324, 0) 'wooden-door'), 325: Item((325, 0) 'bucket'), 326: Item((326, 0) 'water-bucket'), 327: Item((327, 0) 'lava-bucket'), 328: Item((328, 0) 'mine-cart'), 329: Item((329, 0) 'saddle'), 330: Item((330, 0) 'iron-door'), 331: Item((331, 0) 'redstone'), 332: Item((332, 0) 'snowball'), 'iron-leggings': Item((308, 0) 'iron-leggings'), 334: Item((334, 0) 'leather'), 335: Item((335, 0) 'milk'), 336: Item((336, 0) 'clay-brick'), 337: Item((337, 0) 'clay-balls'), 338: Item((338, 0) 'sugar-cane'), 318: Item((318, 0) 'flint'), 340: Item((340, 0) 'book'), 'stick': Item((280, 0) 'stick'), 342: Item((342, 0) 'storage-minecart'), 343: Item((343, 0) 'powered-minecart'), 344: Item((344, 0) 'egg'), 345: Item((345, 0) 'compass'), 'sulphur': Item((289, 0) 'sulphur'), 347: Item((347, 0) 'clock'), 'lava-bucket': Item((327, 0) 'lava-bucket'), 'gold-shovel': Item((284, 0) 'gold-shovel'), 350: Item((350, 0) 'cooked-fish'), 351: Item((351, 0) 'dye'), 352: Item((352, 0) 'bone'), 353: Item((353, 0) 'sugar'), 354: Item((354, 0) 'cake'), 355: Item((355, 0) 'bed'), 356: Item((356, 0) 'redstone-repeater'), 357: Item((357, 0) 'cookie'), 358: Item((358, 0) 'map'), 359: Item((359, 0) 'shears'), 360: Item((360, 0) 'melon-slice'), 316: Item((316, 0) 'gold-leggings'), 362: Item((362, 0) 'melon-seeds'), 'saddle': Item((329, 0) 'saddle'), 'bucket': Item((325, 0) 'bucket'), 365: Item((365, 0) 'raw-chicken'), 'bed': Item((355, 0) 'bed'), 333: Item((333, 0) 'boat'), 368: Item((368, 0) 'ender-pearl'), 369: Item((369, 0) 'blaze-rod'), 370: Item((370, 0) 'ghast-tear'), 371: Item((371, 0) 'gold-nugget'), 372: Item((372, 0) 'nether-wart'), 'iron-axe': Item((258, 0) 'iron-axe'), 374: Item((374, 0) 'glass-bottle'), 375: Item((375, 0) 'spider-eye'), 'cake': Item((354, 0) 'cake'), 377: Item((377, 0) 'blaze-powder'), 378: Item((378, 0) 'magma-cream'), 'raw-chicken': Item((365, 0) 'raw-chicken'), 380: Item((380, 0) ''), 381: Item((381, 0) ''), 382: Item((382, 0) ''), 383: Item((383, 0) ''), 'stone-pickaxe': Item((274, 0) 'stone-pickaxe'), 'iron-hoe': Item((292, 0) 'iron-hoe'), 386: Item((386, 0) ''), 387: Item((387, 0) ''), 388: Item((388, 0) 'emerald'), 'wooden-hoe': Item((290, 0) 'wooden-hoe'), 'gold-pickaxe': Item((285, 0) 'gold-pickaxe'), 'iron-ingot': Item((265, 0) 'iron-ingot'), 'gold-hoe': Item((294, 0) 'gold-hoe'), 323: Item((323, 0) 'sign'), 'chainmail-chestplate': Item((303, 0) 'chainmail-chestplate'), 'cyan-dye': Item((351, 6) 'cyan-dye'), 'mushroom-soup': Item((282, 0) 'mushroom-soup'), 'stone-shovel': Item((273, 0) 'stone-shovel'), 'light-gray-dye': Item((351, 7) 'light-gray-dye'), 'glowstone-dust': Item((348, 0) 'glowstone-dust'), 'sugar': Item((353, 0) 'sugar'), 'bowl': Item((281, 0) 'bowl'), 'iron-shovel': Item((256, 0) 'iron-shovel'), 'normal-coal': Item((263, 0) 'normal-coal'), 'gold-leggings': Item((316, 0) 'gold-leggings'), 'book': Item((340, 0) 'book'), 385: Item((385, 0) ''), 'spider-eye': Item((375, 0) 'spider-eye'), 'iron-sword': Item((267, 0) 'iron-sword'), 'gold-music-disc': Item((2256, 0) 'gold-music-disc'), 'map': Item((358, 0) 'map'), 'lime-dye': Item((351, 10) 'lime-dye'), 'diamond-hoe': Item((293, 0) 'diamond-hoe'), 'golden-apple': Item((322, 0) 'golden-apple'), 'chainmail-boots': Item((305, 0) 'chainmail-boots'), 'leather-helmet': Item((298, 0) 'leather-helmet'), 'wooden-shovel': Item((269, 0) 'wooden-shovel'), 'gold-axe': Item((286, 0) 'gold-axe'), 'wooden-pickaxe': Item((270, 0) 'wooden-pickaxe'), 'raw-fish': Item((349, 0) 'raw-fish'), 'cooked-chicken': Item((366, 0) 'cooked-chicken'), 'flint-and-steel': Item((259, 0) 'flint-and-steel'), 367: Item((367, 0) 'rotten-flesh'), 'melon-seeds': Item((362, 0) 'melon-seeds'), 'coal': Item((263, 0) 'coal'), 339: Item((339, 0) 'paper'), 'orange-dye': Item((351, 14) 'orange-dye'), 'red-dye': Item((351, 1) 'red-dye'), 'egg': Item((344, 0) 'egg'), 341: Item((341, 0) 'slimeball')}

A dictionary of Item objects.

This dictionary can be indexed by slot number or block name.

bravo.blocks.parse_block(block)[source]

Get the key for a given block/item.

bravo.blocks.unstackable = (268, 269, 270)

List of fuel blocks and items maped to burn time