Title: Anti-Silverfish-Farm | Fully Configurable Infested Effect Control [1.21+]
Overview
Are you concerned about the new
Infested effect from Minecraft 1.21 being used for easy, overpowered XP and item farms?
Anti-Silverfish-Farm is the simple, lightweight, and highly effective solution you need.
This plugin gives you complete control, allowing you to disable silverfish spawns from specific mobs affected by the Infested status effect, all through a simple configuration file. It
does not block damage, allowing for normal gameplay while surgically removing the farm exploit.
How It Works
Instead of crudely blocking all damage to infested mobs, this plugin intelligently monitors for new entity spawns.
- When a Silverfish attempts to spawn...
- The plugin checks if there is a nearby entity that has the Infested effect.
- If that nearby entity's type is listed in your config file...
- The Silverfish spawn is cancelled.
The result? Players can still damage and kill mobs, but the exploitable farm mechanic is completely neutralized. ✅
Features ⚙️
- Fully Configurable: You decide which entities are protected! Add any mob type to the blocked-entities list in the config.
- Extremely Lightweight: The plugin only acts during the EntitySpawnEvent for Silverfish, meaning it has virtually zero impact on your server's performance.
- Does Not Block Damage: Mobs can still be damaged and killed by players and the environment, preserving vanilla gameplay.
- Reload Command: Instantly apply your config changes with a simple command. No restart required!
- Permissions Ready: Control who can reload the plugin.
Configuration
The config.yml is designed to be simple and easy to understand.
YAML
# Anti-Silverfish-Farm Configuration
# List of entities that will be blocked from spawning silverfish when they have the 'Infested' effect.
# You must use the official Bukkit EntityType names in UPPERCASE.
# Find all names here:
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html
blocked-entities:
- "ALLAY"
- "ARMADILLO"
# - "IRON_GOLEM" # Example: Uncomment to block Iron Golems
# - "VILLAGER" # Example: Uncomment to block Villagers
messages:
reload-success: "&aAnti-Silverfish-Farm configuration has been reloaded!"
no-permission: "&cYou do not have permission to use this command."
Commands & Permissions
- /asfreload - Reloads the configuration file.
- Permission: antisf.reload
- Default: OP
Installation
- Stop your server.
- Place the Anti-Silverfish-Farm.jar file into your /plugins folder.
- Start your server.
- Modify the config.yml to your liking and run /asfreload. Done!
Protect your server's economy and gameplay balance. Download Anti-Silverfish-Farm today!