Better handling of enchantments
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu bằng cách đọc InventoryComponent và phần xử lý hiện có của các lệnh /item, /give và /enchantments, sau đó kiểm tra cách sử dụng org.bukkit.enchantments.Enchantment. Làm rõ các hàm lookup nên nằm ở đâu trước khi triển khai lệnh /enchant được đề xuất và ánh xạ đầu vào của người dùng; hoàn thành có nghĩa là các tên enchantment thân thiện với người dùng được chấp nhận và phân giải một cách nhất quán.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- Java
- Star
- 151
- Fork
- 104
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của EngineHub/CommandBook
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
EngineHub/CommandBook#294 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
EngineHub/CommandBook#285 · 3 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
EngineHub/CommandBook#283 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
EngineHub/CommandBook#282 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
EngineHub/CommandBook#281 ·
Tất cả issue của EngineHub/CommandBook
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
infinispan/infinispan#18150 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
opensearch-project/k-NN#3597 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100