lihzahrd.tiles

class lihzahrd.tiles.LiquidType

All possible types of liquids.

HONEY = 3
LAVA = 2
NO_LIQUID = 0
WATER = 1
from_flags = <bound method LiquidType.from_flags of <enum 'LiquidType'>>
class lihzahrd.tiles.RLEEncoding

How the RLE compression is encoded.

DOUBLE_BYTE = 2

The read data refers to 256-4800 tiles (2 bytes).

NO_COMPRESSION = 0

The read data refers to a single tile.

SINGLE_BYTE = 1

The read data refers to 2-255 tiles (1 byte).

from_flags = <bound method RLEEncoding.from_flags of <enum 'RLEEncoding'>>
class lihzahrd.tiles.Shape

The shape of a block, given to it with an hammer.

The directions refer to the missing slope corner.

BOTTOM_LEFT_SLOPE = 5
BOTTOM_RIGHT_SLOPE = 4
HALF_TILE = 1
NORMAL = 0
TOP_LEFT_SLOPE = 3
TOP_RIGHT_SLOPE = 2
from_flags = <bound method Shape.from_flags of <enum 'Shape'>>
class lihzahrd.tiles.Wiring(red: bool = False, green: bool = False, blue: bool = False, yellow: bool = False, actuator: bool = False)

Wiring data for a certain tile.

actuator

If there’s an Actuator in the tile.

blue

If there’s a blue Wire in the tile.

green

If there’s a green Wire in the tile.

red

If there’s a red Wire in the tile.

yellow

If there’s a yellow Wire in the tile.

class lihzahrd.tiles.BlockType

All possible block types.

Data from https://github.com/tModLoader/tModLoader/wiki/Vanilla-Tile-IDs.

ACTIVE_STONE_BLOCK = 130
ADAMANTITE = 111
ADAMANTITE_BEAM = 150
ADAMANTITE_FORGE = 133
ALCHEMY_TABLE = 355
ALPHABET_STATUES = 337
AMBER_GEMSPARK = 268
AMBER_GEMSPARK_OFF = 261
AMETHYST = 67
AMETHYST_GEMSPARK = 262
AMETHYST_GEMSPARK_OFF = 255
AMMO_BOX = 287
ANNOUNCEMENT_BOX = 425
ANVILS = 16
ASH = 57
ASPHALT = 198
AUTOHAMMER = 247
BANNERS = 91
BATHTUBS = 90
BEACH_PILES = 324
BEDS = 79
BEE_HIVE = 444
BENCHES = 89
BEWITCHING_TABLE = 354
BIRD_CAGE = 279
BLACK_SCORPION_CAGE = 297
BLENDOMATIC = 217
BLOOMING_HERBS = 84
BLUE_DUNGEON_BRICK = 41
BLUE_DYNASTY_SHINGLES = 313
BLUE_JAY = 280
BLUE_JELLYFISH_BOWL = 316
BLUE_MOSS = 182
BONE_BLOCK = 194
BONE_WELDER = 300
BOOKCASES = 101
BOOKS = 50
BOREAL_WOOD = 321
BOTTLES = 13
BOULDER = 138
BOWLS = 103
BREAKABLE_ICE = 162
BROWN_MOSS = 180
BUBBLE = 379
BUBBLEGUM_BLOCK = 249
BUBBLE_MACHINE = 244
BUNNY_CAGE = 275
CACTUS = 80
CACTUS_BLOCK = 188
CAGE_BUGGY = 392
CAGE_ENCHANTED_NIGHTCRAWLER = 391
CAGE_GRUBBY = 393
CAGE_SLUGGY = 394
CAMPFIRE = 215
CANDELABRAS = 100
CANDLES = 33
CANDY_CANE_BLOCK = 145
CANNON = 209
CARDINAL_CAGE = 281
CHAIN = 214
CHAIRS = 15
CHANDELIERS = 34
CHIMNEY = 406
CHIMNEY_SMOKE = 351
CHINESE_LANTERNS = 95
CHLOROPHYTE = 211
CHLOROPHYTE_BRICK = 346
CHRISTMAS_TREE = 171
CLAY_BLOCK = 40
CLAY_POT = 78
CLOSED_DOOR = 10
CLOUD = 189
COBALT = 107
COBALT_BRICK = 121
COBWEB = 51
COG = 272
CONFETTI = 328
CONFETTI_BLACK = 329
CONTAINERS = 21
CONTAINERS2 = 467
CONVEYOR_BELT_LEFT = 421
CONVEYOR_BELT_RIGHT = 422
COOKING_POTS = 96
COPPER = 7
COPPER_BRICK = 47
COPPER_COIN_PILE = 330
COPPER_PLATING = 284
CORAL = 81
CORALSTONE = 315
CORRUPT_GRASS = 23
CORRUPT_HARDENED_SAND = 398
CORRUPT_ICE = 163
CORRUPT_PLANTS = 24
CORRUPT_SANDSTONE = 400
CORRUPT_THORNS = 32
COUNT = 470
CRIMSAND = 234
CRIMSON_HARDENED_SAND = 399
CRIMSON_SANDSTONE = 401
CRIMSON_VINES = 205
CRIMSTONE = 203
CRIMTANE = 204
CRIMTANE_BRICK = 347
CRIMTANE_THORNS = 352
CRISPY_HONEY_BLOCK = 230
CRYSTALS = 129
CRYSTAL_BALL = 125
CRYSTAL_BLOCK = 385
DEFENDERS_FORGE = 463
DEMONITE = 22
DEMONITE_BRICK = 140
DEMON_ALTAR = 26
DESERT_FOSSIL = 404
DETONATOR = 411
DIAMOND = 68
DIAMOND_GEMSPARK = 267
DIAMOND_GEMSPARK_OFF = 260
DIRT = 0
DISCO_BALL = 126
DJINN_LAMP = 462
DRESSERS = 88
DUCK_CAGE = 278
DYE_PLANTS = 227
DYE_VAT = 228
DYNASTY_WOOD = 311
EBONSAND = 112
EBONSTONE = 25
EBONSTONE_BRICK = 152
EBONWOOD = 157
ELDER_CRYSTAL_STAND = 466
EMERALD = 65
EMERALD_GEMSPARK = 265
EMERALD_GEMSPARK_OFF = 258
EXPLOSIVES = 141
EXPOSED_GEMS = 178
EXTRACTINATOR = 219
FAKE_CONTAINERS = 441
FAKE_CONTAINERS2 = 468
FIREFLYINA_BOTTLE = 270
FIREPLACE = 405
FIREWORK = 216
FIREWORKS_BOX = 335
FIREWORK_FOUNTAIN = 338
FISHING_CRATE = 376
FISH_BOWL = 282
FLESH_BLOCK = 195
FLESH_CLONING_VAT = 301
FLESH_GRASS = 199
FLESH_ICE = 200
FLESH_WEEDS = 201
FOSSIL_ORE = 407
FROG_CAGE = 298
FROZEN_SLIME_BLOCK = 197
FURNACES = 17
GEM_LOCKS = 440
GEYSER_TRAP = 443
GLASS = 54
GLASS_KILN = 302
GLOWING_SNAIL_CAGE = 286
GOLD = 8
GOLD_BIRD_CAGE = 358
GOLD_BRICK = 45
GOLD_BUNNY_CAGE = 359
GOLD_BUTTERFLY_CAGE = 360
GOLD_COIN_PILE = 332
GOLD_FROG_CAGE = 361
GOLD_GRASSHOPPER_CAGE = 362
GOLD_MOUSE_CAGE = 363
GOLD_WORM_CAGE = 364
GRANDFATHER_CLOCKS = 104
GRANITE = 368
GRANITE_BLOCK = 369
GRASS = 2
GRASSHOPPER_CAGE = 339
GRAY_BRICK = 38
GRAY_STUCCO = 156
GREEN_CANDY_CANE_BLOCK = 146
GREEN_DUNGEON_BRICK = 43
GREEN_JELLYFISH_BOWL = 317
GREEN_MOSS = 179
GREEN_STUCCO = 155
HALLOWED_GRASS = 109
HALLOWED_ICE = 164
HALLOWED_PLANTS = 110
HALLOWED_PLANTS2 = 113
HALLOWED_VINES = 115
HALLOW_HARDENED_SAND = 402
HALLOW_SANDSTONE = 403
HANGING_LANTERNS = 42
HARDENED_SAND = 397
HAY_BLOCK = 252
HEART = 12
HEAVY_WORK_BENCH = 283
HELLFORGE = 77
HELLSTONE = 58
HELLSTONE_BRICK = 76
HIVE = 225
HOLIDAY_LIGHTS = 149
HONEYFALL = 345
HONEY_BLOCK = 229
HONEY_DISPENSER = 308
HONEY_DRIP = 375
ICE_BLOCK = 161
ICE_BRICK = 206
ICE_MACHINE = 306
IMBUING_STATION = 243
IMMATURE_HERBS = 82
INACTIVE_STONE_BLOCK = 131
INLET_PUMP = 142
IRIDESCENT_BRICK = 119
IRON = 6
ITEM_FRAME = 395
JACKOLANTERNS = 35
JULIA_BUTTERFLY_JAR = 295
JUNGLE_GRASS = 60
JUNGLE_PLANTS = 61
JUNGLE_PLANTS2 = 74
JUNGLE_THORNS = 69
JUNGLE_VINES = 62
KEGS = 94
LAMPPOSTS = 92
LAMPS = 93
LAND_MINE = 210
LARGE_PILES = 186
LARGE_PILES2 = 187
LARVA = 231
LAVAFALL = 327
LAVA_DRIP = 374
LAVA_LAMP = 390
LAVA_MOSS = 381
LEAD = 167
LEAF_BLOCK = 192
LEVER = 132
LIFE_FRUIT = 236
LIGHTNING_BUGINA_BOTTLE = 271
LIHZAHRD_ALTAR = 237
LIHZAHRD_BRICK = 226
LIHZAHRD_FURNACE = 303
LIVING_CURSED_FIRE = 340
LIVING_DEMON_FIRE = 341
LIVING_FIRE = 336
LIVING_FROST_FIRE = 342
LIVING_ICHOR = 343
LIVING_LOOM = 304
LIVING_MAHOGANY = 383
LIVING_MAHOGANY_LEAVES = 384
LIVING_ULTRABRIGHT_FIRE = 344
LIVING_WOOD = 191
LOGIC_GATE = 420
LOGIC_GATE_LAMP = 419
LOGIC_SENSOR = 423
LONG_MOSS = 184
LOOM = 86
LUNAR_BLOCK_NEBULA = 417
LUNAR_BLOCK_SOLAR = 415
LUNAR_BLOCK_STARDUST = 418
LUNAR_BLOCK_VORTEX = 416
LUNAR_BRICK = 409
LUNAR_CRAFTING_STATION = 412
LUNAR_MONOLITH = 410
LUNAR_ORE = 408
MAGICAL_ICE_BLOCK = 127
MALLARD_DUCK_CAGE = 277
MANNEQUIN = 128
MARBLE = 367
MARBLE_BLOCK = 357
MARTIAN_CONDUIT_PLATING = 350
MATURE_HERBS = 83
MEAT_GRINDER = 218
METAL_BARS = 239
METEORITE = 37
METEORITE_BRICK = 370
MINECART_TRACK = 314
MONARCH_BUTTERFLY_JAR = 288
MOUSE_CAGE = 299
MUD = 59
MUDSTONE = 120
MUSHROOM_BLOCK = 190
MUSHROOM_GRASS = 70
MUSHROOM_PLANTS = 71
MUSHROOM_STATUE = 349
MUSHROOM_TREES = 72
MUSIC_BOXES = 139
MYTHRIL = 108
MYTHRIL_ANVIL = 134
MYTHRIL_BRICK = 122
OBSIDIAN = 56
OBSIDIAN_BRICK = 75
OPEN_DOOR = 11
ORICHALCUM = 222
OUTLET_PUMP = 143
PAINTING2X3 = 245
PAINTING3X2 = 246
PAINTING3X3 = 240
PAINTING4X3 = 241
PAINTING6X4 = 242
PALLADIUM = 221
PALLADIUM_COLUMN = 248
PALM_TREE = 323
PALM_WOOD = 322
PARTY_BUNDLE_OF_BALLOON_TILE = 456
PARTY_MONOLITH = 455
PARTY_PRESENT = 457
PEACE_CANDLE = 372
PEARLSAND = 116
PEARLSTONE = 117
PEARLSTONE_BRICK = 118
PEARLWOOD = 159
PENGUIN_CAGE = 309
PIANOS = 87
PIGGY_BANK = 29
PIGRONATA = 454
PINE_TREE = 170
PINK_DUNGEON_BRICK = 44
PINK_JELLYFISH_BOWL = 318
PINK_SLIME_BLOCK = 371
PIXEL_BOX = 445
PLANTERA_BULB = 238
PLANTER_BOX = 380
PLANTS = 3
PLANTS2 = 73
PLANT_DETRITUS = 233
PLATFORMS = 19
PLATINUM = 169
PLATINUM_BRICK = 177
PLATINUM_CANDELABRA = 173
PLATINUM_CANDLE = 174
PLATINUM_COIN_PILE = 333
POTS = 28
PRESENTS = 36
PRESSURE_PLATES = 135
PROJECTILE_PRESSURE_PAD = 442
PUMPKINS = 254
PUMPKIN_BLOCK = 251
PURPLE_EMPEROR_BUTTERFLY_JAR = 289
PURPLE_MOSS = 183
RAINBOW_BRICK = 160
RAIN_CLOUD = 196
RED_ADMIRAL_BUTTERFLY_JAR = 290
RED_BRICK = 39
RED_DYNASTY_SHINGLES = 312
RED_MOSS = 181
RED_STUCCO = 153
RICH_MAHOGANY = 158
ROPE = 213
RUBY = 64
RUBY_GEMSPARK = 266
RUBY_GEMSPARK_OFF = 259
SAFES = 97
SAND = 53
SANDSTONE = 396
SANDSTONE_BRICK = 151
SAND_DRIP = 461
SAND_FALL_BLOCK = 458
SAND_STONE_SLAB = 274
SAPLINGS = 20
SAPPHIRE = 63
SAPPHIRE_GEMSPARK = 264
SAPPHIRE_GEMSPARK_OFF = 257
SAWMILL = 106
SCORPION_CAGE = 296
SEAWEED_PLANTER = 320
SHADEWOOD = 208
SHADOW_ORBS = 31
SHARPENING_STATION = 377
SHIP_IN_ABOTTLE = 319
SHROOMITE_PLATING = 348
SIGNS = 55
SILK_ROPE = 365
SILLY_BALLOON_GREEN = 448
SILLY_BALLOON_MACHINE = 452
SILLY_BALLOON_PINK = 446
SILLY_BALLOON_PURPLE = 447
SILLY_BALLOON_TILE = 453
SILLY_STREAMER_BLUE = 449
SILLY_STREAMER_GREEN = 450
SILLY_STREAMER_PINK = 451
SILT = 123
SILVER = 9
SILVER_BRICK = 46
SILVER_COIN_PILE = 331
SINKS = 172
SKULL_LANTERNS = 98
SKY_MILL = 305
SLIME_BLOCK = 193
SLUSH = 224
SMALL_PILES = 185
SNAIL_CAGE = 285
SNOWBALL_LAUNCHER = 212
SNOW_BLOCK = 147
SNOW_BRICK = 148
SNOW_CLOUD = 460
SNOW_FALL_BLOCK = 459
SOLIDIFIER = 220
SPIKES = 48
SPOOKY_WOOD = 253
SQUIRREL_CAGE = 276
SQUIRREL_GOLD_CAGE = 414
SQUIRREL_ORANGE_CAGE = 413
STALACTITE = 165
STATUES = 105
STEAMPUNK_BOILER = 307
STONE = 1
STONE_SLAB = 273
SULPHUR_BUTTERFLY_JAR = 292
SUNDIAL = 356
SUNFLOWER = 27
SUNPLATE = 202
SWITCHES = 136
TABLES = 14
TABLES2 = 469
TALL_GATE_CLOSED = 388
TALL_GATE_OPEN = 389
TARGET_DUMMY = 378
TEAM_BLOCK_BLUE = 431
TEAM_BLOCK_BLUE_PLATFORM = 436
TEAM_BLOCK_GREEN = 430
TEAM_BLOCK_GREEN_PLATFORM = 435
TEAM_BLOCK_PINK = 433
TEAM_BLOCK_PINK_PLATFORM = 438
TEAM_BLOCK_RED = 426
TEAM_BLOCK_RED_PLATFORM = 427
TEAM_BLOCK_WHITE = 434
TEAM_BLOCK_WHITE_PLATFORM = 439
TEAM_BLOCK_YELLOW = 432
TEAM_BLOCK_YELLOW_PLATFORM = 437
TELEPORTER = 235
THRONES = 102
TIMERS = 144
TIN = 166
TINKERERS_WORKBENCH = 114
TIN_BRICK = 175
TIN_PLATING = 325
TITANIUM = 223
TITANSTONE = 250
TOMBSTONES = 85
TOPAZ = 66
TOPAZ_GEMSPARK = 263
TOPAZ_GEMSPARK_OFF = 256
TORCHES = 4
TRAPDOOR_CLOSED = 387
TRAPDOOR_OPEN = 386
TRAPS = 137
TRASH_CAN = 99
TREES = 5
TREE_NYMPH_BUTTERFLY_JAR = 293
TUNGSTEN = 168
TUNGSTEN_BRICK = 176
ULYSSES_BUTTERFLY_JAR = 291
VINES = 52
VINE_FLOWERS = 382
VINE_ROPE = 353
WAR_TABLE = 464
WAR_TABLE_BANNER = 465
WATERFALL = 326
WATER_CANDLE = 49
WATER_DRIP = 373
WATER_FOUNTAIN = 207
WEAPONS_RACK = 334
WEB_ROPE = 366
WEIGHTED_PRESSURE_PLATE = 428
WIRE_BULB = 429
WIRE_PIPE = 424
WOMANNEQUIN = 269
WOODEN_BEAM = 124
WOODEN_SPIKES = 232
WOOD_BLOCK = 30
WORK_BENCHES = 18
WORM_CAGE = 310
YELLOW_STUCCO = 154
ZEBRA_SWALLOWTAIL_BUTTERFLY_JAR = 294
class lihzahrd.tiles.FrameImportantData(frame_x, frame_y)

Frame data of FrameImportant blocks.

Some blocks share the same type and texture of other blocks (ex: banners), so they store some texture data inside the save file.

frame_x
frame_y
class lihzahrd.tiles.WallType

All possible wall types.

Data from https://github.com/tModLoader/tModLoader/wiki/Vanilla-Wall-IDs.

ADAMANTITE_BEAM = 32
AMBER_GEMSPARK = 153
AMBER_GEMSPARK_OFF = 157
AMETHYST_GEMSPARK = 154
AMETHYST_GEMSPARK_OFF = 158
AMETHYST_UNSAFE = 48
ARCANE_RUNES = 144
BLUEGREEN_WALLPAPER = 124
BLUE_DUNGEON = 17
BLUE_DUNGEON_SLAB = 100
BLUE_DUNGEON_SLAB_UNSAFE = 94
BLUE_DUNGEON_TILE = 101
BLUE_DUNGEON_TILE_UNSAFE = 95
BLUE_DUNGEON_UNSAFE = 7
BLUE_DYNASTY = 143
BLUE_STAINED_GLASS = 90
BONE = 75
BOREAL_WOOD = 149
BOREAL_WOOD_FENCE = 150
BUBBLEGUM_BLOCK = 110
BUBBLE_WALLPAPER = 133
CACTUS = 72
CANDY_CANE = 29
CANDY_CANE_WALLPAPER = 118
CAVE2UNSAFE = 55
CAVE3UNSAFE = 56
CAVE4UNSAFE = 57
CAVE5UNSAFE = 58
CAVE6UNSAFE = 59
CAVE7UNSAFE = 61
CAVE8UNSAFE = 185
CAVE_UNSAFE = 54
CAVE_WALL = 170
CAVE_WALL2 = 171
CHLOROPHYTE_BRICK = 173
CHRISTMAS_TREE_WALLPAPER = 116
CLOUD = 73
COBALT_BRICK = 25
COG_WALL = 225
CONFETTI = 168
CONFETTI_BLACK = 169
COPPER_BRICK = 12
COPPER_PIPE_WALLPAPER = 134
COPPER_PLATING = 146
CORRUPTION_UNSAFE1 = 188
CORRUPTION_UNSAFE2 = 189
CORRUPTION_UNSAFE3 = 190
CORRUPTION_UNSAFE4 = 191
CORRUPT_GRASS_UNSAFE = 69
CORRUPT_HARDENED_SAND = 217
CORRUPT_SANDSTONE = 220
CRIMSON_GRASS_UNSAFE = 81
CRIMSON_HARDENED_SAND = 218
CRIMSON_SANDSTONE = 221
CRIMSON_UNSAFE1 = 192
CRIMSON_UNSAFE2 = 193
CRIMSON_UNSAFE3 = 194
CRIMSON_UNSAFE4 = 195
CRIMSTONE_UNSAFE = 83
CRIMTANE_BRICK = 174
CRYSTAL = 186
DEMONITE_BRICK = 33
DESERT_FOSSIL = 223
DIAMOND_GEMSPARK = 155
DIAMOND_GEMSPARK_OFF = 159
DIAMOND_UNSAFE = 53
DIRT = 16
DIRT_UNSAFE = 2
DIRT_UNSAFE1 = 196
DIRT_UNSAFE2 = 197
DIRT_UNSAFE3 = 198
DIRT_UNSAFE4 = 199
DISC_WALL = 82
DUCKY_WALLPAPER = 135
EBONSTONE_BRICK = 35
EBONSTONE_UNSAFE = 3
EBONWOOD = 41
EBONWOOD_FENCE = 138
EMERALD_GEMSPARK = 156
EMERALD_GEMSPARK_OFF = 160
EMERALD_UNSAFE = 51
FANCY_GRAY_WALLPAPER = 126
FESTIVE_WALLPAPER = 119
FLESH = 77
FLOWER = 68
FLOWER_UNSAFE = 65
GLASS = 21
GOLD_BRICK = 10
GRANITE = 184
GRANITE_BLOCK = 181
GRANITE_UNSAFE = 180
GRASS = 66
GRASS_UNSAFE = 63
GRAY = 39
GRAY_BRICK = 5
GREEN_CANDY_CANE = 30
GREEN_DUNGEON = 18
GREEN_DUNGEON_SLAB = 104
GREEN_DUNGEON_SLAB_UNSAFE = 98
GREEN_DUNGEON_TILE = 105
GREEN_DUNGEON_TILE_UNSAFE = 99
GREEN_DUNGEON_UNSAFE = 8
GREEN_STAINED_GLASS = 91
GREEN_STUCCO = 38
GRINCH_FINGER_WALLPAPER = 125
HALLOWED_GRASS_UNSAFE = 70
HALLOW_HARDENED_SAND = 219
HALLOW_SANDSTONE = 222
HALLOW_UNSAFE1 = 200
HALLOW_UNSAFE2 = 201
HALLOW_UNSAFE3 = 202
HALLOW_UNSAFE4 = 203
HARDENED_SAND = 216
HAY = 114
HELLSTONE_BRICK = 177
HELLSTONE_BRICK_UNSAFE = 13
HIVE = 108
HIVE_UNSAFE = 86
HONEYFALL = 172
ICE_BRICK = 84
ICE_FLOE_WALLPAPER = 127
ICE_UNSAFE = 71
IRIDESCENT_BRICK = 23
IRON_FENCE = 145
JUNGLE = 67
JUNGLE_UNSAFE = 64
JUNGLE_UNSAFE1 = 204
JUNGLE_UNSAFE2 = 205
JUNGLE_UNSAFE3 = 206
JUNGLE_UNSAFE4 = 207
KRAMPUS_HORN_WALLPAPER = 123
LAVAFALL = 137
LAVA_UNSAFE1 = 208
LAVA_UNSAFE2 = 209
LAVA_UNSAFE3 = 210
LAVA_UNSAFE4 = 211
LIHZAHRD_BRICK = 112
LIHZAHRD_BRICK_UNSAFE = 87
LIVING_LEAF = 60
LIVING_WOOD = 78
LUNAR_BRICK_WALL = 224
MARBLE = 183
MARBLE_BLOCK = 179
MARBLE_UNSAFE = 178
MARTIAN_CONDUIT = 176
METAL_FENCE = 107
METEORITE_BRICK = 182
MUDSTONE_BRICK = 24
MUD_UNSAFE = 15
MUSHROOM = 74
MUSHROOM_UNSAFE = 80
MUSIC_WALLPAPER = 128
MYTHRIL_BRICK = 26
OBSIDIAN_BACK_UNSAFE = 79
OBSIDIAN_BRICK = 20
OBSIDIAN_BRICK_UNSAFE = 14
ORNAMENT_WALLPAPER = 117
PALLADIUM_COLUMN = 109
PALM_WOOD = 151
PALM_WOOD_FENCE = 152
PEARLSTONE_BRICK = 22
PEARLSTONE_BRICK_UNSAFE = 28
PEARLWOOD = 43
PEARLWOOD_FENCE = 140
PINK_DUNGEON = 19
PINK_DUNGEON_SLAB = 102
PINK_DUNGEON_SLAB_UNSAFE = 96
PINK_DUNGEON_TILE = 103
PINK_DUNGEON_TILE_UNSAFE = 97
PINK_DUNGEON_UNSAFE = 9
PLANKED = 27
PLATINUM_BRICK = 47
PUMPKIN = 113
PURPLE_RAIN_WALLPAPER = 129
PURPLE_STAINED_GLASS = 88
RAINBOW_BRICK = 44
RAINBOW_STAINED_GLASS = 93
RAINBOW_WALLPAPER = 130
RED_BRICK = 6
RED_STAINED_GLASS = 92
RED_STUCCO = 36
RICH_MAHOGANY_FENCE = 139
RICH_MAOGANY = 42
ROCKS_UNSAFE1 = 212
ROCKS_UNSAFE2 = 213
ROCKS_UNSAFE3 = 214
ROCKS_UNSAFE4 = 215
RUBY_GEMSPARK = 164
RUBY_GEMSPARK_OFF = 161
RUBY_UNSAFE = 52
SAIL = 148
SANDSTONE = 187
SANDSTONE_BRICK = 34
SAND_FALL = 226
SAPPHIRE_GEMSPARK = 165
SAPPHIRE_GEMSPARK_OFF = 162
SAPPHIRE_UNSAFE = 50
SHADEWOOD = 85
SHADEWOOD_FENCE = 141
SHROOMITE_PLATING = 175
SILLY_BALLOON_GREEN_WALL = 230
SILLY_BALLOON_PINK_WALL = 228
SILLY_BALLOON_PURPLE_WALL = 229
SILVER_BRICK = 11
SLIME = 76
SNOWFLAKE_WALLPAPER = 122
SNOW_BRICK = 31
SNOW_FALL = 227
SNOW_WALL_UNSAFE = 40
SPARKLE_STONE_WALLPAPER = 131
SPIDER_UNSAFE = 62
SPOOKY_WOOD = 115
SQUIGGLES_WALLPAPER = 121
STARLIT_HEAVEN_WALLPAPER = 132
STARS_WALLPAPER = 120
STONE = 1
STONE_SLAB = 147
TIN_BRICK = 45
TIN_PLATING = 167
TITANSTONE_BLOCK = 111
TOPAZ_GEMSPARK = 166
TOPAZ_GEMSPARK_OFF = 163
TOPAZ_UNSAFE = 49
TUNGSTEN_BRICK = 46
WATERFALL = 136
WHITE_DYNASTY = 142
WOOD = 4
WOODEN_FENCE = 106
YELLOW_STAINED_GLASS = 89
YELLOW_STUCCO = 37
class lihzahrd.tiles.Block(type_: lihzahrd.tiles.blocktype.BlockType, shape: lihzahrd.tiles.shape.Shape = <Shape.NORMAL: 0>, frame: Optional[lihzahrd.tiles.frameimportantdata.FrameImportantData] = None, paint: Optional[int] = None, is_active: bool = True)

A block that has been placed in the world.

frame

The framedata of the block, if present.

is_active

If the block is solid or can be passed through because of an Actuator.

paint

The paint color of a block.

shape

The shape of the block, is changed with an hammer.

type

The type of the block (dirt, stone, …).

class lihzahrd.tiles.Wall(type_: lihzahrd.tiles.walltype.WallType, paint: Optional[int] = None)

A wall that has been placed in the world.

paint
type
class lihzahrd.tiles.Liquid(type_: lihzahrd.tiles.liquidtype.LiquidType, volume: int = 255)

A liquid present in a tile.

type

The type of liquid present in the tile.

volume

The volume of liquid present in the tile.

0 means the tile has no liquid, while 255 means the tile is full of liquid.

Values over 255 aren’t supported.

class lihzahrd.tiles.Tile(block: Optional[lihzahrd.tiles.block.Block] = None, wall: Optional[lihzahrd.tiles.wall.Wall] = None, liquid: Optional[lihzahrd.tiles.liquid.Liquid] = None, wiring: lihzahrd.tiles.wiring.Wiring = None)

A tile, composed by a block, a wall, a liquid and wires.

block
liquid
wall
wiring