nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft.
LootJS: KubeJS Addon

LootJS: KubeJS Addon

Mod

A Minecraft mod for packdevs to easily modify the loot system with KubeJS.

Server Utility

8.48M downloads
72 followers
Created4 years ago
Updated15 days ago

Filter loader...
Filter versions...
Filter channels...
  • Allow composite loot entries like alternatives, sequences and groups in replaceLoot action

Fixed

  • Fix addCondition not 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 ItemFilters into own classes
  • Added some access to private fields

Fixed

  • Added getPools, modifyPool, getPool, modifyPoolByName, getPoolByName to loot tables
  • Added hasItem for pools and grouped loot entries
  • Added matchAnyInventorySlot(itemFilter) and matchAnyHotbarSlot(itemFilter)
  • Fix loot modification being skipped when loot table doesn't contain any entries
  • Fix print method for loot tables. Will now print the entries correctly.
  • Fix matchCustomCondition and jsonFunction using wrong codec.
  • Remove addItem for loot pools. Prefer to use addEntry
  • Deprecate addTypeModifier in LootJS.modifiers and will be removed in future updates, use addTableModifier with a LootType instead.
  • Deprecate modifyLootTypeTables in LootJS.lootTables and will be removed in future updates, use modifyLootTables with a LootType instead.
  • Fix .create in 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 removeGlobalModifier to removeGlobalModifiers in LootJS.modifiers event.

Fixes

  • Fix error Tag does not exist when using ItemPredicates with tags

External resources



Project members

Relentless

Member

Lytho

Owner


Technical information

License
LGPL-3.0-only
Client side
unsupported
Server side
required
Project ID
Expand Down