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)[source]
Bases: object
A model for a block.
There are lots of rule 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 (int) – The type of block that should be dropped when an
instance of this block is destroyed. Defaults to the slot value, to
drop instances of this same type of block. To indicate that this
block does not drop anything, set to air.
- 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.
|
-
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 slot 4 rate 100.00%), 2: Block((2, 0) 'grass': drops 1 slot 3 rate 100.00%), 3: Block((3, 0) 'dirt'), 4: Block((4, 0) 'cobblestone'), 5: Block((5, 0) 'wood'), 6: Block((6, 2) 'birch-sapling': transparent), 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 slot 318 rate 10.00%), 14: Block((14, 0) 'gold-ore'), 15: Block((15, 0) 'iron-ore'), 16: Block((16, 0) 'coal-ore': drops 1 slot 263 rate 100.00%), 17: Block((17, 2) 'birch-log'), 18: Block((18, 2) 'birch-leave': translucent (1), drops 1 slot 6 rate 100.00%), 19: Block((19, 0) 'sponge'), 20: Block((20, 0) 'glass': transparent, drops 1 slot 0 rate 100.00%), 21: Block((21, 0) 'lapis-lazuli-ore'), 22: Block((22, 0) 'lapis-lazuli'), 23: Block((23, 0) 'dispenser'), 24: Block((24, 0) 'sandstone'), 25: Block((25, 0) 'note-block'), 26: Block((26, 0) 'bed': transparent, drops 1 slot 355 rate 100.00%), 'redstone-ore': Block((73, 0) 'redstone-ore': drops 5 slot 331 rate 100.00%), 28: Block((28, 0) 'detector-rail'), 30: Block((30, 0) 'spider-web'), 31: Block((31, 0) 'tall-grass'), 32: Block((32, 0) 'shrub'), 35: Block((35, 15) 'black-wool'), 37: Block((37, 0) 'flower': transparent), 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), 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 slot 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 slot 264 rate 100.00%), 57: Block((57, 0) 'diamond'), 58: Block((58, 0) 'workbench'), 'gravel': Block((13, 0) 'gravel': drops 1 slot 318 rate 10.00%), 'spider-web': Block((30, 0) 'spider-web'), 61: Block((61, 0) 'furnace'), 62: Block((62, 0) 'burning-furnace': drops 1 slot 61 rate 100.00%), 63: Block((63, 0) 'signpost': transparent, drops 1 slot 323 rate 100.00%), 64: Block((64, 0) 'wooden-door': transparent, drops 1 slot 324 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 slot 323 rate 100.00%), 69: Block((69, 0) 'lever': transparent), 70: Block((70, 0) 'stone-plate': transparent), 71: Block((71, 0) 'iron-door': transparent, drops 1 slot 330 rate 100.00%), 72: Block((72, 0) 'wooden-plate': transparent), 73: Block((73, 0) 'redstone-ore': drops 5 slot 331 rate 100.00%), 74: Block((74, 0) 'glowing-redstone-ore': drops 5 slot 331 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': transparent, drops 1 slot 0 rate 100.00%), 79: Block((79, 0) 'ice': translucent (3), becomes 9, drops 1 slot 0 rate 100.00%), 80: Block((80, 0) 'snow-block'), 81: Block((81, 0) 'cactus': transparent), 82: Block((82, 0) 'clay': drops 4 slot 337 rate 100.00%), 83: Block((83, 0) 'sugar-cane': transparent, drops 1 slot 338 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 slot 348 rate 100.00%), 90: Block((90, 0) 'portal': transparent), 91: Block((91, 0) 'jack-o-lantern'), 92: Block((92, 0) 'cake': transparent), 93: Block((93, 0) 'redstone-repeater-off': transparent, drops 1 slot 356 rate 100.00%), 94: Block((94, 0) 'redstone-repeater-on': transparent, drops 1 slot 356 rate 100.00%), 95: Block((95, 0) 'locked-chest'), 96: Block((96, 0) 'trapdoor'), 'white-wool': Block((35, 0) 'white-wool'), 'iron-door': Block((71, 0) 'iron-door': transparent, drops 1 slot 330 rate 100.00%), 'crops': Block((59, 0) 'crops': transparent), 'diamond': Block((57, 0) 'diamond'), 'orange-wool': Block((35, 1) 'orange-wool'), 'diamond-ore': Block((56, 0) 'diamond-ore': drops 1 slot 264 rate 100.00%), 'glowing-redstone-ore': Block((74, 0) 'glowing-redstone-ore': drops 5 slot 331 rate 100.00%), 'tall-grass': Block((31, 0) 'tall-grass'), 'sand': Block((12, 0) 'sand'), 'clay': Block((82, 0) 'clay': drops 4 slot 337 rate 100.00%), 'lever': Block((69, 0) 'lever': transparent), 'double-step': Block((43, 0) 'double-step'), 'workbench': Block((58, 0) 'workbench'), 'fence': Block((85, 0) 'fence': transparent), 'dark-green-wool': Block((35, 13) 'dark-green-wool'), 'spring': Block((9, 0) 'spring': unbreakable, translucent (3)), 'torch': Block((50, 0) 'torch': transparent), 'sponge': Block((19, 0) 'sponge'), 'redstone-repeater-off': Block((93, 0) 'redstone-repeater-off': transparent, drops 1 slot 356 rate 100.00%), 'cactus': Block((81, 0) 'cactus': transparent), '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'), 'blue-wool': Block((35, 11) 'blue-wool'), 'ice': Block((79, 0) 'ice': translucent (3), becomes 9, drops 1 slot 0 rate 100.00%), 'lightstone': Block((89, 0) 'lightstone': drops 1 slot 348 rate 100.00%), 'stone-step': Block((44, 0) 'stone-step': transparent), 'dirt': Block((3, 0) 'dirt'), 'pumpkin': Block((86, 0) 'pumpkin'), 'red-wool': Block((35, 14) 'red-wool'), 'water': Block((8, 0) 'water': unbreakable, translucent (3)), 'cake': Block((92, 0) 'cake': transparent), 'step': Block((44, 0) 'step': transparent), 'stone': Block((1, 0) 'stone': drops 1 slot 4 rate 100.00%), 'brown-wool': Block((35, 12) 'brown-wool'), 'leaves': Block((18, 0) 'leaves': translucent (1), drops 1 slot 6 rate 11.11%), 'normal-leave': Block((18, 0) 'normal-leave': translucent (1), drops 1 slot 6 rate 100.00%), 'cyan-wool': Block((35, 9) 'cyan-wool'), 'tracks': Block((66, 0) 'tracks': transparent), 59: Block((59, 0) 'crops': transparent), 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'), 'sugar-cane': Block((83, 0) 'sugar-cane': transparent, drops 1 slot 338 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), 'pine-log': Block((17, 1) 'pine-log'), 'brimstone': Block((87, 0) 'brimstone'), 'log': Block((17, 0) 'log'), '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'), 51: Block((51, 0) 'fire': transparent), 'bedrock': Block((7, 0) 'bedrock': unbreakable), 'pine-sapling': Block((6, 1) 'pine-sapling': transparent), 'brick': Block((45, 0) 'brick'), 'mossy-cobblestone': Block((48, 0) 'mossy-cobblestone'), 'fire': Block((51, 0) 'fire': transparent), 'signpost': Block((63, 0) 'signpost': transparent, drops 1 slot 323 rate 100.00%), 'glass': Block((20, 0) 'glass': transparent, drops 1 slot 0 rate 100.00%), 'light-green-wool': Block((35, 5) 'light-green-wool'), 'bookshelf': Block((47, 0) 'bookshelf'), 'gold': Block((41, 0) 'gold'), 'wall-sign': Block((68, 0) 'wall-sign': transparent, drops 1 slot 323 rate 100.00%), 'normal-log': Block((17, 0) 'normal-log'), 'pine-leave': Block((18, 1) 'pine-leave': translucent (1), drops 1 slot 6 rate 100.00%), 'tnt': Block((46, 0) 'tnt'), 'wool': Block((35, 0) 'wool'), 'birch-sapling': Block((6, 2) 'birch-sapling': transparent), 60: Block((60, 0) 'soil': transparent, drops 1 slot 3 rate 100.00%), 'jack-o-lantern': Block((91, 0) 'jack-o-lantern'), 'wooden-plate': Block((72, 0) 'wooden-plate': transparent), 'bed': Block((26, 0) 'bed': transparent, drops 1 slot 355 rate 100.00%), 'air': Block((0, 0) 'air': unbreakable, transparent), 'lapis-lazuli': Block((22, 0) 'lapis-lazuli'), 'iron': Block((42, 0) 'iron'), 'dispenser': Block((23, 0) 'dispenser'), 'grass': Block((2, 0) 'grass': drops 1 slot 3 rate 100.00%), 'redstone-wire': Block((55, 0) 'redstone-wire': transparent), 'black-wool': Block((35, 15) 'black-wool'), 'cobblestone-step': Block((44, 3) 'cobblestone-step': transparent), 'gold-ore': Block((14, 0) 'gold-ore'), 'yellow-wool': Block((35, 4) 'yellow-wool'), 'stone-button': Block((77, 0) 'stone-button': transparent), 'soil': Block((60, 0) 'soil': transparent, drops 1 slot 3 rate 100.00%), 'locked-chest': Block((95, 0) 'locked-chest'), 'redstone-torch': Block((76, 0) 'redstone-torch': transparent), 'light-gray-wool': Block((35, 8) 'light-gray-wool'), 'purple-wool': Block((35, 10) 'purple-wool'), 'coal-ore': Block((16, 0) 'coal-ore': drops 1 slot 263 rate 100.00%), 'magenta-wool': Block((35, 2) 'magenta-wool'), 'sandstone': Block((24, 0) 'sandstone'), 'snow': Block((78, 0) 'snow': transparent, drops 1 slot 0 rate 100.00%), 'lava': Block((10, 0) 'lava': unbreakable, transparent), 'chest': Block((54, 0) 'chest'), 'gray-wool': Block((35, 7) 'gray-wool'), 'birch-leave': Block((18, 2) 'birch-leave': translucent (1), drops 1 slot 6 rate 100.00%), 'furnace': Block((61, 0) 'furnace'), 'wooden-step': Block((44, 2) 'wooden-step': transparent), 'pink-wool': Block((35, 6) 'pink-wool'), '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), 'slow-sand': Block((88, 0) 'slow-sand'), 'lapis-lazuli-ore': Block((21, 0) 'lapis-lazuli-ore'), 'note-block': Block((25, 0) 'note-block'), 'redstone-repeater-on': Block((94, 0) 'redstone-repeater-on': transparent, drops 1 slot 356 rate 100.00%), 67: Block((67, 0) 'stone-stairs': transparent), 'wooden-door': Block((64, 0) 'wooden-door': transparent, drops 1 slot 324 rate 100.00%), 'mob-spawner': Block((52, 0) 'mob-spawner': transparent, drops 1 slot 0 rate 100.00%), 'redstone-torch-off': Block((75, 0) 'redstone-torch-off': transparent), 'sandstone-step': Block((44, 1) 'sandstone-step': transparent), 'obsidian': Block((49, 0) 'obsidian'), 'burning-furnace': Block((62, 0) 'burning-furnace': drops 1 slot 61 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 = {'wooden-door': Item((324, 0) 'wooden-door'), 'compass': Item((345, 0) 'compass'), 'chainmail-leggings': Item((304, 0) 'chainmail-leggings'), 'paper': Item((339, 0) 'paper'), 'cooked-porkchop': Item((320, 0) 'cooked-porkchop'), 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'), 'diamond-chestplate': Item((311, 0) 'diamond-chestplate'), 349: Item((349, 0) 'raw-fish'), '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'), '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'), 'arrow': Item((262, 0) 'arrow'), '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'), 'mine-cart': Item((328, 0) 'mine-cart'), 'leather-leggings': Item((300, 0) 'leather-leggings'), 'bone-meal': Item((351, 15) 'bone-meal'), 'ink-sac': Item((351, 0) 'ink-sac'), 'sign': Item((323, 0) 'sign'), 'diamond-axe': Item((279, 0) 'diamond-axe'), '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-music-disc': Item((2256, 0) 'gold-music-disc'), 'diamond-sword': Item((276, 0) 'diamond-sword'), 'redstone-repeater': Item((356, 0) 'redstone-repeater'), 'stone-hoe': Item((291, 0) 'stone-hoe'), 'wheat': Item((296, 0) 'wheat'), 'light-blue-dye': Item((351, 12) 'light-blue-dye'), 'powered-minecart': Item((343, 0) 'powered-minecart'), 'cocoa-beans': Item((351, 3) 'cocoa-beans'), 2256: Item((2256, 0) 'gold-music-disc'), 2257: Item((2257, 0) 'green-music-disc'), 'cookie': Item((357, 0) 'cookie'), 'green-dye': Item((351, 2) 'green-dye'), 314: Item((314, 0) 'gold-helmet'), 'diamond-boots': Item((313, 0) 'diamond-boots'), 'leather-boots': Item((301, 0) 'leather-boots'), 'gold-helmet': Item((314, 0) 'gold-helmet'), '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'), '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'), 316: Item((316, 0) 'gold-leggings'), 'saddle': Item((329, 0) 'saddle'), 'bucket': Item((325, 0) 'bucket'), 'bed': Item((355, 0) 'bed'), 333: Item((333, 0) 'boat'), 'lapis-lazuli': Item((351, 4) 'lapis-lazuli'), 'iron-axe': Item((258, 0) 'iron-axe'), 'cake': Item((354, 0) 'cake'), 'stone-pickaxe': Item((274, 0) 'stone-pickaxe'), 'iron-hoe': Item((292, 0) 'iron-hoe'), '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'), 'iron-sword': Item((267, 0) 'iron-sword'), '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'), 'flint-and-steel': Item((259, 0) 'flint-and-steel'), '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.