Better handling of enchantments
まだ誰も着手していません。
評価
調査の方向性
まず InventoryComponent と、既存の /item、/give、/enchantments コマンド処理を読み、次に org.bukkit.enchantments.Enchantment の使用箇所を確認してください。提案されている /enchant コマンドとユーザー入力のマッピングを実装する前に、lookup 関数をどこに配置するべきかを明確にしてください。完了の条件は、ユーザーフレンドリーなエンチャント名が受け付けられ、一貫して解決されることです。
索引モデルが 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/flink-agents#1152 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jenkinsci/blueocean-plugin#5417 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/eo-graphs#75 ·