lihzahrd.World

class lihzahrd.World

The Python representation of a Terraria world.

altars_smashed: int = None

The number of Demon Altars smashed with a Pwnhammer (or better).

anglers_quest: AnglerQuest = None

Information about today’s Angler’s Quest.

backgrounds: Backgrounds = None

The backgrounds of the various biomes.

bestiary: Bestiary = None

Information about the bestiary, including sightings, kills and takling to NPCs.

bosses_defeated: BossesDefeated = None

Which bosses have been defeated in the world.

bounds: Rect = None

The world size in pixels.

cavern_level: float = None

The depth at which the cavern biome starts.

chests: List[Chest] = None

A list of all the containers (chests, barrels) in the world.

classmethod create_from_file(filename: str)

Create a World object from a .wld file.

Warning

Parsing an entire world may take up to a few minutes and quite a bit of memory!

Parameters

filename – The name of the file that should be parsed.

created_on = None

The date and time this world was created in.

property crimson_hearts

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

difficulty: Difficulty = None

//terraria.gamepedia.com/Difficulty) the game is in.

Type

The difficulty (https

dungeon_point: Coordinates = None

The Old Man spawn point.

events: Events = None

Currently ongoing world events.

generator: GeneratorInfo = None

Information about the generation of this world.

halloween_today: bool = None

Is today an Halloween reward day? Triggered by reaching Wave 15 of the Pumpkin Moon.

id: int = None

The world id. Used to name the minimap file.

property is_classic

If the world is in classic difficulty or not.

is_drunk_world: bool = None

//terraria.gamepedia.com/Secret_world_seeds#Drunk_World) seed.

Type

If the world was created with the 5162020 (https

property is_expert

If the world is in expert difficulty or not.

Provided for compatibility purposes.

is_favorite: bool = None

If the world is marked as favorite or not.

is_for_the_worthy: bool = None

If the world was created with the for the worthy (https://terraria.gamepedia.com/Secret_world_seeds#For_the_worthy) seed.

is_hardmode: bool = None

Whether or not the world is in hardmode.

property is_journey

If the world is in journey difficulty or not.

property is_master

If the world is in master difficulty or not.

is_tenth_anniversary: bool = None

If the world was created with the celebrationmk10 (https://terraria.fandom.com/wiki/Secret_world_seeds#Celebrationmk10) seed.

journey_powers: JourneyPowers = None

Status of powers available in Journey mode.

mobs: List[Mob] = None

(Unknown, possibly a list of mobs in the world?)

name: str = None

The name the world was given at creation. Doesn’t always match the filename.

npcs: List[NPC] = None

A list of all the NPCs currently living in the world, including the Old Man.

pets: Pets = None

Which pets have bene purchased.

revision: int = None

The number of times this world was saved.

saved_npcs: SavedNPCs = None

The NPCs that were rescued by the player.

saved_ore_tiers: SavedOreTiers = None

The metals that generated in the world.

savefile_type = None

The format of the save file. Should be 2 for all versions following 1.2.

shadow_orbs: ShadowOrbs = None

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

signs: List[Sign] = None

A list of all non-empty signs in the world.

size: Coordinates = None

The world size in tiles.

spawn_point: Coordinates = None

The coordinates of the spawn point.

styles: Styles = None

The styles of various world elements.

tile_entities: List[TileEntity] = None

A list of tile entities in the world, such as Training Dummies, Item Frames and Logic Sensors.

tiles: TileMatrix = None

A matrix of all the tiles present in the world.

time: Time = None

Game time related information.

treetop_variants: TreetopVariants = None

Treetops variants that can exist in the world.

underground_level: float = None

The depth at which the underground biome starts.

uuid: uuid.UUID = None

The Universally Unique ID of this world.

version: Version = None

The game version when this savefile was last saved.

weighed_pressure_plates: List[WeighedPressurePlate] = None

A list of all Weighed Pressure Plates in the world.

world_evil: WorldEvilType = None

Whether the world has Corruption or Crimson.

xmas_today: bool = None

Is today a Xmas reward day? Triggered by reaching Wave 20 of the Frost Moon.