作者:rebot | 分类:模组
Minecraft 版本: 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6
平台: forge
标签: game-mechanics management utility
A Minecraft Forge mod designed for server administrators to flexibly manage and restrict in-game items, supporting both soft bans and hard bans to maintain server balance and gameplay rules.
BanItems provides targeted item control with user-friendly management tools, ensuring server rules are enforced without disrupting player experience:
All commands require the banitems.admin permission (granted to server operators by default). Use /banitem help in-game for a quick reference:
| Command | Description |
|---|---|
/banitem soft |
Open GUI to add an item to the soft ban list |
/banitem hard |
Open GUI to add an item to the hard ban list |
/banitem list soft [page] |
View all soft-banned items (supports pagination, e.g., /banitem list soft 2) |
/banitem list hard [page] |
View all hard-banned items (supports pagination) |
/banitem reload |
Reload the configuration file (applies changes without restarting the server) |
/banitem help |
Show all available commands and usage instructions |
BanItems is a Forge mod—ensure your server/client uses a compatible Minecraft Forge version (check the Releases page for version details):
mods/ directory..minecraft/mods/ directory.BanItems uses a human-readable JSON config file to store ban rules, making manual edits easy if needed:
config/banitems/banitems.jsonThe file includes three key sections (auto-generated on first launch):
{
"softBannedItems": [], // Items with restricted functionality (e.g., ["minecraft:ender_pearl"])
"hardBannedItems": [], // Items blocked from use/ownership (e.g., ["minecraft:creative_only_item"])
"excluded": [] // Item IDs exempt from being replaced in banned item boxes (e.g., ["minecraft:wooden_chest"])
}
/banitem reload to take effect.BanItems follows Minecraft Forge best practices, with code structure inspired by community standards and references from itembarriers
git clone https://github.com/YuWan-030/BanItems.git
cd BanItems
gradlew.bat build./gradlew buildbuild/libs/ (look for the file without -sources or -dev suffix).feature/add-whitelist).BanItems is licensed under the MIT License—see the LICENSE file for full terms. You are free to:
For issues, feature requests, or support, please open an issue on GitHub!
请登录后举报
暂无评论,抢个沙发吧~