No config changes.
- Fixed the "once" config setting doing the commands more than once.
Config changes
- Cleaned up the reward system.
- Added a "stop" config setting for the reward system.
- Misc changes.
This update is marked as a BETA due to the nature of the reward system being changed and may not work the exact same as previously, however it should not be any noticeable changes.
This update also allows for more reward customization such as not giving a player anymore rewards if one is rolled or only giving a player one single reward from the chance list, for example:
If the player gets the diamond, they will not have a chance to get anything else:
YAML:# ... the pinata is hit by a player. hit: '1': chance: 10.0 stop: true # If the player gets this reward then it won't roll for anymore command: - 'minecraft:give %player% minecraft:diamond 1' '2': chance: 50.0 command: - 'minecraft:give %player% minecraft:leather 1' '3': chance: 25.0 command: - 'minecraft:give %player% minecraft:iron_ingot 1'
The player will only get one single reward from this list or maybe nothing at all.
YAML:# ... the pinata is hit by a player. hit: '1': chance: 20.0 stop: true command: - 'minecraft:give %player% minecraft:diamond 1' '2': chance: 12.5 stop: true command: - 'minecraft:give %player% minecraft:gold_ingot 1' '3': chance: 5.0 stop: true command: - 'minecraft:give %player% minecraft:iron_ingot 1'
No config changes.
- Small code cleanup.
- Deprecated PinataParty#pinatas.
- Added PinataParty#getPinatas and moved to use it internally.
No config changes.
- Added some extra hologram checks and fixes.