Better handling of enchantments
还没有人认领这个 Issue。
评估
调研方向
先阅读 InventoryComponent 以及现有的 /item、/give 和 /enchantments 命令处理逻辑,然后检查 org.bukkit.enchantments.Enchantment 的使用情况。在实现提议的 /enchant 命令和用户输入映射之前,明确查找函数应放置的位置;完成的标准是能够接受用户友好的附魔名称,并以一致的方式解析它们。
由索引模型根据 Issue 内容生成。
描述
CMDBOOK-2341 - Reported by Andy
Currently, you can only add enchantments with the /item and /give command if you enter the exact name from org.bukkit.enchantments.Enchantment. Those names aren't all very logical, and some doesn't correspond well to what they are generally called (Which is why the /enchantments command was added I suppose).
I would like to do something about this, and add an /enchant command in InventoryComponent based off the vanilla Minecraft-command with some improvements. In addition to the command handling there would need to be a way to transform user input to Enchantment-values/IDs.
Is this something you might be interested in? Additionally, I'm unsure as to where to send the PR in terms of the lookup-functions. I feel that it might be better to put this class in package com.sk89q.worldedit.blocks since the rest of the Item and Block-class/functions are there, where it may be used by WorldEdit/WorldGuard as well should there ever be a need to (/searchitem is a possibility).
- 主要语言
- Java
- 星标
- 151
- 派生
- 104
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
EngineHub/CommandBook 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
EngineHub/CommandBook#294 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
EngineHub/CommandBook#285 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
EngineHub/CommandBook#283 ·
-
难度 4/5 3-5 天 新手友好度 20/100
EngineHub/CommandBook#282 ·
-
难度 3/5 1-2 天 新手友好度 35/100
EngineHub/CommandBook#281 ·
查看 EngineHub/CommandBook 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
infinispan/infinispan#18150 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
untriaged
难度 2/5 1-3 小时 新手友好度 82/100
opensearch-project/k-NN#3597 ·
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 82/100