Better handling of enchantments

Aperta
#233 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
cli, game-dev

Direzione di ricerca

Inizia leggendo InventoryComponent e la gestione esistente dei comandi /item, /give e /enchantments, quindi esamina l’uso di org.bukkit.enchantments.Enchantment. Chiarisci dove devono risiedere le funzioni di lookup prima di implementare il comando /enchant proposto e la mappatura dell’input dell’utente; il lavoro è completato quando i nomi degli incantesimi intuitivi per l’utente vengono accettati e risolti in modo coerente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Java
Stelle
151
Fork
104
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di EngineHub/CommandBook

Tutte le issue di EngineHub/CommandBook

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.