promotional bannermobile promotional banner

Botz Mob Leveling

Configurable mob leveling for Forge 1.20.1. Mobs scale by distance from spawn, structures, and datapack rules.
Back to Files

botzmobleveling-1.0.7.jar

File namebotzmobleveling-1.0.7.jar
Uploader
DepthDrakoDepthDrako
Uploaded
Jun 29, 2026
Downloads
162
Size
184.9 KB
Mod Loaders
Forge
File ID
8338286
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:botz-mob-leveling-1454441:8338286")

Learn more aboutย Curse Maven

What's new

๐Ÿฎ BotzMobLeveling 1.0.7 โ€” Read the Level (API & Commands)

A small, additive update aimed at pack devs and tinkerers: the mod can now tell you the area level โ€” the level a mob would spawn at for your position โ€” even when no mobs are around. This is the hook you need for a custom HUD, loot scripts, or level-gated content.


โœจ New: Read levels from datapacks, KubeJS, or other mods

  • New commands: /botzmobleveling arealevel [pos] and /botzmobleveling moblevel <entity>.
  • Silent by default โ€” they return the value but print nothing, so a datapack can poll them every tick with no chat spam. Add print on the end to echo the value to chat.
  • Each command returns its value as the command result, so datapacks can capture it with execute store result score ....
  • Public Java API for KubeJS / mod authors: com.botzlabz.mobleveling.api.BotzMobLevelingAPI โ€” getAreaLevel(level, pos), getMobLevel(mob), getMobBaseLevel(mob), getMobKillLevel(mob).

๐Ÿงฉ Reading a mob's level

A mob's level lives in its NBT: botzmobleveling_Level (spawn level) + botzmobleveling_KillLevel (kill levels) = total.

// KubeJS
const BML = Java.loadClass('com.botzlabz.mobleveling.api.BotzMobLevelingAPI')
let area = BML.getAreaLevel(player.level, player.blockPosition())

๐Ÿ“– Examples

Full datapack HUD and KubeJS examples are on the wiki: Reading Levels (API & Commands) โ€” github.com/DepthDrako/BotzMobLeveling/wiki/Reading-Levels-API

Note: this is purely additive โ€” it doesn't change balance on its own unless a pack wires the readouts into a HUD, loot script, or quest gate. arealevel reflects base distance scaling, so set defaultMinLevel / defaultMaxLevel to match your base rule for an accurate HUD.


๐Ÿ” Recently, in 1.0.6

  • Boss level field actually applies now; boss bars survive reloads; particle_effect implemented.
  • Per-mob level_bonus stacks on top of distance scaling; global level cap and mob filters are respected by adaptive difficulty.
  • Ranged mobs earn kill XP; cap-exempt mobs keep their stats after reload; guide book no longer duplicates on death.
  • Optional level-based loot scaling ([lootScaling]) and percentage-based example scaling for high-HP modded bosses.

Requires: Minecraft 1.20.1 ยท Forge 47+

This mod has no additional files