Spawn Table Tweaker Mod extends CraftTweaker with simple tools to change Minecraft spawn tables. It lets you add mobs or remove them from vanilla spawn tables right inside your CraftTweaker scripts using 5 script methods. This mod works with both vanilla and modded NPCs, such as Techguns NPCs, so they can spawn like regular mobs alongside other spawn-changing mods. It only needs CraftTweaker and Forge to run.

Features:

  • Lets you call EnityRegistry.addSpawn(entClass, weight, min, max, type, biomes); directly from CraftTweaker scripts to add new mob spawns.
  • Supports adding spawns by name, tag whitelist, or tag blacklist using CraftTweaker script methods.
  • Removes unwanted mobs and NPCs from vanilla spawn tables, either for specific names or without a name list.
  • Works with all vanilla and modded NPCs, letting modded ones like Techguns NPCs act as regular spawns with other spawn-changing mods.
  • Keeps the normal behavior of any NPC added to a spawn table, though NPCs with special limits might not work properly.

Configuration:

You can call 5 methods from your CraftTweaker scripts:

  • addSpawn(registryName, weight, min, max, creatureType, names): Adds a spawn using specific names.
  • addSpawnTagsWhitelist(registryName, weight, min, max, creatureType, names): Adds a spawn using a tag whitelist.
  • addSpawnTagsBlacklist(registryName, weight, min, max, creatureType, names): Adds a spawn using a tag blacklist.
  • removeSpawn(registryName, creatureType, names): Removes a spawn for specific names.
  • removeSpawn(registryName, creatureType): Removes a spawn without a name list.

Here is the code defining all 5 methods:

	@ZenMethod
	public static void addSpawn(String registryName, int weight, int min, int max, String creatureType, String[] names) {
		CraftTweakerAPI.apply(new addSpawnAction(registryName, weight, min, max, creatureType, names, MODE.NAMES));
	}
	
	@ZenMethod
	public static void addSpawnTagsWhitelist(String registryName, int weight, int min, int max, String creatureType, String[] names) {
		CraftTweakerAPI.apply(new addSpawnAction(registryName, weight, min, max, creatureType, names, MODE.TAG_WHITELIST));
	}
	
	@ZenMethod
	public static void addSpawnTagsBlacklist(String registryName, int weight, int min, int max, String creatureType, String[] names) {
		CraftTweakerAPI.apply(new addSpawnAction(registryName, weight, min, max, creatureType, names, MODE.TAG_BLACKLIST));
	}
	
	@ZenMethod
	public static void removeSpawn(String registryName, String creatureType, String[] names) {
		CraftTweakerAPI.apply(new removeSpawnAction(registryName, creatureType, names));
	}
	
	@ZenMethod
	public static void removeSpawn(String registryName, String creatureType) {
		CraftTweakerAPI.apply(new removeSpawnAction(registryName, creatureType));
	}

Spawn Table Tweaker Mod Download Links

For Minecraft 1.12.2

Forge version: Download from Server 1 – Download from Server 2

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

What is your biggest frustration when playing with mods?

22 responses · See the full results →