How could I possibly display a Item's enchantment(s) in a user-friendly form in chat? Ex: -- Protection: 4 Durability: 3 --
@DoggyCode™ Get the enchantment and its levels? Integers don't display in Roman numerals to begin with.
@DoggyCode™ Yep, loop through the entries of the map where key is the Enchantment and value is the level. Then you can format it somehow even using block characters to form some kind of "box".
@DoggyCode™ Sorry, i ment "Block Elements". Here you go: https://en.wikipedia.org/wiki/Block_Elements. Use the unicode to represent them in chat messages e.g. \u2580.
@DoggyCode™ You can use texture packs to do this .-. In the lang file put Code: enchantment.level.1=1 enchantment.level.2=2 enchantment.level.3=3 enchantment.level.4=4 enchantment.level.5=5 enchantment.level.6=6 enchantment.level.7=7 enchantment.level.8=8 enchantment.level.9=9 enchantment.level.10=10 And so on.
@DoggyCode™ For the levels: You can just simply convert it to a roman Number. Just google for "how to convert number to roman" or similar.