Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
✨ Features Mob Spawn Control
Bat spawns (on/off)
Glow squid spawns (on/off)
Phantom spawns (on/off)
Explosion Griefing Control
TNT explosions – choose whether they destroy blocks
Creeper explosions – choose whether they destroy blocks
Block Interaction Control
Enderman block picking – prevent endermen from stealing blocks
Farmland trampling – protect farmland from being trampled by entities
Wither Skull Customization
Enable/disable custom wither skull lifetime
Set the skull’s lifetime in ticks (20 ticks = 1 second)
All features are toggleable via a single YAML configuration file. No need to edit code or use complex commands.
📦 Installation Minecraft Version: 1.21.1
Mod Loader: Fabric Loader 0.15.0 or newer
Required Mod: Fabric API (for commands and events)
Simply drop the mod .jar file into your mods folder along with Fabric API.
🔧 Configuration The configuration file is located at config/xysmalltool/xysmalltool.yaml. If the file does not exist, the mod will generate a default one with helpful comments on first run.
Example Configuration
yaml
XySmallTool Configuration
enableBatSpawn: true enableGlowSquidSpawn: true enablePhantomSpawn: true allowTntGriefing: true allowCreeperGriefing: true allowEndermanPickUpBlocks: true controlWitherSkullLife: false witherSkullLifeTicks: 50 allowFarmlandTrample: true How to Apply Changes
Restart the game/server – the mod reads the config at startup.
Use the in-game reload command (requires OP level 4): /xytool reload
A success message will be broadcast to all operators.
⌨️ Commands
Command Permission Description /xytool reload OP level 4 Reloads the configuration file and applies changes immediately ❓ FAQ Q: Do I need the mod on both client and server? A: Most functionality (spawn control, griefing prevention, etc.) works with the mod installed only on the server. However, command feedback texts may appear untranslated on clients without the mod. For the best experience, install it on both sides.
Q: I changed the config but nothing happened. A: Check that your YAML file has the correct syntax (indentation matters). You can also run /xytool reload and check the server log for errors.
Q: How do I restore the default config? A: Simply delete the config/xysmalltool/xysmalltool.yaml file and restart the game/server – a fresh copy with defaults will be generated.
📜 License This mod is open-source under the MIT License. You are free to use, modify, and distribute it.


