XySmallTool
Lightweight Fabric mod to control mob spawns, explosion griefing, enderman behavior, farmland trampling, and wither skull lifetime via an easy-to-edit YAML config.
介绍
✨ 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.
常见问题
XySmallTool 支持哪些 Minecraft 版本?
XySmallTool 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
XySmallTool 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分