- Allow composite loot entries like alternatives, sequences and groups in
replaceLootaction
- Fix
addConditionnot being visible for loot condition containers
- Add `ItemFilter.hasComponent()
- Add
.replaceLoot(filter, lootEntry, preserveCount, preserveComponentTypes)action to allow preserving certain component types when replacing loot
- Update to KubeJS 7.2
- Fix internal access to private constructor
SetComponentsFunction
- Refactor different
ItemFiltersinto own classes
- Added some access to private fields
- Added
getPools,modifyPool,getPool,modifyPoolByName,getPoolByNameto loot tables - Added
hasItemfor pools and grouped loot entries
- Added
matchAnyInventorySlot(itemFilter)andmatchAnyHotbarSlot(itemFilter)
- Fix loot modification being skipped when loot table doesn't contain any entries
- Fix
printmethod for loot tables. Will now print the entries correctly. - Fix
matchCustomConditionandjsonFunctionusing wrong codec.
- Remove
addItemfor loot pools. Prefer to useaddEntry - Deprecate
addTypeModifierinLootJS.modifiersand will be removed in future updates, useaddTableModifierwith a LootType instead. - Deprecate
modifyLootTypeTablesinLootJS.lootTablesand will be removed in future updates, usemodifyLootTableswith a LootType instead.
- Fix
.createin loot tables event
- Bump kubejs version
- Add quick way to negate simple
ItemFilters like tag or id filter by using!, e.g.!#c:tools - Fix regex handling with id filters
- Rename
removeGlobalModifiertoremoveGlobalModifiersinLootJS.modifiersevent.
Fixes
- Fix error
Tag does not existwhen using ItemPredicates with tags