Mob Dice Attributes
Every mob. Every spawn. A fresh roll.
Mob Dice Attributes replaces Minecraft's fixed mob stats with tabletop RPG dice rolls. A zombie isn't always 20 HP — it might roll 13 or 27. A skeleton might track you from twice its normal range, or barely notice you across the room. Every encounter is different.
Balance is preserved by design. The dice formula is constructed so the average rolled value always equals the vanilla value. Mobs aren't globally buffed or nerfed — they vary.
⚔️ Core Features
🎲 Dice Rolling for All Mob Attributes
Eight attributes are rolled on spawn using the xdn + b formula:
- Max Health, Movement Speed, Attack Damage, Knockback
- Armor, Armor Toughness, Attack Speed, Follow Range
Die type is auto-selected per mob based on its vanilla value (low-HP mobs use d6, bosses use d20). Everything is configurable per attribute.
🏅 Rarity Tiers
Every mob spawn draws from a weighted rarity pool — like an RPG loot table, but for mobs.
| Tier | Default chance | Effect |
|---|---|---|
| Common | 60% | Baseline rolls |
| Uncommon | 25% | Slightly above average |
| Rare | 10% | Blue name, 2× XP, bonus loot |
| Legendary | 5% | Purple name, 5× XP, 3× bonus loot, all stats boosted |
Tier weights and profiles are fully customizable via datapack.
⭐ Elite Mobs
Mobs that roll significantly above their average HP are automatically tagged as Elite — given a custom name and (optionally) a visible name tag. Threshold and prefix are configurable.
💰 Loot & XP Scaling
Above-average mobs drop more. Configure the XP multiplier and bonus loot rolls globally, or set them per rarity tier profile. Rare mobs are worth hunting.
🪝 Spawn Hooks
Map specific spawn contexts to profiles. Always give raid mobs a legendary profile. Force spawner mobs to be rare. Or leave it to the rarity draw. Your call.
Valid contexts: natural, spawner, chunk_generation, structure, breeding,
mob_summoned, jockey, event, conversion, reinforcement, triggered,
bucket, spawn_egg, command, patrol
🗂️ Datapack Customization
Everything is driven by datapacks under data/mobdiceattribs/:
| Folder | Purpose |
|---|---|
spawn_profiles/ |
Named stat bundles (name, color, XP, loot, dice overrides) |
rarity_tiers/ |
Weighted pool of profiles drawn on every spawn |
spawn_hooks/ |
Context → profile mappings |
mob_overrides/ |
Per-mob or per-tag dice overrides |
dimension_rules/ |
Enable/disable rolling or scale stats per dimension |
difficulty_rules/ |
Scale stats per world difficulty |
All reloaded live with /reload — no restart required.
🖥️ Commands
| Command | Description |
|---|---|
/mda reroll <targets> |
Force-reroll matched entities (op level 2) |
/mda inspect <target> |
Print current stats, HP ratio, and assigned profile |
⚙️ Configuration
A full server.toml config controls every attribute independently:
- Enable/disable per attribute
- Auto dice selection or manual die type
- Range factor (how swingy the rolls are)
- Mob whitelist / blacklist
- Distance-from-spawn health scaling (disabled by default)
- Elite mob threshold, prefix, and name tag visibility
🔌 Compatibility
- Server-side only — clients do not need the mod installed
- Jade / The One Probe — custom names are visible on hover
- Reloads on
/reload— fully compatible with datapack managers
📖 Documentation
| Page | Link |
|---|---|
| Home | Wiki |
| Dice Formula | How xdn+b works |
| Spawn Profiles | Profile format & fields |
| Rarity Tiers | Weighted pool setup |
| Spawn Hooks | Context-based profiles |
| Mob Overrides | Per-mob dice overrides |
| Dimension Rules | Scale by dimension |
| Difficulty Rules | Scale by difficulty |
| Configuration | Full config reference |
| Commands | /mda reroll & inspect |
📦 Source & Issues
How to Install Mob Dice Attributes (Mod)
Mob Dice Attributes by gottsch is verified for Forge, Neoforge across Minecraft versions 1.18.2, 1.19.2, 1.19.3, 1.20.1, 1.21.1 (latest release: 2.0.0, file size: 91 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.18.2, 1.19.2, 1.19.3, 1.20.1, 1.21.1) and platform (Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Forge, Neoforge.
- Move the downloaded Mob Dice Attributes file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add VersionAll notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.0.0] - 2026-04-25
### ➕ Added
- Improved Dice Algorithm:**
- Die count (
x) is now computed from the mob's vanilla attribute value andrangeFactor, then the bonus (b) absorbs the rounding error so the rolled average is always exactly equal to the vanilla value — no more systematic buff/nerf from rounding drift - Formula:
xdn + bwhereb = target − x · dieAvg
- Auto Dice Type Selection:**
- New
autoDiceconfig option (defaulttrue) per attribute section — picks the most "natural-feeling" die for each mob automatically based on its vanilla attribute value - Health curve: d4 (≤6 HP) → d6 (≤15) → d8 (≤30) → d10 (≤60) → d12 (≤120) → d20
- Speed curve: d4 (≤0.15) → d6 (≤0.25) → d8 (≤0.35) → d10
- Damage curve: d4 (≤2) → d6 (≤5) → d8 (≤10) → d10 (≤20) → d12
- Knockback curve: d4 (≤0.5) → d6 (≤1.0) → d8 (≤2.0) → d10
- Set
autoDice = falseto revert to the globaldiceTypefallback
- Per-mob Datapack Overrides:**
- Override dice / rangeFactor / bonus per mob ID or entity tag via datapack JSON files under
data/<namespace>/mob_overrides/ - Partial overrides supported — omit any field to fall through to the auto-pick or global config value
- Tag support via
#prefix (e.g.#minecraft:raiders) - Reloads on
/reloadwith no restart required - Example file shipped in jar:
data/mobdiceattribs/mob_overrides/example.json - Resolution order: datapack override → auto-pick → config diceType fallback
- Dimension Filter:**
- Rolling can be disabled or scaled per dimension via datapack JSON files under
data/<namespace>/dimension_rules/ enablefield (optional, defaulttrue) — set tofalseto suppress all rolling in that dimensionmultiplierfield (optional, default1.0) — scales every attribute target before dice are rolled- Example file shipped in jar:
data/mobdiceattribs/dimension_rules/example.json - Reloads on
/reload
- Difficulty Scaling:**
- Rolling can be disabled or scaled per world difficulty via datapack JSON files under
data/<namespace>/difficulty_rules/ - Targets:
"peaceful","easy","normal","hard"(lowercase) - Multipliers stack multiplicatively with any active dimension rule multiplier
- Example file shipped in jar:
data/mobdiceattribs/difficulty_rules/example.json - Reloads on
/reload
- Distance-from-Spawn Health Scaling:**
- Scales mob max health based on horizontal distance from world spawn (health only)
- Controlled via
[distanceScaling]config section — **disabled by default** - Config fields:
enable(defaultfalse),blocksPerTier(default1000),multiplierPerTier(default0.1),cap(default3.0) - Detailed conf
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.0] - 2026-04-23
### ⚙️ Changed
- Platform port: Forge 1.20.1 → NeoForge 1.21.1**
- Build system migrated to
net.neoforged.moddev(Gradle plugin) @Modclass now uses constructor injection ofIEventBusandModContainerMod.EventBusSubscriberreplaced with@EventBusSubscriber(bus = Bus.GAME)ForgeConfigSpecreplaced withModConfigSpecthroughoutResourceLocation.fromNamespaceAndPath()API adopted- Attributes API updated:
Attributes.XreturnsHolder<Attribute>;.value()used to reachRangedAttribute - GottschCore package updated:
mod.gottsch.forge.gottschcore.*→mod.gottsch.neo.gottschcore.* - GottschCore artifact updated:
gottschcore→gottschcore-neoforge neoforge.mods.tomlmoved tosrc/main/templates/META-INF/withgenerateModMetadatatask for property substitution- Mod config registered directly via
modContainer.registerConfig()— removed prematureModConfigEventvalidation listener that caused "Cannot get config value before config is loaded" crash isValidEntity()simplified toentity instanceof Monster(Enemy interface removed in 1.21)- Gradle wrapper pinned to 8.12.1 for compatibility with moddev 2.0.78
- All dependencies declared
side = "SERVER"— mod is server-only and clients can connect without it installed