Add InventoryThing collection.
Adds three new Thing types that can be used to reference items in chests (or any block-based InventoryHolder): - InventoryIndexThing looks up an item by index/slot in an inventory. - InventoryGroupThing groups all non-null/non-air items in an inventory into a ThingGroup. - InventoryRangeThing groups all non-null/non-air items in a given range of an inventory into a ThingGroup. The new Thing types aim to bridge a gap between the class chests and the rest of the Thing-based parts of the config-file. The goal is two-fold: allow for more in-game configuration so access to the config-file isn't _quite_ as crucial, and propagate the item-wise feature completeness of class chests to other parts of the plugin. While class chests are low configuration and a bit "all or nothing", the inventory Thing types require manually punching in the coords for chests and possibly indices/ranges for items. This means that the initial setup could be a bit unwieldy, and highly volatile wave setups are definitely not a good fit. If the wave setup is mostly pre-defined, it is fairly easy to tweak upgrade waves and rewards in the same way class chests are tweaked. As for item-wise feature completeness, the inventory Thing types share the same "if Bukkit can copy it, it will work" rule of thumb as class chests do, which means items with metadata such as custom names, lore, or even NBTs, should just work. This could remove the need to employ other plugins. By no means can this solution be considered "optimal", but it it _does_ enable some long-requested features. Closes #456
This commit is contained in:
@@ -11,6 +11,9 @@ These changes will (most likely) be included in the next version.
|
||||
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
- Support for chest references in item syntax. The new `inv` syntax allows for referencing container indices in the config-file. This should help bridge the gap between class chests and various other parts of the config-file, such as rewards and upgrade waves.
|
||||
|
||||
### Fixed
|
||||
- Explosion damage caused by Exploding Sheep now correctly counts as monster damage. This means that the explosions only affect other mobs if the per-arena setting `monster-infight` is set to `true`.
|
||||
- Explosion damage caused by the boss ability `obsidian-bomb` now correctly counts as monster damage. This means that the explosions only affect other mobs if the per-arena setting `monster-infight` is set to `true`.
|
||||
|
||||
Reference in New Issue
Block a user