EngineHub / EngineHub/CommandBook
Better handling of enchantments
- Langage dominant
- Java
- Étoiles
- 151
- Forks
- 104
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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).
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par lire InventoryComponent et la gestion existante des commandes /item, /give et /enchantments, puis examinez l’utilisation de org.bukkit.enchantments.Enchantment. Déterminez où doivent se trouver les fonctions de recherche avant d’implémenter la commande /enchant proposée et le mappage des entrées utilisateur ; le travail est terminé lorsque des noms d’enchantements conviviaux sont acceptés et résolus de manière cohérente.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- cli, game-dev
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100