跳到正文

disable items

作者:venomizedthor

disable items from being placed and picked up in the players inventory as well as disabling trades and crafting recipes

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

DisableMod lets pack makers and server owners block specific items by item ID (for example minecraft:elytra) and manage the list in-game with simple admin commands. It’s designed for modpacks where you want to remove overpowered or undesired items without editing recipes or removing mods.

Features

Disable items by exact item ID (vanilla and modded IDs supported). Optional refund rules allow you to replace a disabled item with something else. Admin commands include tab-completion to quickly find item IDs and already-disabled IDs. The config is stored at config/disablemod.json.

Commands

All commands are intended for operators/admins. The base command is /disablemod.

Item disabling

/disablemod list shows all currently disabled item IDs.

/disablemod disable <item_id> adds an item to the disabled list. Example: /disablemod disable minecraft:elytra

/disablemod enable <item_id> removes an item from the disabled list. Example: /disablemod enable minecraft:elytra

/disablemod disablehand disables the item you’re currently holding in your main hand (only if included in your build).

/disablemod enablehand re-enables the item you’re currently holding in your main hand (only if included in your build).

Refund rules (optional)

/disablemod refund list lists all refund rules currently configured.

/disablemod refund set <disabled_item_id> <refund_item_id> [count] sets or overwrites a refund rule. Example: /disablemod refund set minecraft:elytra minecraft:diamond 5

/disablemod refund remove <disabled_item_id> deletes the refund rule for that disabled item.

Config management

/disablemod reload reloads config/disablemod.json without restarting the game/server.

Notes

Item IDs must be typed exactly like namespace:item_name (example: minecraft:acacia_sapling). If you use refunds, ensure disablemod.json matches the mod’s expected format, because an incorrect JSON structure can cause the mod to fall back to defaults.

 

常见问题

disable items 支持哪些 Minecraft 版本?

disable items 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

disable items 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分