promotional bannermobile promotional banner

Variable Spawner Hardness

Make Minecraft spawners harder to break depending on your difficulty.
Back to Files

1.21.10-1.4.6-forge

File nameVariableSpawnerHardness-1.21.10-1.4.6-forge.jar
Uploader
Paint_NinjaPaint_Ninja
Uploaded
Oct 27, 2025
Downloads
199
Size
5.7 KB
Mod Loaders
Forge
File ID
7156081
Type
R
Release
Supported game versions
  • 1.21.10

Curse Maven Snippet

Forge

implementation "curse.maven:variable-spawner-hardness-400396:7156081"

Learn more about Curse Maven

What's new

Ported to 1.21.10, performance improvements.

  • Using a switch that returns constant values is faster than indexing on mutable array contents (the array itself was static final, but there's currently no public API way of telling the JVM that the array contents won't change - JDK internals have `@Stable` but can't use it in this mod)
  • Grab level data once to reduce the number of untrusted final field reads (level#getDifficulty calls level#getLevelData)

This mod has no additional files