tModLoader

tModLoader

6,836 ratings
Subworld Library
6
3
5
2
6
2
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod Features: Library
Mod Side: Both
tModLoader Version: 1.4.3, 1.4.4
File Size
Posted
Updated
229.228 KB
Mar 26, 2022 @ 1:55pm
Nov 24 @ 8:35am
21 Change Notes ( view )

Subscribe to download
Subworld Library

Description
An API for modders to easily add dimensions (referred to as subworlds) to their mods, making all the necessary code injections, handling Multiplayer and managing every subworld.

Report issues on the forum page or GitHub:
https://forums.terraria.org/index.php?threads/86283
https://github.com/jjohnsnaill/SubworldLibrary/issues

Wiki:
https://github.com/jjohnsnaill/SubworldLibrary/wiki

HOW IT WORKS
Subworld Library does a LOT of code injection, as Terraria was not made with subworlds in mind.
Subworlds are highly customisable; from how big or small they are, to what ModSystems can update inside of them and even how they are lit.
Subworld Library removes Space, both Oceans and the Underworld from subworlds, allowing them to be extremely small without issues.

LOADING
Loading a subworld is straightforward. Loading screens can be as simple as text on a plain background, or something complex, like an item selection menu.

SAVING
Subworlds save to a directory named after the main world. A subworld and/or changes to players inside it can be temporary. Deleting a world deletes all of its subworlds as well.

MULTIPLAYER
Subworld Library works in Multiplayer with little to no extra work required from modders. A "subserver" is opened for every subworld being occupied.
Originally posted by tModLoader SubworldLibrary:
Developed By John Snail
416 Comments
John Snail  [author] Dec 8 @ 2:39am 
Likely an issue with a different mod, which ones are you using?
Prattsits Dec 7 @ 6:13pm 
Multiplayer bugs out like crazy, when with friends it begins counting all players as 1 person, thus causing no damage to be taken
Count Cake Nov 30 @ 8:38pm 
Does anyone know of mod that uses this that allows temporary worlds for mining and loot exploration? I'm starting a server that could have many people, and want a way for them to be able to mine and explore without exhausting the resources in the main world.
John Snail  [author] Nov 29 @ 2:54am 
Fixed in the latest patch!
HT•Cerberus Supremacy!•KR Nov 21 @ 11:32pm 
hello, i have a issue in regards to a crash i encountered during my starlight river+stars above playthrough. i had went back and forth about it in between mods and they suspect it to be a compatibility issue between subworld and starlight river. i have the crash log with me if you want it just dont know where to put it
John Snail  [author] Nov 15 @ 4:47am 
The backgrounds and NPC spawns are hardcoded but you can override them.
VictorGD Nov 15 @ 4:21am 
The subworlds I make still have space and the oceans. I analyzed the code of subworlds from existing mods and found no mention of them even though they're often 100% one biome. The "hideUnderworld" option is easy to find but I see nothing that removes space. What am I doing wrong? Is this a problem with the library?
blindstreak Nov 13 @ 6:08pm 
To Skyring and one having a problem downloading this from tmodloaders mod menu a fixes for it
unsubscribe and resubscribe to the mod here
Skyrigs Nov 11 @ 7:17am 
this mod doesnt want to download, it just tells me that it cant download and thats it
John Snail  [author] Nov 4 @ 5:55am 
Sounds like a mod conflict, send a log and I'll try to forward it to the right people!