This update is for Spigot / Minecraft 1.17.1 - 1.18.2, and is compiled using Spigot API 1.18.2 and Java 17.
This update contains a major refactor of the code related to item drops. Blocks that drop a variable amount of an item now display the range that it drops rather than the actual amount of the item that it would have dropped.
A config option has been added to display the block information only if the player is sneaking. This can be set for each display method. For example,
Code (YAML):
scoreboard:
enabled
: true
on_sneak
: true
Additional placeholders were requested that give the location of the targeted block.
Code (YAML):
%whatisthis_location%
%whatisthis_locationX%
%whatisthis_locationY%
%whatisthis_locationZ%
All language files updated to 1.18.2.
Some code improvements and bug fixes - see change log for details.
Change Log
==========
- major refactor of code around item drops
- blocks that drop variable amount of an item now display the full range that it drops
- delete InconsistentDropItems enum
- add ItemDropRanges enum
- relocate 2 scoreboard specific methods from DataHandler class to ScoreboardHandler
- tidy up custom block checks
- add option to only display if player is sneaking
- add placeholder of block location
- fix chorus fruit and snow layers not displaying correct drops
- fix drops displayed in chat not being translated
- add 1.18.2 language file updates
Please report any issues found preferably on GitHub or Discord -
https://discord.gg/wFYSAS4