The Best Resource for Minecraft
The Best Resource for Minecraft

Just Another Spawner Mod Wiki

Just Another Spawner (JAS) is a powerful, parallel entity spawning system for Minecraft that provides exhaustive control over mob spawn rates, locations, and conditions through a robust tag-based configuration system.

7 sections · 811 words

Overview#

Just Another Spawner (JAS) is a Minecraft Mod aimed at providing an alternative entity spawning system that offers greater control, flexibility, and possibilities than the vanilla system. It runs in parallel with the vanilla system, meaning it can either replace vanilla spawning entirely or work alongside it.

By default, JAS imports settings from all declared entities in Minecraft, including those added by other mods (such as Mo' Creatures, Lycanites Mobs, or Project Zulu). It then allows users to manipulate nearly every property involved in the spawning process, from biome-specific weights to complex environmental logic using a custom tag system.

Core Mechanics#

JAS functions by assigning a LivingHandler to every entity type. This handler determines the creature's category, whether it should use default mod location checks, and if it should be forced to despawn.

Parallel Spawning

JAS does not technically "remove" the vanilla spawner; instead, it disables it by emptying the vanilla biome spawn lists. This allows JAS to take full control of the spawning cycle. Because it is independent, it can handle mob caps and spawn rates more efficiently than the default system, preventing "spawn-gasms" where hundreds of mobs appear at once.

The Spawning Cycle

  1. Import: On first run, JAS scans all loaded mods for entities.
  2. Categorization: Entities are assigned to categories (MONSTER, CREATURE, etc.).
  3. Location Check: JAS checks the SpawnListEntries to see if the entity is allowed in the current biome.
  4. Logic Evaluation: JAS evaluates any Tags (e.g., light levels, block types) assigned to the entity.
  5. Execution: If all conditions are met, the entity is spawned.

Configuration Structure#

The mod's configuration is highly modular, located in the config/JustAnotherSpawner/ directory. It is divided into a Master directory (templates) and WorldSettings (world-specific overrides).

File / Folder Description
BiomeGroups.cfg Groups biomes into categories like FOREST or DESERT for easier mass-editing.
EntityHandlers.cfg Defines global behavior for specific mobs (e.g., if a Creeper should despawn).
SpawnListEntries.cfg The main file for setting which mobs spawn in which biomes, including weights and pack sizes.
StructureSpawns.cfg Controls spawning within specific structures like Nether Fortresses or Witch Huts.
CreatureType.cfg Defines the global caps and spawn rates for categories (MONSTER, AMBIENT, etc.).

Tags and Logic System#

The heart of JAS is its tag system, which allows for complex boolean and numeric logic. Tags are used in the Spawn Tag and Despawn Tag fields of the configuration files.

Boolean Tags

These tags return true or false to allow or block a spawn.

  • spawn: The primary tag for allowing a spawn.
  • despawn: Controls if an entity should be removed when far from players.
  • !: The NOT operator (e.g., !solidside means the block must not have a solid side).

Property Tags (v0.14.0+)

These tags check environmental variables at the spawn location.

Tag Description Example
light(min,max) Checks the light level at the feet. light(0,7)
sky Returns true if the block can see the sky. sky
height(min,max) Checks the Y-coordinate. height(0,64)
difficulty(id) Checks the world difficulty (0=Peaceful, 3=Hard). difficulty(2,3)
dimension(id) Restricts spawning to specific dimension IDs. dimension(-1)
liquid Returns true if the spawn block is a liquid. liquid
solidside(dir) Checks if the side of a block is solid. solidside(1)
opaque Checks if the block is opaque. opaque
random(chance) Adds a random percentage chance to the spawn. random(50)
block(id, meta) Checks for a specific block at the spawn location. block('minecraft:grass', 0)

Entity Categories#

Entities are grouped into categories that share a common spawn cap and tick rate. By default, JAS creates the following:

  • MONSTER: Hostile mobs that spawn in the dark (Cap: 70).
  • CREATURE: Passive animals like cows and sheep (Cap: 10).
  • AMBIENT: Small decorative mobs like bats (Cap: 15).
  • WATERCREATURE: Aquatic mobs like squid (Cap: 5).
  • NONE: Entities in this category are ignored by the JAS spawner.

Users can create custom categories in CreatureType.cfg to separate specific mod mobs (e.g., a BOSS category with a cap of 1).

Structure Spawning#

JAS provides native support for vanilla and modded structures. This allows you to define unique spawns that only occur within the bounding box of a structure, regardless of the biome.

Supported vanilla structures include:

  • WitchHut: Spawns Witches.
  • NetherBridge: Spawns Blazes, Wither Skeletons, and Magma Cubes.
  • Mineshaft: Can be configured for Cave Spiders.
  • Stronghold: Can be configured for Silverfish or custom guards.

Structure spawns are defined in StructureSpawns.cfg using the format S:StructureName=EntityName-Weight-MinPack-MaxPack.

Commands#

JAS includes several administrative commands to help debug and manage spawns in real-time.

Command Description
/jas countentities [type] Displays the current number of loaded entities, optionally filtered by category.
/jas canspawn [entity] Checks if the specified entity is eligible to spawn at your current coordinates.
/jas killall [type] Removes all entities of the specified category from the world.
/jas locate [entity] Provides the coordinates of the nearest entity of that type.
/jas load Reloads all configuration files from the disk without restarting the game.
/jas save Saves the current in-memory configuration to the disk.