跳到正文

World Templates Reforged

作者:iSkyh

Create worlds from ready-made templates in one click. Fully configurable in-game for modpack creators. Forge 1.20.1, client-side.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Create your modpack’s world from a ready-made template — in one click.

World Templates Reforged lets modpack authors ship a pre-built world (spawn builds, structures, NPCs, datapacks, everything) inside the mod itself, and gives players a dedicated “Create World” button on the world selection screen. One click, and the mod installs the template and clones it into a fresh world with a new random seed— server-style templates, but for singleplayer.

✨ Features

  • 🌍 Embedded world templates — your finished world ships as a zip inside the mod. It’s installed on first use (with zip-slip protection) and cloned on demand.
    – 🖱️ Custom world button — adds a configurable button to the world selection screen. The vanilla *”Create New World”* button can be hidden or kept.
    – 🗂️ Template selection screen — players pick between registered templates; each entry shows its name, icon and folder.
    – 🖼️ World icons that stick — the created world keeps the template’s icon, auto-resized to the 64×64 vanilla requires, and vanilla never overwrites it.
    – 🔀 Fresh seeds every time — each world gets a brand-new `SecureRandom` seed (never 0, never repeated), written into `level.dat`.
    – 🧹 Clean cloning — playerdata, advancements and stats are wiped; the world is built in a staging folder and only published when everything succeeds. Failed attempts never leave junk worlds behind, and broken leftovers are cleaned automatically.
    – ⚙️ Full in-game config — open from the Mods list → Config. Everything is customizable without touching a single file.

🎛️ For modpack creators

Open the config from Mods → World Templates Reforged → Config:

Button tab

Option What it does
Text / Tooltip Button label and hover text
Pos X / Pos Y Button position (-1 centers X)
Width / Height Button size (with live preview)

Templates tab

Option What it does
Default template Cycles through registered templates
Choose YES: opens the template selector · NO: uses the first template directly
Main template name Override the template’s displayed name
Icon Override the icon texture
World base name New worlds are named Trilcera, Trilcera 2, …
Show descriptions Folder/Source info lines in the list
Show ‘Create New World’ Keep or hide the vanilla button

All settings persist in <button class="items-center justify-center whitespace-nowrap rounded-xs focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 overflow-hidden hover:opacity-80 border-0 cursor-pointer hover:shadow-none focus:ring-0 focus:ring-offset-0 m-0 [&amp;_svg]:size-2 p-0 ml-0.5 leading-none align-middle transition-opacity text-preformat gap-0.5 inline text-left" title="Open config/worldtemplates-client.toml in editor" type="button">config/worldtemplates-client.toml</button>.

Ship your own world: replace the embedded /trilcera-template.zip in the mod jar with your own world zip (the world can be at the zip root or nested one folder deep — both layouts are handled).

❓ FAQ

Does it work on servers? It’s client-side only — designed for singleplayer world creation. On dedicated servers it does nothing.

Where is the template stored? In <game dir>/trilcera-template/. Created worlds go to saves/ like any normal world.

Can players still create normal worlds? Yes — set “Show ‘Create New World'” to YES in the config.

🙏 Credits

– Architecture inspired by World Templates by BrandonItaly (NeoForge)

– World-cloning flow based on the LonKraft Template API

– Built by iSkyh for the Trilcera modpack

📜 License

MIT — free to include in your modpack.

常见问题

World Templates Reforged 支持哪些 Minecraft 版本?

World Templates Reforged 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

World Templates Reforged 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

iSkyh 的其他作品

查看全部 →