Fix
- Fixed parameter remove-vanilla-drops not working
Add:
Style:
- Conditions were added to each reward, allowing for greater flexibility and reuse.
- The way lore is created has also been adjusted; it's now possible to use only "lore" instead of "lores," aligning with the Minecraft plugin standard. (Using "lores" is still possible, but "lore" is recommended.)
Condition example:
Code:conditions-in-rewards-treasures: ... sections: 'COOL NAME': rewards: '1': # Conditions section: defines the conditions for the treasure to appear based on worlds, blocks, biomes, strings, or numbers. # - OPTIONAL conditions: # Blocks condition: Specifies which blocks are restricted or allowed for the treasure. # - type: BLOCK (Defines if the condition applies to specific blocks) # - method: BLACKLIST or WHITELIST (BLACKLIST excludes, WHITELIST includes the specified blocks) # - values: List of blocks to apply the condition to. blocks: type: BLOCK method: WHITELIST values: - "stone" chance: 50.0 exp: '1~70' commands: - "[ACTIONBAR] &eYou break a stone!" - "[MESSAGE] &6[Treasure] &7- &7You break a stone!"
Documentation was updated on:
https://pretti.gitbook.io/prtminetreasures/treasures/rewards/rewards#conditions
Fix
- New format that is even more optimized for calculating random rewards.
- Fixed some minor internal bugs.
Add
- Added a new metadata type (
Int[]).- Example:
- key:
IntArray- value:
1, 2, 3, 4, 777
Documentation was updated on:
https://pretti.gitbook.io/prtminetreasures/treasures/rewards/rewards#item
- Fixed NBT usage errors on newer server versions (1.21+).
- Added dependency configuration:
- This allows server owners to choose which NBT API version to use, ensuring better compatibility with newer server versions.YAML:# DEPENDENCIES dependencies: use-server-nbt-api: true # This tells the plugin to use the manually installed NBT API version in the server’s plugins/ folder. Setting it to false forces PrtMineTreasures to use the shaded version. Enable this if your plugin runs on an unsupported server version.
New Features
- Introduced the Crate Rewards System, allowing rewards to be stored inside a crate. This provides a more dynamic and engaging gameplay experience.
New Parameters
- Added the "delivery" parameter to treasures and individual rewards.
- Expanded the "remove-vanilla-drops" option. It can now be used in treasure configurations, in addition to individual rewards and
config.yml.
Delivery Types
- DROP – The reward (item) is dropped at the block break event location.
- INVENTORY – The reward is added directly to the player's inventory.
- STORED – The reward is stored inside a chest.
Bug Fixes & Improvements
- Fixed an issue where placeholders were not being replaced in item descriptions.
- Resolved multiple minor bugs to improve stability and performance.
Important Notes
- New configuration options have been added to
config.ymlandmessages.yml.- A new example treasure file has been introduced:
crate-example.yml.
Now, it’s possible to set chances for rewards with extremely low precision, reaching values as small as 0.00001%
