lihzahrd.header

class lihzahrd.header.AltarsSmashed(count: int, ore_tier1: lihzahrd.header.hardmodeore.HardmodeTier1Ore, ore_tier2: lihzahrd.header.hardmodeore.HardmodeTier2Ore, ore_tier3: lihzahrd.header.hardmodeore.HardmodeTier3Ore)

Information related to the first three hardmode ores.

count: int = None

The number of altars smashed.

class lihzahrd.header.AnglerQuest(current_goal: lihzahrd.header.anglerquestfish.AnglerQuestFish, completed_by: List[str])

Information about today’s Angler’s quest.

completed_by: typing.List[str] = None

A list of player names who completed the angler’s quest today.

current_goal: AnglerQuestFish = None

The fish currently requested by the angler.

class lihzahrd.header.AnglerQuestFish

An enumeration.

AMANITIA_FUNGIFIN = 25
ANGELFISH = 26
BATFISH = 0
BLOODY_MANOWAR = 27
BONEFISH = 28
BUMBLEBEE_TUNA = 1
BUNNYFISH = 29
CAPN_TUNABEARD = 30
CATFISH = 2
CLOUDFISH = 3
CLOWNFISH = 31
CURSEDFISH = 4
DEMONIC_HELLFISH = 32
DERPFISH = 33
DIRTFISH = 5
DYNAMITE_FISH = 6
EATER_OF_PLANKTON = 7
FALLEN_STARFISH = 8
FISHOTRON = 10
FISHRON = 34
GUIDE_VOODOO_FISH = 22
HARPYFISH = 11
HUNGERFISH = 12
ICHORFISH = 13
INFECTED_SCABBARDFISH = 35
JEWELFISH = 14
MIRAGE_FISH = 15
MUDFISH = 36
MUTANT_FLINXFIN = 16
PENGFISH = 17
PIXIEFISH = 18
SLIMEFISH = 37
SPIDERFISH = 19
THE_FISH_OF_CTHULHU = 9
TROPICAL_BARRACUDA = 38
TUNDRA_TROUT = 20
UNICORN_FISH = 21
WYVERNTAIL = 23
ZOMBIE_FISH = 24
class lihzahrd.header.Backgrounds(bg_underground_snow: int, bg_underground_jungle: int, bg_hell: int, bg_forest: int, bg_corruption: int, bg_jungle: int, bg_snow: int, bg_hallow: int, bg_crimson: int, bg_desert: int, bg_ocean: int)

The backgrounds of various world biomes.

class lihzahrd.header.BossesDefeated(eye_of_cthulhu: bool, eater_of_worlds: bool, skeletron: bool, queen_bee: bool, the_twins: bool, the_destroyer: bool, skeletron_prime: bool, any_mechnical_boss: bool, plantera: bool, golem: bool, king_slime: bool, goblin_army: bool, clown: bool, frost_moon: bool, pirates: bool, duke_fishron: bool, moon_lord: bool, pumpking: bool, mourning_wood: bool, ice_queen: bool, santa_nk1: bool, everscream: bool, martian_madness: bool, lunatic_cultist: bool, lunar_pillars: lihzahrd.header.pillarsinfo.PillarsInfo, old_ones_army: lihzahrd.header.oldonesarmytiers.OldOnesArmyTiers)
any_mechnical_boss: bool = None

Appearently, there’s a different flag for beating any mechanical boss and a specific mechanical boss.

class lihzahrd.header.Clouds(bg_cloud: int, cloud_number: int, wind_speed: float)

Information about… the clouds in the world?

class lihzahrd.header.Events(blood_moon: bool, solar_eclipse: bool, invasion: lihzahrd.header.invasion.Invasion, slime_rain: float, rain: lihzahrd.header.rain.Rain, party: lihzahrd.header.party.Party, sandstorm: lihzahrd.header.sandstorm.Sandstorm, lunar_events: lihzahrd.header.lunarevents.LunarEvents)

Information about the ongoing world events.

blood_moon: bool = None

If the current moon is a Blood Moon.

invasion: Invasion = None

Information about the currently ongoing invasion.

lunar_events: LunarEvents = None

Information about the currently ongoing Lunar Events.

party: Party = None

Information about the currently ongoing party.

rain: Rain = None

Information about the currently ongoing rain.

sandstorm: Sandstorm = None

Information about the currently ongoing sandstorm.

slime_rain: float = None

How long the slime rain will go on for.

solar_eclipse: bool = None

If the current day is a Solar Eclipse.

class lihzahrd.header.FourPartSplit(separators: List[int], properties: List)

A world property split in four parts, separated by three vertical lines at a certain x coordinate.

property far_left
property far_right
get_property_at_x(x: int)
property nearby_left
property nearby_right
properties: typing.List = None

The four properties, in order:

  • The far left property, the one between the left world edge and the first separator.

  • The nearby left property, between the first and the second separator.

  • The nearby right property, between the second and the third separator.

  • The far right property, between the third separator and the right world edge.

separators: typing.List[int] = None

The three x coordinates of the vertical separators, in increasing order.

class lihzahrd.header.GeneratorInfo(seed, version)

Information about the world generator.

seed = None

The seed this world was generated with.

version = None

The version of the generator that created this world.

class lihzahrd.header.HardmodeTier1Ore

An enumeration.

COBALT = 107
NOT_DETERMINED = -1
PALLADIUM = 221
class lihzahrd.header.HardmodeTier2Ore

An enumeration.

MYTHRIL = 108
NOT_DETERMINED = -1
ORICHALCUM = 222
class lihzahrd.header.HardmodeTier3Ore

An enumeration.

ADAMANTITE = 111
NOT_DETERMINED = -1
TITANIUM = 223
class lihzahrd.header.Invasion(delay: int, size: int, type_: lihzahrd.header.invasiontype.InvasionType, position: float, size_start: int)

Invasions (goblin army, pirates, martian madness…) related information.

type: InvasionType = None

The type of the current invasion (goblin army / pirates / martian madness…).

If InvasionType.NONE, no invasion will be active in the world.

class lihzahrd.header.InvasionType

An enumeration.

FROST_LEGION = 2
GOBLIN_INVASION = 1
MARTIAN_MADNESS = 4
NONE = 0
PIRATE_INVASION = 3
class lihzahrd.header.LunarEvents(are_active: bool, pillars_present: lihzahrd.header.pillarsinfo.PillarsInfo)

Lunar Events (Lunar Pillars) related information.

are_active: bool = None

If the Lunar Events are active or not.

pillars_present: PillarsInfo = None

Which pillars are currently present in the world.

class lihzahrd.header.MoonPhase

An enumeration.

FIRST_QUARTER = 6
FULL_MOON = 0
NEW_MOON = 4
THIRD_QUARTER = 2
WANING_CRESCENT = 3
WANING_GIBBOUS = 1
WAXING_CRESCENT = 5
WAXING_GIBBOUS = 7
class lihzahrd.header.MoonStyle

All possible moon styles.

ORANGE = 1
RINGED_GREEN = 2
WHITE = 0
class lihzahrd.header.OldOnesArmyTiers(tier1, tier2, tier3)
class lihzahrd.header.Party(thrown_by_party_center: bool, thrown_by_npcs: bool, cooldown: int, partying_npcs: List[int])

NPC Party related information.

cooldown: int = None

How long a party cannot be started for.

property is_active
partying_npcs: typing.List[int] = None

The list of NPC IDs that threw the party.

thrown_by_npcs: bool = None

If the item was spontaneously thrown by NPCs.

thrown_by_party_center: bool = None

If the party was started by right-clicking a Party Center.

class lihzahrd.header.PillarsInfo(solar, vortex, nebula, stardust)

A container for information associated with the Lunar Pillars.

class lihzahrd.header.Rain(is_active: bool, time_left: int, max_rain: float)

Rain related information.

is_active: bool = None

If it is currently raining in the world.

time_left: int = None

How long it will continue to rain for.

class lihzahrd.header.Sandstorm(is_active: bool, time_left: int, severity: float, intended_severity: float)

Sandstorm related information.

is_active: bool = None

If a sandstorm is currently ongoing in the desert.

time_left: int = None

How long the sandstorm will continue for.

class lihzahrd.header.SavedNPCs(goblin_tinkerer: bool, wizard: bool, mechanic: bool, angler: bool, stylist: bool, tax_collector: bool, bartender: bool)
class lihzahrd.header.ShadowOrbs(smashed_at_least_once: bool, spawn_meteorite: bool, evil_boss_counter: int)

Information related to the Shadow Orbs (or the Crimson Hearts) smashed in the world.

evil_boss_counter: int = None

If it is 2, the Eater of Worlds will spawn when a Shadow Orb is smashed.

It is the number of Shadow Orbs broken, modulo 3.

smashed_at_least_once: bool = None

If a Shadow Orb has ever been smashed in this world.

spawn_meteorite: bool = None

If a Meteorite should land in the world at midnight.

It is set to True when a Shadow Orb is smashed, then it is set to False when the meteorite actually lands.

class lihzahrd.header.Styles(moon: lihzahrd.header.moonstyle.MoonStyle, trees: lihzahrd.header.fourpartsplit.FourPartSplit, moss: lihzahrd.header.fourpartsplit.FourPartSplit)

The styles of various world elements.

class lihzahrd.header.Time(current: float, is_daytime: bool, moon_phase: int, sundial_cooldown: int, fast_forward_time: bool)

Game time related information.

current: float = None

The current game time.

is_daytime: bool = None

If the current time represents a day or a night.

moon_phase: int = None

The current moon phase.

sundial_cooldown: int = None

The number of days the Enchanted Sundial can’t be used for.

class lihzahrd.header.Version(data: Union[int, str])

A Terraria version.

_version_ids = {71: '1.2.0.3.1', 77: '1.2.2', 104: '1.2.3', 140: '1.3.0.1', 151: '1.3.0.4', 153: '1.3.0.5', 154: '1.3.0.6', 155: '1.3.0.7', 156: '1.3.0.8', 170: '1.3.2', 174: '1.3.3', 178: '1.3.4', 194: '1.3.5.3'}
id
property name
class lihzahrd.header.WorldEvilType

An enumeration.

CORRUPTION = False
CRIMSON = True