Skip to main content

Build a zombie apocalypse in Minecraft 1.20.1

Start inside a glass dome with jungle vegetation and an intact city. Beyond the glass, highways connect ruined towns. Outside air causes Hunger, and stronger zombies roam in daylight. Build the pack by editing JSON and TOML files in a Minecraft instance, and edit city parts in the game.

Using a newer Minecraft version? The same approach applies. Generate the refuge domes and wasteland first, then use that layout to control hazards and zombie spawns. The example files and mod list target Forge 1.20.1. Check which supporting mods are available for your Minecraft version and loader, adapt the datapacks and configs to match, and test the result in a fresh world.

1. Set up a Forge instance​

Use Minecraft Java Edition 1.20.1, Java 17, and Forge 47.4.29. Create a folder named Apocalypse anywhere you keep game instances, or use the game directory created by your launcher. All file paths in this tutorial are relative to that directory.

  1. Make a mods/ folder. Install the Forge mods listed below through your launcher or download the JARs and put them there.
  2. Create each instance file in the appendix at the path shown. Copy its contents into a plain-text editor and save it under the game directory.
  3. Start the game with PortableMC or your preferred launcher. Check the in-game Mods menu before creating a world.

Set up PortableMC​

  1. Install PortableMC 5.0.6. Either extract the binary for your operating system from its release page and add its folder to your PATH, or install it with pipx using the commands below. Open a new terminal after pipx ensurepath. In either case, verify the installation with portablemc --version. PortableMC downloads · Install pipx

    pipx install portablemc==5.0.6
    pipx ensurepath
  2. In PowerShell, Terminal on macOS, or a Linux shell, run the following and sign in with the Microsoft account that owns Minecraft Java Edition. The second command shows the Minecraft profile name you’ll use to start the game. PortableMC authentication

    portablemc --main-dir "$HOME/.apocalypse-launcher" auth login
    portablemc --main-dir "$HOME/.apocalypse-launcher" auth list
  3. Open a terminal in your Apocalypse directory. Replace YourMinecraftName with the profile name shown above and run this command each time you want to play. On first launch PortableMC installs Minecraft and Forge. It looks for the compatible Java runtime and can download it. If you need to choose Java 17 yourself, add --jvm "/path/to/java" using the full path to its java or java.exe executable. PortableMC launch options

    portablemc --main-dir "$HOME/.apocalypse-launcher" start --mc-dir "." --auth --username "YourMinecraftName" --jvm-arg=-Xmx4G forge::1.20.1-47.4.29

--mc-dir "." makes the current folder the game directory for your mods, configs, and saves. --main-dir keeps PortableMC’s downloads and sign-in session in a separate folder.

If you work in IntelliJ IDEA, open Apocalypse as a folder and run the same command in its Terminal tab. On Linux or macOS you can also add a toolbar shortcut under Run → Edit Configurations → Add New → Shell Script. Name it Apocalypse Client, paste the launch command into Script text, and set Working directory to $PROJECT_DIR$. Use the full path to PortableMC if the IDE can’t find it on your PATH. IntelliJ Shell Script configuration

Use another launcher​

Choose Minecraft 1.20.1 and Forge 47.4.29. Use Open Folder or the launcher’s instance-directory option to find the game directory for step 2.

  • In the Minecraft Launcher, run the Forge installer and choose Install client. Edit the Forge installation under Installations and point Game Directory at your Apocalypse folder. Forge installer
  • In ATLauncher, open Create Pack, choose the Minecraft version and Forge, then click Install. ATLauncher wiki
  • In Prism Launcher, click Add Instance, select the Minecraft version under Custom, and choose Forge. Prism Launcher wiki
  • In CurseForge, open Minecraft → Create, name the custom profile, and choose the Minecraft version and Forge. CurseForge Help
  • In the Modrinth App, create a custom instance from your library and choose the Minecraft version and Forge. You can adjust either under Settings → Installation. Modrinth Help
FolderWhat goes there
mods/One Forge jar per mod or library.
config/The Lost Cities profiles, In Control rules, and Global Packs settings used by the instance.
defaultconfigs/The custom Hazardous server settings Forge copies into each new save. Existing saves use their own saves/<world>/serverconfig/.
datapacks/Apocalypse/The world presets, biome and entity tags, Hazardous definitions, and any city assets you want new worlds to use.

Mods for the Forge 1.20.1 instance​

Install the Forge versions below. Lost Cities and Lost Worlds provide the part and palette commands, exact sphere spawn, and sea-level override this tutorial uses.

ModVersion and role
Lost Cities1.20-7.5.10 generates the cities and glass refuges and provides the city editing commands. Modrinth · CurseForge
Lost Worlds1.20-1.0.1 sets up the terrain and biome layout. Modrinth · CurseForge
Hazardous and In Control1.20-1.0.4 and 1.20-9.5.1 control outside air and the zombie horde. Hazardous · In Control
SignTastic and Not Enough Wands1.20-3.0.2 and 1.20-6.0.3 supply signs and building tools. SignTastic · Not Enough Wands
McJtyLib and The One Probe1.20-8.0.12 and 1.20.1-10.0.5 supply shared APIs. McJtyLib · The One Probe
Curios API5.2.0-beta.3+1.20.1 is used by Hazardous. Curios API
Global Packs19.3.7 loads the Apocalypse pack for every world. Release
Terralith2.5.4 supplies Desert Canyon, Gravel Desert, Arid Highlands, and Tropical Jungle. Release
Chipped3.0.7 adds masonry, tiles, and glass for city parts. Release
Athena and Resourceful Lib3.1.2 and 2.1.29 are Chipped’s libraries. Athena · Resourceful Lib
Rotten Creatures and Platform1.1.0 adds zombie variants with distinct models and attacks. 1.4.2 is its required library. Rotten Creatures · Platform
NoSunburn1.0.2 keeps the configured zombies active in daylight. Release
Just Enough Items (JEI)15.56.0.205 makes it easy to find blocks and tools for the workshop. Release

2. Create the Overworld​

If you plan to edit city parts in this save, enable Edit mode before creating the world.

  1. In Singleplayer → Create New World, enable Allow Cheats for the workshop. Use Creative for the building segment and switch to Survival for the hazard demonstration.
  2. Leave World Type on Default and create a world with any seed. Global Packs loads the pack from datapacks/Apocalypse/ automatically. Lost Cities’ common settings (common.toml) assign the apocalypse profile to the Overworld by default. Accept Minecraft’s experimental world-generation prompt.
  3. Use your starting dome for the refuge demonstration. Fly across the wasteland to find other domes by their glass shells and ruined towns by their broken roofs and rubble. /locate biome #apocalypse:wasteland can help you find dry terrain. Run /lostcities debug to log the current chunk’s profile, city style, and ruin height.

Create a fresh world to test changes to terrain or city profiles. Existing chunks keep their previous terrain.

How the generators fit together​

The replacement for Minecraft’s Default preset (normal.json) and the named Apocalypse preset (wasteland.json) use the same generator settings. Update both if you change the terrain. lwsettings.type: "normal" provides solid terrain for cities on both sides. settings: "minecraft:overworld" uses Terralith’s noise settings and surface rules. Lost Worlds reads lwsettings.noise_sea_level, which the pack sets to -64 to drain the global ocean, including where the biome map assigns Bamboo Jungle to a former ocean floor. Local water features can still generate. Lost Worlds documentation

Global Packs loads the Apocalypse pack above Terralith. The pack descriptor (pack.mcmeta) filters Terralith’s lower-priority data/minecraft/dimension/overworld.json, letting the selected preset supply the Overworld generator. The Global Packs settings (global_packs.toml) also load the pack’s language file (en_us.json) so the named preset displays as Apocalypse.

Lost Worlds’ wasted_biomes source reads the inner adapt_biome_source, then chooses a replacement from mapping or sphere_mapping. The inner source uses temperature, humidity, and continentalness to vary the starting biome ID. Outside, mapping and its default allow only Desert, Badlands, Arid Highlands, Desert Canyon, and Gravel Desert. Inside, sphere_mapping and sphere_default allow only Jungle, Bamboo Jungle, and Tropical Jungle. Keep the outputs represented in the inner source as well, so Minecraft knows about their generation features. Add any new exterior biome to the wasteland biome tag (wasteland.json), which Hazardous and In Control share.

Lost Cities supplies the actual dome and city layout from two profiles:

ProfileWhat to change
apocalypse (apocalypse.json)landscapeType: "spheres" enables domes. spawnSphere: "<in>" places the starting spawn in one. cityChance: 1.0 places a city center in every generated dome. buildingChance: 0.75 gives eligible city lots a 75% chance to contain buildings. ruinChance: 0.0 and zero explosion chances keep their buildings intact.
apocalypse_ruins (apocalypse_ruins.json)cityspheres.outsideProfile in the first profile selects this one. cityChance and radius control the frequency and footprint of the exterior towns. ruinChance: 1.0, low ruin heights, explosions, rubble, and reduced foliage give the wasteland its broken skyline.

citySphereChance controls how often a dome appears. cityChance controls whether its center starts a city. The refuge’s cityMinHeight: -64 and cityMaxHeight: 319 let cities generate across the full Overworld height range, including the low terrain left behind when the oceans drain. Lost Cities still reserves streets and can skip individual chunks to avoid structures. Use /lostcities debug near a dome’s center to check its city status.

For new worlds, set the intercity highway options under lostcity in the main profile (apocalypse.json). A smaller highwayPlanningCellSize gives the planner more chances to find nearby towns. The shorter hub and route distances let it connect closer towns, and highwayMaximumConnectionsPerHub: 3 allows more branches. Lost Cities keeps highways outside the domes.

Both profiles disable Lost Cities building spawners so In Control can manage the horde. Edit the profiles in config/lostcities/profiles/ with Minecraft closed, then restart and create a fresh world to test the results. Lost Cities profile options

Keep the world spawn inside the refuge​

Lost Cities uses spawnSphere: "<in>" to choose a dry spawn inside the glass shell with room to stand. It uses that exact position on first join and on respawns at world spawn. Beds and respawn anchors still work.

The minecraft:load function tag (load.json) adds apocalypse:setup to the functions Minecraft runs when the world loads and after /reload. "replace": false preserves functions other packs have added to the tag. The apocalypse namespace and setup name point to data/apocalypse/functions/setup.mcfunction. Minecraft function tags

The setup function (setup.mcfunction) runs gamerule spawnRadius 0 to remove Minecraft’s random spread around world spawn. Run /gamerule spawnRadius in-game to see the current value. The setup function reapplies 0 on every load or reload.

3. Edit a generated street or building​

Enable Edit mode for the workshop​

  1. In Create New World, leave World Type on Default and enable Allow Cheats.
  2. Open More → Cities. Click the profile button until it shows apocalypse, then click Customize.
  3. Cycle the page button to Various and turn on Edit mode. Click Done and create the world.

Lost Cities stores the customized profile in this save’s serverconfig/lostcities-server.toml. Edit mode records the part data that /lostcities update and the palette editor need as each chunk generates, both in the refuges and in exterior towns.

Edit and export parts​

  1. Make a backup of the workshop save before editing. Find a facade or street surface in a generated city chunk and run /lostcities listparts. The output gives each recorded part’s ID and Y position. /lostcities locatepart <id> can find another loaded placement of that part. Use command completion for the asset ID.
  2. Use JEI to find the Swapping Wand and a Chipped block such as Eroded Mossy Stone Bricks. Sneak-right-click the replacement block with the wand to sample it, then right-click a wall in the refuge to swap its masonry. Keep the changes inside the part’s footprint for export.
  3. Stand in the edited chunk and run /lostcities update. It compares live block states with the chunk’s generation snapshot and saves overrides in lostcities-updates/data/, under the game directory. Then run /lostcities refreshworld to preview the override wherever the same template is loaded. Visit a second copy, load it, and refresh again if needed.
  4. Aim at a wall block in a generated part and run /lostcities palette inspect. Add choice lets you mix a material into every use of one symbol in that part. For example, /lostcities palette add <x> <y> <z> chipped:eroded_mossy_stone_bricks 32 allocates 32 of 128 slots to the Chipped block. Split cell changes one template cell independently. Use Edit shared palette to change a named palette that multiple parts inherit. Refresh after either kind of palette edit.
  5. Run /lostcities revert in the affected chunk to restore its original recorded part blocks and archive the active part JSON. Refresh again to propagate that revert to loaded copies. For a shared palette, move its file out of lostcities-updates/data/ and refresh.
  6. Use a SignTastic Square Sign at the exit and label it REFUGE 01 or WASTELAND ACCESS. Open the sign’s UI to enter text and choose colors. The Sign Configurator copies a sign with right-click and pastes its settings with sneak-right-click. Keep the decorated demonstration save if you want to preserve the sign text. The Lost Cities part export carries blocks and block states. SignTastic text, inventories, and other block-entity data stay in the save.

For the final world, copy the approved files from lostcities-updates/data/ into datapacks/Apocalypse/data/, preserving the namespace and lostcities/parts/ or lostcities/palettes/ path. Restart Minecraft and create a fresh Default world with Cities untouched. It uses the pack’s apocalypse profile with Edit mode off and loads your exported assets. A replacement keeps its template ID, so it can affect both the refuge and the ruins. If you want a palette that only appears in one type of city, give the new assets their own IDs and point a dedicated city style at them.

4. Make the wasteland air cause Hunger​

Create the three Hazardous definitions under datapacks/Apocalypse/data/apocalypse/hazardous/.

FileRole
Source (hazardsources/wasteland_air.json)Matches #apocalypse:wasteland. The sky transmission has requiresDirectSky: false and indoorLeak: 1.0, so ducking under a roof in the ruins leaves the same exposure. Night and weather use a multiplier of 1.0.
Type (hazardtypes/wasteland_air.json)Uses current exposure without accumulating a dose. It tests the linked effect every 20 ticks.
Effect (effectentries/wasteland_hunger.json)Exposure of at least 0.1 applies Hunger II for 100 ticks. The short effect is renewed outside and expires within five seconds after you reach jungle air.

The Hazardous server defaults (hazardous-server.toml) enable the source and type by ID and set respawn hazard immunity to zero for the demonstration. Forge copies the defaults into the new save’s serverconfig directory. For an existing workshop save, edit its own serverconfig/hazardous-server.toml while Minecraft is closed. Reopen the world after changing the Hazardous datapack JSON to load the new definitions. Hazardous datapack documentation

Test in Survival. Wait in the refuge and check that Hunger is absent. Cross to a dry biome and wait for the icon, then step inside an exterior building and verify the effect continues. Walk back into the jungle and let the existing effect expire. Lost Worlds maps biomes by horizontal position with a small buffer at the shell. Use F3 to see the biome where the air changes. The sphere footprint also applies to the sky above and caves below the dome in this version.

5. Populate the ruins with zombies​

Rotten Creatures gives the horde recognizable variants with their own attacks. The Burned goes into a frenzy at low health, and Mummies can release scarabs. The horde entity tag (horde.json) includes all ten Rotten Creatures zombie variants, plus husks and zombie villagers. Rotten Creatures

In Control’s spawner (spawner.json) makes regular packs of Undead Miners, Burned, Mummies, Frostbitten, Swampies, and Glacial Hunters. A separate rule spawns occasional lone zombie villagers, husks, Dead Beards, Immortals, and Zaps. Zombie Lackeys join when a Dead Beard summons them.

The weights follow the order of the mob IDs in each rule. Raise persecond for more frequent attempts or amount for larger packs. Inside conditions, norestrictions: true allows daytime spawns and seesky: true puts these packs in the open. Candidates need the apocalypse:wasteland biome tag. The maxlocal cap applies per mob type, and maxhostile leaves room for surface packs when caves already hold natural spawns. The apocalypse_horde scoreboard tag marks mobs created by this extra spawner.

The spawn rules (spawn.json) handle the new mobs in this order.

  1. Use when: "finalize" and spawntype: "structure" to stop vanilla villages from generating villagers. Curing and breeding still work.
  2. Block regular vanilla zombies and wandering traders. The incontrol: false husk rule blocks spawns from other sources, keeping husk numbers under the single-spawn rule’s control.
  3. Use insphere: true to deny new hostile mobs and Rotten Creatures companions in the sphere footprint.
  4. Outside it, give every mob in #apocalypse:horde twice the maximum health, 1.5 times the damage, and 1.2 times the speed. Let scarabs, skeleton lackeys, and hunter wolves join outside so the variants can use their summoned companions.
  5. Deny remaining new hostile mobs in the Overworld.

The horde rules use when: "onjoin" and firstjoin: true. They catch natural and newly summoned mobs, and the multipliers run once per mob. Already-spawned zombies can walk through open entrances, so build a door or airlock for the refuge. In Control documentation · 1.20.1 technical reference

NoSunburn’s settings (nosunburn-common.toml) protect zombie villagers, husks, and Rotten Creatures mobs from sunlight. They can still take ordinary fire damage. Restart Minecraft after editing this file. After editing In Control’s JSON files, run /incontrol reload.

To check the rules, stand on dry ground in the open wasteland and set the time to noon in clear weather. Summon a Frostbitten, then give sunlight a few seconds to act.

/time set noon
/weather clear
/summon rottencreatures:frostbitten ~2 ~ ~ {Tags:["apocalypse_check"],NoAI:1b,PersistenceRequired:1b}
/attribute @e[tag=apocalypse_check,limit=1,sort=nearest] minecraft:generic.max_health base get
/data get entity @e[tag=apocalypse_check,limit=1,sort=nearest] Fire
/data get entity @e[tag=apocalypse_check,limit=1,sort=nearest] ArmorItems[3]
/kill @e[tag=apocalypse_check]

The Frostbitten should have 40 maximum health, a nonpositive Fire timer, and an empty helmet slot. Repeat the summon inside the refuge and use /execute if entity @e[tag=apocalypse_check] to verify that the interior rule cancelled it. To watch packs spawn in daylight, switch to Survival in the open wasteland at noon with mob spawning enabled. Use /execute if entity @e[tag=apocalypse_horde,distance=..72] to count nearby horde members.

Villages still generate with their buildings and beds. Find a zombie villager in the wasteland, shelter it, and cure it with Weakness and a golden apple. Give two cured villagers food and spare beds to repopulate the village. Curing a zombie villager · Villager breeding

Ship Lost Cities as the default in your own modpack​

For Minecraft 1.20.1 Forge, assign your default profile to the Overworld in Lost Cities’ common settings (common.toml). Keep any other dimension entries your pack uses. This workshop ships the following mappings.

[profiles]
dimensionsWithProfiles = ["minecraft:overworld=apocalypse", "lostcities:lostcity=biosphere", "lostworlds:abyss=biosphere_caves"]

Use minecraft:overworld=default for the built-in Lost Cities style. For a custom profile, use its filename without .json and ship it under config/lostcities/profiles/ along with any profiles it references.

Lost Cities defaults selectedProfile to <CHECK> when Forge creates the per-world server config. Leaving Cities untouched uses the Overworld mapping. If you choose a profile or enable Edit mode in Cities, Lost Cities saves that choice in the new world’s serverconfig/lostcities-server.toml.

Lost Cities adds city generation to the terrain generator the world uses. For the loose datapack in this workshop, Global Packs makes the Lost Worlds terrain available before world creation. Put the pack in <instance>/datapacks/Apocalypse/ with pack.mcmeta directly inside it. The Apocalypse pack replaces data/minecraft/worldgen/world_preset/normal.json, so Minecraft’s Default option uses the Lost Worlds generator and biome settings. If a terrain mod provides data/minecraft/dimension/overworld.json, that file can take precedence over the preset. The Apocalypse pack loads above Terralith and filters that file. You can also ship the same data as a low-code Forge JAR. Global Packs setup and load order

6. Publish the modpack on Modrinth and CurseForge​

The low-code JAR is optional on both platforms. This release walkthrough ships the loose datapacks/Apocalypse/ folder with Global Packs and its config, so the terrain and Lost Cities assets load before world generation. The low-code Forge JAR is an alternative if you want to publish the data as a separate mod dependency.

  1. Prepare a clean release instance in each app. Use Minecraft 1.20.1 and Forge 47.4.29. Install the hosted mods through the app, including Lost Cities 1.20-7.5.10 and Lost Worlds 1.20-1.0.1, so each export references the exact files. Check that editMode is false in both custom Lost Cities profiles.

  2. Select the same overrides for both exports. Copy the pack’s settings and the complete datapack into the release instance. Put any exported city parts and palettes in the datapack’s data/ folder. Leave out workshop saves, logs, launcher settings, and lostcities-updates/.

    overrides/
    ├── config/ lostcities/, incontrol/, global_packs.toml,
    │ nosunburn-common.toml, and other pack settings
    ├── defaultconfigs/ hazardous-server.toml
    └── datapacks/
    └── Apocalypse/ pack.mcmeta, data/, and assets/
  3. Export Apocalypse-1.0.0.mrpack for Modrinth. Open the instance’s Mods → Export modpack and include the files from step 2. At the archive root, modrinth.index.json sits alongside overrides/. The index records Minecraft, Forge, and the Modrinth downloads. For a JAR unavailable on Modrinth, use overrides/mods/ only when redistribution is permitted. Modrinth export · Archive format · Redistribution permissions

  4. Export Apocalypse-1.0.0.zip for CurseForge. Use Add More Content for CurseForge mods, then choose Share Profile → Export as .zip. Select the mods and the files from step 2. The archive root contains manifest.json and overrides/. Keep the generated manifest intact. It lists hosted mods by project and file ID. Reserve overrides/mods/ for approved non-CurseForge JARs and credit their authors on the project page. CurseForge export and approved overrides · Moderation rules

  5. Reimport both exports before uploading. Install each file into a fresh profile in its app. Create a Default world with Cities untouched. Check that you spawn inside a jungle dome, that the wasteland gives Hunger and spawns the horde in daylight, and that any exported city parts appear. Use /datapack list enabled and /lostcities debug if something is missing. Create a Modpack project on each site and upload its corresponding archive as a Minecraft 1.20.1 / Forge version. Modrinth submission · CurseForge submission

Run the same pack on a dedicated server​

Use the same Forge 1.20.1–47.4.29 installer, choose Install server, and select a separate folder. Copy mods/, config/, defaultconfigs/, and datapacks/ from the client instance into that folder. Set these values in server.properties before the server generates a world.

level-name=apocalypse
level-type=minecraft:normal

Use Forge’s generated run.bat on Windows or ./run.sh on Linux and macOS with Java 17. Read the EULA and accept it in eula.txt before starting the server for play. Global Packs loads the datapack before the world is generated. Connect with the same mod set on the client and grant operator access to the account that will run the workshop commands. World-specific configs go under apocalypse/serverconfig/ inside the server directory, and the editor writes to lostcities-updates/data/ there.

Release the datapack as a Forge JAR​

A Forge low-code mod is an optional way to ship the datapack in mods/ and load its data during world creation. Add your approved parts, palettes, and styles to the datapack before packaging it. Forge low-code mod guide · Lost Cities asset documentation

  1. Make a staging folder called ApocalypseJar. Copy pack.mcmeta, data/, and assets/ directly into it. Keep the existing namespaces and the filter in pack.mcmeta.
  2. Add META-INF/mods.toml inside that folder with the metadata below. Use your own mod ID, version, and license for your release. Use the same mod ID in both dependency table names. The Terralith dependency places the Apocalypse mod’s data above Terralith so the existing filter can take effect.
modLoader="lowcodefml"
loaderVersion="[1,)"
license="All Rights Reserved"

[[mods]]
modId="apocalypse_data"
version="1.0.0"
displayName="Apocalypse Data"

[[dependencies.apocalypse_data]]
modId="minecraft"
mandatory=true
versionRange="[1.20.1]"
ordering="NONE"
side="BOTH"

[[dependencies.apocalypse_data]]
modId="terralith"
mandatory=true
versionRange="[2.5.4,)"
ordering="AFTER"
side="BOTH"
  1. Archive the contents of ApocalypseJar as a ZIP and name it apocalypse-data-1.0.0.jar. Open it to check that META-INF/, data/, assets/, and pack.mcmeta appear at the root. To build the archive with the JDK, run this from the staging folder’s parent.
jar --create --file apocalypse-data-1.0.0.jar -C ApocalypseJar .
  1. Put the JAR in mods/ on the client and server and remove the loose datapacks/Apocalypse/ copy. If you use Global Packs for other packs, remove the datapacks/Apocalypse entry from its resource packs list. Otherwise, omit Global Packs and its config. Ship the remaining config/ and defaultconfigs/ as modpack overrides. Create a fresh Default world and check that /datapack list enabled includes mod:apocalypse_data. Visit a generated city to verify any exported replacement parts. For a public modpack, you can publish the JAR as its own Forge mod and reference it in both exports.

Load datapack files with KubeJS​

KubeJS is optional. The workshop uses Global Packs to load the datapack. Use this alternative if you prefer to load the files through KubeJS in your own modpack.

If your Forge 1.20.1 pack already uses KubeJS, copy the contents of the datapack’s data/ into kubejs/data/. For Lost Cities assets, that puts files under paths such as kubejs/data/lostcities/lostcities/parts/. KubeJS includes these resources when Minecraft loads the world’s registries, so Lost Cities can use them as the first chunks generate. With KubeJS 6.1 or later, put the full Apocalypse datapack ZIP in kubejs/data/ with pack.mcmeta at the archive root to keep the filter. Put the preset translation at kubejs/assets/apocalypse/lang/en_us.json. Test the result in a new world. KubeJS data folder · KubeJS 1.20.1 world-loader integration

Appendix. Instance files​

Each heading gives the path relative to your game directory. For example, create config/ inside the game directory, then save the first file inside it as global_packs.toml. Create any missing folders and keep the exact filenames and extensions as you work through the list.

File config/global_packs.toml​

config_version = 4
enable_system_global_packs = false
log_pack_ids = false

[resourcepacks]
required = ["datapacks/Apocalypse", "global_packs/required_resources/"]
enable_builtin = []

[datapacks]
required = ["datapacks/", "resourcepacks/", "global_packs/required_data/"]
optional = ["global_packs/optional_data/"]
enable_builtin = []

File config/lostcities/common.toml​


#General settings
[profiles]
#A list of dimensions with associated city generation profiles (format <dimensionid>=<profilename>
dimensionsWithProfiles = ["minecraft:overworld=apocalypse", "lostcities:lostcity=biosphere", "lostworlds:abyss=biosphere_caves"]
#If true then a different heightmap generation algorithm is used which should be slightly more efficient. Be careful with this as it might not be 100% compatible with some other terrain generation mods!
optimizedHeightmap = false
#The size of the chunk grid used for heightmap sampling. Default is 1 which means every chunk is sampled. Higher values will sample less chunks and thus be faster but also less accurate
#Range: 1 ~ 100
heightSampleSize = 3

File config/lostcities/profiles/apocalypse.json​

{
"public": true,
"lostcity": {
"landscapeType": "spheres",
"groundLevel": 71,
"spawnSphere": "<in>",
"editMode": false,
"buildingChance": 0.75,
"buildingMaxFloors": 5,
"generateSpawners": false,
"generateLighting": true,
"ruinChance": 0.0,
"rubbleLayer": false,
"vineChance": 0.12,
"randomLeafBlockChance": 0.15,
"railwaysEnabled": false,
"railwayStationsEnabled": false,
"highwayDistanceMask": 0,
"highwayPlanningCellSize": 64,
"highwayHubSampleSpacing": 8,
"highwayMinimumHubDistance": 32,
"highwayMaximumHubDistance": 160,
"highwayMaximumConnectionsPerHub": 3,
"highwayMinimumRouteLength": 24,
"description": "Apocalypse | jungle refuge cities and ruined settlements"
},
"cities": {
"cityChance": 1.0,
"cityMinRadius": 52,
"cityMaxRadius": 69,
"cityMinHeight": -64,
"cityMaxHeight": 319,
"cityThreshold": 0.08
},
"cityspheres": {
"outsideProfile": "apocalypse_ruins",
"citySphereChance": 0.65,
"citySphereClearAbove": 30,
"monorailChance": 0.0,
"outsideSurfaceVariation": 0.5
},
"explosions": {
"explosionChance": 0.0,
"miniExplosionChance": 0.0
},
"client": {
"horizon": 30.0
}
}

File config/lostcities/profiles/apocalypse_ruins.json​

{
"public": false,
"lostcity": {
"landscapeType": "default",
"groundLevel": 71,
"editMode": false,
"avoidWater": true,
"avoidFoliage": true,
"buildingChance": 0.75,
"buildingMaxFloors": 7,
"buildingMaxCellars": 1,
"generateSpawners": false,
"generateLighting": false,
"ruinChance": 1.0,
"ruinMinlevelPercent": 0.2,
"ruinMaxlevelPercent": 0.55,
"rubbleLayer": true,
"rubbleDirtScale": 2.0,
"rubbleLeaveScale": 0.0,
"vineChance": 0.0,
"randomLeafBlockChance": 0.0,
"railwaysEnabled": false,
"railwayStationsEnabled": false,
"highwayDistanceMask": 0,
"description": "Apocalypse | exterior city profile"
},
"cities": {
"cityChance": 0.018,
"cityMinRadius": 36,
"cityMaxRadius": 76,
"cityThreshold": 0.12
},
"explosions": {
"explosionChance": 0.015,
"miniExplosionChance": 0.045
}
}

File config/incontrol/spawn.json​

[
{
"dimension": "minecraft:overworld",
"when": "finalize",
"mob": "minecraft:villager",
"spawntype": "structure",
"result": "deny"
},
{
"dimension": "minecraft:overworld",
"when": "onjoin",
"firstjoin": true,
"mob": [
"minecraft:zombie",
"minecraft:wandering_trader"
],
"result": "deny"
},
{
"dimension": "minecraft:overworld",
"when": "onjoin",
"firstjoin": true,
"mob": "minecraft:husk",
"incontrol": false,
"result": "deny"
},
{
"dimension": "minecraft:overworld",
"when": "onjoin",
"firstjoin": true,
"insphere": true,
"hostile": true,
"result": "deny"
},
{
"dimension": "minecraft:overworld",
"when": "onjoin",
"firstjoin": true,
"insphere": true,
"mod": "rottencreatures",
"result": "deny"
},
{
"dimension": "minecraft:overworld",
"when": "onjoin",
"firstjoin": true,
"insphere": false,
"mob": "#apocalypse:horde",
"result": "default",
"healthmultiply": 2.0,
"damagemultiply": 1.5,
"speedmultiply": 1.2
},
{
"dimension": "minecraft:overworld",
"when": "onjoin",
"firstjoin": true,
"insphere": false,
"mob": [
"rottencreatures:scarab",
"rottencreatures:skeleton_lackey",
"rottencreatures:hunter_wolf"
],
"result": "default"
},
{
"dimension": "minecraft:overworld",
"when": "onjoin",
"firstjoin": true,
"hostile": true,
"result": "deny"
}
]

File config/incontrol/spawner.json​

[
{
"mob": [
"minecraft:zombie_villager",
"minecraft:husk",
"rottencreatures:dead_beard",
"rottencreatures:immortal",
"rottencreatures:zap"
],
"weights": [5,2,1,1,1],
"persecond": 0.07,
"attempts": 90,
"addscoreboardtags": "apocalypse_horde",
"amount": {
"minimum": 1,
"maximum": 1
},
"conditions": {
"dimension": "minecraft:overworld",
"mindist": 20,
"maxdist": 72,
"maxverticaldist": 32,
"maxlocal": 2,
"maxhostile": 85,
"and": {
"biometags": "apocalypse:wasteland",
"seesky": true
},
"norestrictions": true
}
},
{
"mob": [
"rottencreatures:undead_miner",
"rottencreatures:burned",
"rottencreatures:mummy",
"rottencreatures:frostbitten",
"rottencreatures:swampy",
"rottencreatures:glacial_hunter"
],
"weights": [5,4,3,2,2,1],
"persecond": 0.5,
"attempts": 90,
"addscoreboardtags": "apocalypse_horde",
"amount": {
"minimum": 3,
"maximum": 6,
"groupdistance": 8
},
"conditions": {
"dimension": "minecraft:overworld",
"mindist": 20,
"maxdist": 72,
"maxverticaldist": 32,
"maxlocal": 7,
"maxhostile": 85,
"and": {
"biometags": "apocalypse:wasteland",
"seesky": true
},
"norestrictions": true
}
}
]

File config/nosunburn-common.toml​


[General]
#If true, no mob of any kind ever catches fire from sunlight; the lists below are ignored
protectAllMobs = false
#Every mob added by these mod namespaces is immune to sun fire, e.g. "iceandfire"
protectedModNamespaces = ["rottencreatures"]
#Individual mobs immune to sun fire, written as namespace:name, e.g. "minecraft:zombie"
protectedMobIds = ["minecraft:zombie_villager", "minecraft:husk"]

File defaultconfigs/hazardous-server.toml​

[general]
enabledHazardTypes = ["apocalypse:wasteland_air"]
enabledHazardSources = ["apocalypse:wasteland_air"]
respawnHazardImmunityTicks = 0

File datapacks/Apocalypse/pack.mcmeta​

{
"pack": {
"pack_format": 15,
"description": "Apocalypse | jungle refuges and ruined wasteland cities"
},
"filter": {
"block": [
{
"namespace": "minecraft",
"path": "dimension/overworld\\.json"
}
]
}
}

File datapacks/Apocalypse/assets/apocalypse/lang/en_us.json​

{
"generator.apocalypse.wasteland": "Apocalypse"
}

File datapacks/Apocalypse/data/minecraft/worldgen/world_preset/normal.json​

{
"dimensions": {
"minecraft:overworld": {
"type": "minecraft:overworld",
"generator": {
"type": "lostworlds:lostworlds",
"lwsettings": {
"type": "normal",
"fog": "None",
"sea_level": -64,
"noise_sea_level": -64
},
"biome_source": {
"type": "lostworlds:wasted_biomes",
"dimension": "minecraft:overworld",
"adapt_biome_source": {
"type": "minecraft:multi_noise",
"biomes": [
{
"biome": "terralith:gravel_desert",
"parameters": {
"temperature": -0.8,
"humidity": 0.0,
"continentalness": -0.65,
"erosion": [
-1.0,
1.0
],
"weirdness": [
-1.0,
1.0
],
"depth": [
0.0,
1.0
],
"offset": 0.0
}
},
{
"biome": "minecraft:badlands",
"parameters": {
"temperature": -0.35,
"humidity": -0.65,
"continentalness": 0.25,
"erosion": [
-1.0,
1.0
],
"weirdness": [
-1.0,
1.0
],
"depth": [
0.0,
1.0
],
"offset": 0.0
}
},
{
"biome": "terralith:arid_highlands",
"parameters": {
"temperature": -0.3,
"humidity": 0.3,
"continentalness": 0.65,
"erosion": [
-1.0,
1.0
],
"weirdness": [
-1.0,
1.0
],
"depth": [
0.0,
1.0
],
"offset": 0.0
}
},
{
"biome": "minecraft:jungle",
"parameters": {
"temperature": 0.2,
"humidity": -0.65,
"continentalness": -0.35,
"erosion": [
-1.0,
1.0
],
"weirdness": [
-1.0,
1.0
],
"depth": [
0.0,
1.0
],
"offset": 0.0
}
},
{
"biome": "minecraft:bamboo_jungle",
"parameters": {
"temperature": 0.18,
"humidity": 0.45,
"continentalness": 0.2,
"erosion": [
-1.0,
1.0
],
"weirdness": [
-1.0,
1.0
],
"depth": [
0.0,
1.0
],
"offset": 0.0
}
},
{
"biome": "terralith:tropical_jungle",
"parameters": {
"temperature": 0.5,
"humidity": 0.7,
"continentalness": -0.42,
"erosion": [
-1.0,
1.0
],
"weirdness": [
-1.0,
1.0
],
"depth": [
0.0,
1.0
],
"offset": 0.0
}
},
{
"biome": "minecraft:desert",
"parameters": {
"temperature": 0.75,
"humidity": -0.68,
"continentalness": 0.1,
"erosion": [
-1.0,
1.0
],
"weirdness": [
-1.0,
1.0
],
"depth": [
0.0,
1.0
],
"offset": 0.0
}
},
{
"biome": "terralith:desert_canyon",
"parameters": {
"temperature": 0.65,
"humidity": 0.0,
"continentalness": 0.6,
"erosion": [
-1.0,
1.0
],
"weirdness": [
-1.0,
1.0
],
"depth": [
0.0,
1.0
],
"offset": 0.0
}
}
]
},
"default": "minecraft:desert",
"mapping": [
"minecraft:desert=minecraft:desert",
"minecraft:badlands=minecraft:badlands",
"terralith:arid_highlands=terralith:arid_highlands",
"terralith:desert_canyon=terralith:desert_canyon",
"terralith:gravel_desert=terralith:gravel_desert",
"minecraft:jungle=terralith:gravel_desert",
"minecraft:bamboo_jungle=terralith:arid_highlands",
"terralith:tropical_jungle=terralith:desert_canyon"
],
"sphere_default": "minecraft:jungle",
"sphere_mapping": [
"minecraft:bamboo_jungle=minecraft:bamboo_jungle",
"terralith:arid_highlands=minecraft:bamboo_jungle",
"terralith:tropical_jungle=terralith:tropical_jungle",
"terralith:desert_canyon=terralith:tropical_jungle"
]
},
"settings": "minecraft:overworld"
}
},
"minecraft:the_end": {
"type": "minecraft:the_end",
"generator": {
"type": "minecraft:noise",
"biome_source": {
"type": "minecraft:the_end"
},
"settings": "minecraft:end"
}
},
"minecraft:the_nether": {
"type": "minecraft:the_nether",
"generator": {
"type": "minecraft:noise",
"biome_source": {
"type": "minecraft:multi_noise",
"preset": "minecraft:nether"
},
"settings": "minecraft:nether"
}
}
}
}

File datapacks/Apocalypse/data/apocalypse/worldgen/world_preset/wasteland.json​

Copy the entire contents of the default preset (normal.json) into this file. This makes the same world available under the Apocalypse name.

File datapacks/Apocalypse/data/minecraft/tags/worldgen/world_preset/normal.json​

{
"replace": false,
"values": [
"apocalypse:wasteland"
]
}

File datapacks/Apocalypse/data/minecraft/tags/worldgen/world_preset/extended.json​

{
"replace": false,
"values": [
"apocalypse:wasteland"
]
}

File datapacks/Apocalypse/data/apocalypse/tags/worldgen/biome/wasteland.json​

{
"replace": false,
"values": [
"minecraft:desert",
"minecraft:badlands",
"terralith:arid_highlands",
"terralith:desert_canyon",
"terralith:gravel_desert"
]
}

File datapacks/Apocalypse/data/apocalypse/tags/entity_types/horde.json​

{
"replace": false,
"values": [
"minecraft:husk",
"minecraft:zombie_villager",
"rottencreatures:burned",
"rottencreatures:dead_beard",
"rottencreatures:frostbitten",
"rottencreatures:glacial_hunter",
"rottencreatures:immortal",
"rottencreatures:mummy",
"rottencreatures:swampy",
"rottencreatures:undead_miner",
"rottencreatures:zap",
"rottencreatures:zombie_lackey"
]
}

File datapacks/Apocalypse/data/minecraft/tags/functions/load.json​

{
"replace": false,
"values": ["apocalypse:setup"]
}

File datapacks/Apocalypse/data/apocalypse/functions/setup.mcfunction​

# Keep first joins and respawns at Lost Cities' selected refuge spawn.
gamerule spawnRadius 0

File datapacks/Apocalypse/data/apocalypse/hazardous/hazardsources/wasteland_air.json​

{
"hazardType": "apocalypse:wasteland_air",
"association": {
"type": "biome",
"biome": {
"if_any": [
"#apocalypse:wasteland"
]
}
},
"falloff": {
"type": "none"
},
"transmission": {
"type": "sky",
"baseIntensity": 1.0,
"requiresDirectSky": false,
"rainMultiplier": 1.0,
"thunderMultiplier": 1.0,
"nightMultiplier": 1.0,
"indoorLeak": 1.0
}
}

File datapacks/Apocalypse/data/apocalypse/hazardous/hazardtypes/wasteland_air.json​

{
"blocking": {
"type": "none"
},
"exposure": {
"accumulate": false,
"applyIntervalTicks": 20,
"decayPerTick": 0.0,
"exponential": false,
"maximum": 1.0
},
"effects": [
"apocalypse:wasteland_hunger"
]
}

File datapacks/Apocalypse/data/apocalypse/hazardous/effectentries/wasteland_hunger.json​

{
"trigger": {
"type": "threshold",
"min": 0.1
},
"action": {
"type": "potion",
"effect": "minecraft:hunger",
"durationTicks": 100,
"amplifier": 1,
"showParticles": false
}
}