-
Notifications
You must be signed in to change notification settings - Fork 1
Examples
U_Love edited this page Jul 25, 2026
·
1 revision
This page collects ready-to-use data packs and KubeJS scripts that demonstrate the extension features documented in this wiki.
All data pack examples are located under src/main/resources/examples/datapack/data/adaptive_nemesis/.
| File | Description |
|---|---|
invasions/undead_invasion.json |
6-wave undead invasion with progressively harder waves and dungeon/shipwreck rewards |
invasions/nether_invasion.json |
5-wave Nether invasion ending with a Wither boss and Nether fortress/bastion rewards |
| File | Description |
|---|---|
world_stages/stage_2.json |
Stage 2 configuration with 2.0x multiplier and higher caps |
world_stages/stage_3.json |
Stage 3 configuration with 3.0x multiplier and increased invasion wave count |
| File | Description |
|---|---|
nemesis/custom_nemesis.json |
Custom nemesis formula with higher resistance/bonus caps and faster leveling |
- Copy the desired folder(s) into your own data pack under
data/<your_namespace>/. - Adjust values to match your modpack balance.
- Run
/reloadin-game. - Trigger an invasion with
/an invasion trigger adaptive_nemesis:undead_invasion.
All script examples are located under kubejs_example/server_scripts/adaptive_nemesis/.
| File | Covered Events / Features |
|---|---|
entity_scaling.js |
entity_scale, player_strength_evaluation, damage_calculation, nemesis_memory_update
|
custom_difficulty.js |
Custom global difficulty system with /an_difficulty command |
world_stage_change.js |
world_stage_change event: broadcasts, multiplier tweaks, stage rewards |
invasion_events.js |
invasion_start, invasion_wave_start, invasion_end event chain |
advanced_helpers.js |
Calling KubeJSInitializer helpers via Java.loadClass
|
- Copy the desired
.jsfiles into your modpack'skubejs/server_scripts/directory. - Restart the server or run
/kubejs reload. - Check the server console for the "loaded" log message.
Create data/adaptive_nemesis/invasions/my_invasion.json:
{
"max_waves": 3,
"spawn_distance": 50,
"rewards": {
"experience": 100
},
"waves": [
{
"wave": 1,
"difficulty_multiplier": 1.0,
"enemies": [
{"entity_type": "minecraft:zombie", "count": 3, "weight": 1}
]
}
]
}Trigger it with:
/an invasion trigger adaptive_nemesis:my_invasion
Create kubejs/server_scripts/my_adaptive_script.js:
adaptive_nemesis.entity_scale(event => {
if (event.entityId.includes("zombie")) {
event.multiplyMultiplier(1.5);
}
});Run /kubejs reload. All zombies will now receive an extra 50% scaling.