lihzahrd.World
- class lihzahrd.World(version: Version, savefile_type: int, revision: int, is_favorite: bool, name: str, generator: GeneratorInfo, uuid_: UUID, id_: int, bounds: Rect, size: Coordinates, difficulty: Difficulty, is_drunk_world: bool, is_for_the_worthy: bool, is_tenth_anniversary: bool, is_the_constant: bool, is_bee_world: bool, is_upside_down: bool, is_trap_world: bool, is_zenith_world: bool, created_on, styles: Styles, backgrounds: Backgrounds, spawn_point: Coordinates, underground_level: float, cavern_level: float, time: Time, events: Events, dungeon_point: Coordinates, world_evil: WorldEvilType, saved_npcs: SavedNPCs, altars_smashed: int, is_hardmode: bool, shadow_orbs: ShadowOrbs, bosses_defeated: BossesDefeated, anglers_quest: AnglerQuest, clouds: Clouds, cultist_delay: int, tiles: TileMatrix, bestiary: Bestiary, journey_powers: JourneyPowers, chests: list[Chest], signs: list[Sign], shimmered_npcs: list[int], npcs: list[NPC], mobs: list[Mob], tile_entities: list[TileEntity], weighed_pressure_plates: list[WeighedPressurePlate], rooms: list[Room], pets: Pets, halloween_today: bool, xmas_today: bool, treetop_variants: TreetopVariants, saved_ore_tiers: SavedOreTiers, unknown_file_format_data: bytes = b'', unknown_world_header_data: bytes = b'', unknown_world_tiles_data: bytes = b'', unknown_chests_data: bytes = b'', unknown_signs_data: bytes = b'', unknown_npcs_data: bytes = b'', unknown_tile_entities_data: bytes = b'', unknown_pressure_plates_data: bytes = b'', unknown_town_manager_data: bytes = b'', unknown_bestiary_data: bytes = b'', unknown_journey_powers_data: bytes = b'')
The Python representation of a Terraria world.
- anglers_quest: AnglerQuest
Information about today’s Angler’s Quest.
- backgrounds: Backgrounds
The backgrounds of the various biomes.
- bosses_defeated: BossesDefeated
Which bosses have been defeated 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
The date and time this world was created in.
- property crimson_hearts: ShadowOrbs
Information related to the Shadow Orbs or Crimson Hearts in the world.
- difficulty: Difficulty
//terraria.gamepedia.com/Difficulty) the game is in.
- Type:
The difficulty (https
- dungeon_point: Coordinates
The Old Man spawn point.
- generator: GeneratorInfo
Information about the generation of this world.
- halloween_today: bool
Is today an Halloween reward day? Triggered by reaching Wave 15 of the Pumpkin Moon.
- is_bee_world: bool
If the world was created with the Not the bees seed.
- property is_classic
If the world is in classic difficulty or not.
- is_drunk_world: bool
If the world was created with the Drunk world seed.
- property is_expert
If the world is in expert difficulty or not.
- is_for_the_worthy: bool
If the world was created with the For the worthy seed.
- property is_journey
If the world is in journey difficulty or not.
- property is_legendary
If the world is in legendary difficulty or not.
- property is_master
If the world is in master difficulty or not.
- is_tenth_anniversary: bool
If the world was created with the Celebrationmk10 <https://terraria.wiki.gg/wiki/Secret_world_seeds#Celebrationmk10> seed.
- is_the_constant: bool
If the world was created with The Constant seed.
- is_upside_down: bool
If the world was created with the Don’t dig up seed.
- is_zenith_world: bool
If the world was created with the Get fixed boi seed.
- journey_powers: JourneyPowers
Status of powers available in Journey mode.
- saved_ore_tiers: SavedOreTiers
The metals that generated in the world.
- savefile_type
The format of the save file. Should be 2 for all versions following 1.2.
- shadow_orbs: ShadowOrbs
Information related to the Shadow Orbs or Crimson Hearts in the world.
- size: Coordinates
The world size in tiles.
- spawn_point: Coordinates
The coordinates of the spawn point.
- tile_entities: list[TileEntity]
A list of tile entities in the world, such as Training Dummies, Item Frames and Logic Sensors.
- tiles: TileMatrix
A matrix of all the tiles present in the world.
- treetop_variants: TreetopVariants
Treetops variants that can exist in the world.
- weighed_pressure_plates: list[WeighedPressurePlate]
A list of all Weighed Pressure Plates in the world.
- world_evil: WorldEvilType
Whether the world has Corruption or Crimson.