kellerkindt / ShowCaseStandalone

GNU General Public License v3.0
2 stars 9 forks source link

Use json to display lore when hovering over item in chat #1

Open RoboMWM opened 7 years ago

RoboMWM commented 7 years ago

This would be a neat way to view the lore (other than a chest GUI).

Only downside I can see displaying lore this way is if chat on the current server is scrolling by too fast to view (since you need to hold your cursor over a specific text).

Alternative is to display a chest GUI of the item with lore, though this presents some issues (primarily having to deal with preventing players from taking the item out of the GUI).

RoboMWM commented 6 years ago

In case you want to implement this, I've already done so in my fork: https://github.com/MLG-Fortress/ShowCaseStandalone/blob/mlg-fortress/src/com/kellerkindt/scs/listeners/ShowCaseExecutingListener.java

(Though you'll probably want to implement differently, as I wanted it to make the description text hoverable, and was curiously unable to use Messaging#parse without the message appearing weirdly client-side; my version does not use that method and thus does not use the alternative methods of applying color to the string.)