RSItemEditor
直接在聊天栏中编辑你手中的物品。RSItemEditor 是一个服务端 NeoForge 模组,旨在为现代 Minecraft 重现流行的 ItemEdit Spigot 插件中的命令功能——重命名物品、重写描述、添加附魔与属性、调整数十种数据组件,并将物品存入仓库以备后用。
- Minecraft: 1.21.1
- 加载器: NeoForge (21.1+),Kotlin for Forge
- 端侧: 仅服务端(适用于专用服务器或单人游戏)。客户端无需安装此模组——所有操作均通过原版风格的命令执行。
功能特性
/itemedit (/ie) — 30 多个子命令,用于编辑手持物品:名称、描述、数量、耐久度、附魔、不可破坏性、稀有度、自定义模型数据、染色颜色、盔甲纹饰、药水效果、旗帜、烟花、书籍等。
/itemstorage (/is) — 个人私有仓库。将手中的物品以指定名称保存,并在需要时取出全新的一份。
/serveritem (/si) — 共享物品库,管理员可在此整理并向玩家发放物品。
- 每个命令对应独立的权限节点,因此权限管理插件(如 LuckPerms、FTB Ranks 等)可以逐个命令地授予访问权限。
- 支持全文本输入处的
& 颜色代码,以及所见即所得(非斜体)的名称和描述。
- 带提示的 Tab 补全 — 提供描述行预览、命名颜色、在线玩家、已存储物品 ID 以及当前堆叠数量/耐久度值。
- 多语言本地化:支持英语、俄语、德语、法语、西班牙语、中文和巴西葡萄牙语。
安装方法
- 为 Minecraft 1.21.1 安装 NeoForge
21.1.x。
- 安装 Kotlin for Forge。
- 将
rsitemeditor-x.y.z.jar 放入服务器(或实例)的 mods 文件夹中。
命令说明
手持物品后运行任意子命令。以下是一些亮点:
| 命令 |
功能 |
/ie rename <text> |
设置显示名称(支持 & 颜色代码,留空则清除)。 |
/ie lore add|set|insert|remove|clear |
管理描述行。 |
/ie enchant <enchant> <level> |
添加、修改或删除附魔。 |
/ie unbreakable [true|false] |
切换不可破坏标志。 |
/ie amount <n> / /ie damage <n> |
设置堆叠数量 / 耐久度。 |
/ie rarity <rarity> / /ie glow |
外观调整。 |
/ie color <name|#RRGGBB|r g b> |
染皮革 / 设置颜色组件。 |
/ie armortrim <material> <pattern> |
应用盔甲纹饰。 |
/ie type <item> |
更改物品类型,同时保留其数据。 |
/ie hide <flag> |
从工具提示中隐藏某个组件(如附魔、属性等)。 |
/ie help |
可点击、悬停查看所有子命令列表。 |
/is save|get|list|delete <id> |
你的个人物品仓库。 |
/si save|get|give|list|delete <id> |
共享服务器物品。 |
在游戏中运行 /ie help 获取完整且自文档化的命令列表。
权限配置
每个命令都在 rsitemeditor 命名空间下拥有独立的权限节点,默认要求操作员等级(权限等级 2):
rsitemeditor.itemedit.<sub> — 例如 rsitemeditor.itemedit.rename
rsitemeditor.itemstorage.<sub> — save, get, list, delete
rsitemeditor.serveritem.<sub> — save, get, give, list, delete
你可以使用权限模组单独授予这些权限,或者让操作员直接使用所有功能。
已保存物品的存储位置
已存入库的物品以 NBT 格式存储在世界文件夹中:
<world>/rsitemeditor/itemstorage/<player-uuid>.nbt # 个人仓库
<world>/rsitemeditor/serveritems.nbt # 共享服务器物品
贡献代码
欢迎提交问题报告和拉取请求。每个命令都位于 command/subcommands 下的独立文件中,因此添加新命令只需进行少量、自包含的更改——添加文件并在 SubCommands.kt 中列出即可。
许可证
本项目基于 MIT License 发布。
RSItemEditor 灵感来源于 emanondev/ItemEdit,但与其无任何代码共享。
RSItemEditor
Edit the item in your hand straight from chat. RSItemEditor is a server-side
NeoForge mod that recreates the commands of the popular ItemEdit Spigot plugin
for modern Minecraft — rename items, rewrite lore, add enchantments and
attributes, tweak dozens of data components, and stash items away for later.
- Minecraft: 1.21.1
- Loader: NeoForge (21.1+), Kotlin for Forge
- Side: server-side (works on a dedicated server or in singleplayer). Clients
don't need the mod — everything runs through vanilla-style commands.
Features
/itemedit (/ie) — 30+ sub-commands that edit the held item: name, lore,
amount, damage, enchantments, unbreakable, rarity, custom model data, dyed
color, armor trim, potion effects, banners, fireworks, written books and more.
/itemstorage (/is) — a private, per-player stash. Save the item in your
hand under a name and pull a fresh copy back whenever you want.
/serveritem (/si) — a shared library of items operators can curate and
hand out to players.
- A permission node per command, so a permission manager (LuckPerms, FTB
Ranks, …) can grant access one command at a time.
& color codes everywhere text is accepted, plus WYSIWYG (non-italic) names
and lore.
- Tab-completion with tooltips — lore-line previews, named colors, online
players, stored-item ids and current stack/durability values.
- Localized in English, Russian, German, French, Spanish, Chinese and
Brazilian Portuguese.
Installing
- Install NeoForge
21.1.x for Minecraft 1.21.1.
- Install Kotlin for Forge.
- Drop
rsitemeditor-x.y.z.jar into your server's (or instance's) mods folder.
Commands
Hold an item and run any sub-command. A few highlights:
| Command |
What it does |
/ie rename <text> |
Set the display name (& colors, empty to clear). |
/ie lore add|set|insert|remove|clear |
Manage the lore lines. |
/ie enchant <enchant> <level> |
Add, change or remove an enchantment. |
/ie unbreakable [true|false] |
Toggle the unbreakable flag. |
/ie amount <n> / /ie damage <n> |
Set stack size / durability. |
/ie rarity <rarity> / /ie glow |
Cosmetic tweaks. |
/ie color <name|#RRGGBB|r g b> |
Dye leather / set the color component. |
/ie armortrim <material> <pattern> |
Apply an armor trim. |
/ie type <item> |
Change the item type, keeping its data. |
/ie hide <flag> |
Hide a component (enchants, attributes, …) from the tooltip. |
/ie help |
Clickable, hoverable list of every sub-command. |
/is save|get|list|delete <id> |
Your personal item stash. |
/si save|get|give|list|delete <id> |
Shared server items. |
Run /ie help in game for the full, self-documenting list.
Permissions
Every command has its own node under the rsitemeditor namespace and defaults to
operator level (permission level 2):
rsitemeditor.itemedit.<sub> — e.g. rsitemeditor.itemedit.rename
rsitemeditor.itemstorage.<sub> — save, get, list, delete
rsitemeditor.serveritem.<sub> — save, get, give, list, delete
Grant them individually with your permission mod, or just let operators use
everything out of the box.
Where saved items live
Stashed items are stored as NBT inside the world folder:
<world>/rsitemeditor/itemstorage/<player-uuid>.nbt # personal stashes
<world>/rsitemeditor/serveritems.nbt # shared server items
Contributing
Issues and pull requests are welcome. Each command lives in its own file under
command/subcommands, so adding a new one is a small, self-contained change —
add the file and list it in SubCommands.kt.
License
Released under the MIT License.
RSItemEditor is inspired by emanondev/ItemEdit
but shares no code with it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧