Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
LootJS: KubeJS Addon

LootJS: KubeJS Addon

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

1.50M
43
Utility

Compatibility

Minecraft: Java Edition

1.21.x
1.20.1
1.19.2
1.18.2

Platforms

Fabric
Forge
NeoForge

Supported environments

Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server

Creators

Lytho
Lytho Owner
Relentless
Relentless Member

Details

Licensed LGPL-3.0-only
Published 2 years ago
Updated 3 days ago
DescriptionChangelogVersions

Show all versions

1
2
3

LootJS-Fabric-1.20.1-2.13.0

by Lytho on May 8, 2025
Download

LootJS-Forge-1.20.1-2.13.0

by Lytho on May 8, 2025
Download

Fixed

  • Fixed #23

LootJS-NeoForge-1.21.1-3.4.0

by Lytho on Mar 21, 2025
Download
  • Added getPools, modifyPool, getPool, modifyPoolByName, getPoolByName to loot tables
  • Added hasItem for pools and grouped loot entries

LootJS-NeoForge-1.21.1-3.2.2

by Lytho on Oct 27, 2024
Download
  • Added matchAnyInventorySlot(itemFilter) and matchAnyHotbarSlot(itemFilter)

LootJS-NeoForge-1.21.1-3.1.2

by Lytho on Oct 14, 2024
Download
  • Fix loot modification being skipped when loot table doesn't contain any entries

LootJS-NeoForge-1.21-3.1.1

by Lytho on Aug 25, 2024
Download
  • Fix print method for loot tables. Will now print the entries correctly.
  • Fix matchCustomCondition and jsonFunction using wrong codec.

LootJS-NeoForge-1.21-3.1.0

by Lytho on Aug 3, 2024
Download
  • 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.

LootJS-NeoForge-1.21-3.0.4

by Lytho on Jul 25, 2024
Download
  • Fix .create in loot tables event

LootJS-NeoForge-1.21-3.0.3

by Lytho on Jul 22, 2024
Download
  • Bump kubejs version

LootJS-NeoForge-1.21-3.0.2

by Lytho on Jul 16, 2024
Download
  • 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.

LootJS-NeoForge-1.21-3.0.1

by Lytho on Jul 7, 2024
Download

Fixes

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

LootJS-NeoForge-1.21-3.0.0

by Lytho on Jul 6, 2024
Download

Changes

  • New wiki https://docs.almostreliable.com/lootjs/
  • Now on neoforge
  • Added LootJS.loot_tables event for direct loot table modification
  • Add LootBucket as wrapper class for loot for easier execute some helper functions
  • LootEntry does not only represent single items anymore. It now represents all different loot entries vanilla minecraft has.
    • LootEntry.of(item): Single item
    • LootEntry.empty(): Empty entry
    • LootEntry.tag(tag): Tag entry
    • LootEntry.reference(lootTable): Reference to another loot table. For example, LootEntry.reference("minecraft:chests/abandoned_mineshaft")
    • LootEntry.alternative(lootEntries...): Alternative loot
    • LootEntry.sequence(lootEntries...): Sequence loot
    • LootEntry.group(lootEntries...): Grouped loot
  • Changes to LootJS.modifiers event:
    • Loot modifiers are not executed in order anymore. It will now work like a loot table. First check for conditions and if it contains matching loot, then apply all actions and then apply loot functions.
    • addLootTableModifier, addLootTypeModifier, addBlockLootModifier, addEntityLootModifier renamed into addTableModifier, addTypeModifier, addBlockModifier, addEntityModifier
    • .functions(itemFilter, (f) => {}) removed. Better to just use group now
    • Added .group((group) => {...}) or .group(itemFilter, (item) => {...}). Second one will pre-filter current loot for further modifications.
      • .group() can use .rolls(numberprovider) to execute the group multiple times
    • .pool() now actually consumes a vanilla LootPool
    • Removed addWeightedLoot(), use .pool() instead now
    • matchLoot renamed into containsLoot
    • .dropExperience can now use a number provider instead of a fixed amount
    • LootContextJS wrapper removed. Using LootContext instead but added all helper methods from LootContextJS too
  • Renamed some loot functions
  • Renamed some loot conditions
  • Changes to ItemFilter:
    • .hasEnchantments(...) only works for item enchantments now. For stored enchantments use .hasStoredEnchantments(...)
    • Removed some filters as they are no longer needed with the new data components.
    • Renamed ALWAYS_TRUE into ALL and ALWAYS_FALSE into NONE
  • Added vault, block_use and shearing LootType
  • And probably more stuff I may missed, sorry! :D Feel free to ask in our discord.

LootJS-Forge-1.20.1-2.12.0

by Lytho on Jun 6, 2024
Download

LootJS-Fabric-1.20.1-2.12.0

by Lytho on Jun 6, 2024
Download

Added

  • Added randomTableBonus(enchantment, chances) for vanillas table_bonus condition

LootJS-Fabric-1.20.1-2.11.0

by Lytho on Feb 10, 2024
Download

LootJS-Forge-1.20.1-2.11.0

by Lytho on Feb 10, 2024
Download

Added

  • Added LootEntry.of("#tag"), LootEntry.of("@modid") to select a random entry from a tag or modid.
  • Added LootEntry.ofJson(json) to create a loot entry from JSON to support custom entries from other mods

LootJS-Fabric-1.20.1-2.10.4

by Lytho on Dec 7, 2023
Download

LootJS-Forge-1.20.1-2.10.4

by Lytho on Dec 7, 2023
Download

Fixed

  • Crash with newest kubejs version

LootJS-Forge-1.20.1-2.10.3

by Lytho on Sep 27, 2023
Download

LootJS-Fabric-1.20.1-2.10.3

by Lytho on Sep 27, 2023
Download

Fixed

  • Fixed null pointer exception when using addLootTableModifier and an entity dies
1
2
3

Modrinth is open source.

main@4b75cb8

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.