Back to mods
Rogue Loot project artwork

Modrinth · Minecraft mod

Rogue Loot

Introduces a rogue-like loot choice system, which allows players to choose rewards out of several options.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Rogue Loot release should I use?

Updated today
Latest stable file 2.0.0
Game version 26.1, 26.1.1, 26.1.2
Loader Fabric

Rogue Loot 2.0.0 targets 26.1, 26.1.1, 26.1.2 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. All 4 required mods have matching files.

Where it goes

Is Rogue Loot required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Rogue Loot 2.0.0 need?

2.0.0. Change the file and its required mods may change too.

All 4 required mods have matching files

Install Fabric API, Easy Data Fix, Fzzy Config, Fabric Language Kotlin first. We found matching files for this game-version and loader setup. 4 come through another mod in the chain.

9 listed on this file 4 pulled in by those mods
Fabric API Needed by Rogue Loot 2.0.0
required
Matching file found Matched file: 0.155.3+26.1.2
Overhauled Damage Optional for Rogue Loot 2.0.0
optional
Matching file found Matched file: 3.1.0
Easy Data Fix Needed by Rogue Loot 2.0.0
required
Matching file found Matched file: 1.2.0+mc26.1-fabric
Fzzy Config Needed by Rogue Loot 2.0.0
required
Matching file found Matched file: 0.7.7+26.1
Stamina Attributes Optional for Rogue Loot 2.0.0
optional
Matching file found Matched file: 4.0.1
Lootables Optional for Rogue Loot 2.0.0
optional
No matching file
Pufferfish's Skills Optional for Rogue Loot 2.0.0
optional
Matching file found Matched file: 0.19.2
Loot & Explore Optional for Rogue Loot 2.0.0
optional
No matching file
Mana Attributes Optional for Rogue Loot 2.0.0
optional
Matching file found Matched file: 4.0.0
Blocking Overhaul Needed by Overhauled Damage
pulled in
Matching file found Matched file: 2.0.0
Resource Bar API Needed by Overhauled Damage
pulled in
Matching file found Matched file: 4.0.0
Fabric Language Kotlin Needed by Fzzy Config
pulled in
Matching file found Matched file: 1.14.2+kotlin.2.4.21

4 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Rogue Loot without breaking your instance.

Built for Rogue Loot 2.0.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 2.0.0. It targets 26.1, 26.1.1, 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API, Easy Data Fix, Fzzy Config, Fabric Language Kotlin first. We found matching files for this game-version and loader setup. 4 come through another mod in the chain.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 2.0.0. It opens that exact file at the source.

About this project

What does Rogue Loot add?

Rogue Loot (formerly known as Lootable Blocks)

Introduces a rogue-like loot choice system, which allows players to choose rewards out of several options.

Reward options can consist out of a variety of different types, e.g. items, status effects, advancements, etc.

Players can reroll their options, banish specific rewards from appearing again or reserve rewards to appear again after a reroll.

The entire system is data-driven, everything is configured with data/resource packs.

Examples for all data-driven features are available in the test mod files on GitHub: https://github.com/TheRedBrain/rogue-loot/tree/26.1/src/testmod/resources/data/rogueloot_test

How to roll a Rogue Loot Table

A Rogue Loot Table can be supplied to players in various ways.

Block Interactions

Rogue Loot Vault Block

This block looks like the vanilla Vault Block and behaves almost exactly like it. The main difference is that instead of spawning the reward in the world, a Rogue Loot Table is rolled for the interacting player.

The block configuration is data-driven, similar to the vanilla Vault Block.

Structure:

  • "loot_table_identifier", an optional identifier field, empty by default. The identifier of the supplied Rogue Loot Table.
  • "loot_table_mode", an optional String field, "rogue_loot" by default. The mode of the rogue loot vault. "rogue_loot" is currently the only valid option, this option exists for integration with other mods.
  • "rolls", a required int field, 3 by default.
  • "min_choices", a required int field, 1 by default.
  • "max_choices", a required int field, 1 by default. Must be >= "min_choices".
  • "activation_range", a required double field, 4.0 by default.
  • "deactivation_range", a required double field, 4.5 by default. Must be >= "activation_range".
  • "key_item", a required item stack field, {"id": "minecraft:trial_key","count": 1} by default.
  • "display_loot_table_identifier", an optional identifier field, empty by default. The identifier of the display loot table.

Example /give command:

/give @s rogueloot:rogue_loot_vault_block[block_state={ominous:"false"},block_entity_data={id:"rogueloot:rogue_loot_vault_block",config_identifier:"rogueloot_test:test"}]

Interactive Rogue Loot Block

This block is a block intended for map-makers and server admins, and it's available in the operator items creative tab.

Interacting with it opens a config screen (when player is in creative mode and has permission level of game master), where several config options can be set.

When interacted with in survival or adventure mode the block supplies a rogue/vanilla loot table, according to its settings.

Item Interactions

When using items with the "rogueloot:supply_rogue_loot_on_use" data component, a rogue loot table is supplied to the player. The exact specifications are set in the component.

Example /give command:

/give @s minecraft:stick[rogueloot:supply_rogue_loot_on_use={"rogue_loot_table_identifier":"rogueloot_test:test","saving_token":"test","rolls":5,"min_choices":1,"max_choices":2,"consume":true}]

Commands

The "/rogue_loot" command allows (among other things) to supply a rogue loot table to players.

Examples:

/rogue_loot roll_rogue_loot_table @s rogueloot_test:test saving_token 3 1 1 show_success_message

Optional Functionality

Banishing

If enabled by the Rogue Loot Table, Table Entries can be banished. They will no longer appear in any newly rolled Rogue Loot Table that contains this entry. Banished entries can no longer be selected in Rogue Loot Table choices that have already been rolled. Depending on a client config option, banished Table Entries are either hidden or visible, but not interactable. Table Entries can be defined to be unbanishable.

The banishing mechanic works for each player individually.

If banishing is enabled, a new button appears in the UI, which toggles "banishing mode". While in this mode, clicking on a Table Entry banishes that entry and exits banishing mode. Clicking on the button again also exits banishing mode.

Banishing optionally has an item cost. In that case, the cost is removed from the inventory when a Table Entry is banished. The currently available amount of banishments is displayed on the button.

The "/rogue_loot" command allows (un)banishing Table Entries. Using the command does not cost any items, but requires the Game Master permission level.

Examples:

/rogue_loot banish_entry @s rogueloot_test:test
/rogue_loot reset @s banished_entries rogueloot_test:test

Rerolling

If enabled by the Rogue Loot Table, they can be rerolled. If enabled, a new button appears in the UI. Rerolling takes into account all currently banished and reserved Table Entries.

The rerolling mechanic works for each player individually.

Rerolling optionally has an item cost. In that case, the cost is removed from the inventory when a Rogue Loot Table is rerolled. The currently available amount of rerolls is displayed on the button.

When a Rogue Loot Table is rolled, the entries are saved to prevent rerolling by simply exiting the Rogue Loot Screen.

Rogue Loot Tables supplied by blocks are saved by the block itself.

Rogue Loot Tables supplied by items or commands are saved as player data. This data can be reset using a command.

Both the data component and the command for rolling a Rogue Loot Table provide a "saving_token". This is a simple string used to identify the rolled Rogue Loot Table together with the Rogue Loot Table identifier. This allows multiple items to supply the same Rogue Loot Table without affecting each other.
The reset command also uses this saving token.

Example:

/rogue_loot reset @s generated_entries rogueloot_test:test saving_token

Reserving

If enabled by the Rogue Loot Table, Table Entries can be reserved. They are now guaranteed to appear in any newly rolled Rogue Loot Table that contains this entry. Reserved entries can no longer be selected in Rogue Loot Table choices that have already been rolled. Depending on a client config option, reserved Table Entries are either hidden or visible, but not interactable. When a reserved Table Entries appears in a newly rolled Rogue Loot Table, it will no longer be reserved. Table Entries can be defined to be unreservable.

The reserving mechanic works for each player individually.

If reserving is enabled, a new button appears in the UI, which toggles "reserving mode". While in this mode, clicking on a Table Entry reserves that entry and exits reserving mode. Clicking on the button again also exits reserving mode.

Reserving optionally has an item cost. In that case, the cost is removed from the inventory when a Table Entry is reserved. The currently available amount of reservings is displayed on the button.

The "/rogue_loot" command allows (un)reserving Table Entries. Using the command does not cost any items, but requires the Game Master permission level.

Example:

/rogue_loot reserve_entry @s rogueloot_test:test
/rogue_loot reset @s reserved_entries rogueloot_test:test

Use Limit

Table Entries can define a use limit. When they are chosen, their use counter increases by 1. If the use limit is reached, then the entry will no longer appear in newly rolled Rogue Loot Tables. Entries which reached their use limit can no longer be selected in Rogue Loot Table choices that have already been rolled.

Each player has their own use counters for each entry.

Entries with a use limit show their remaining uses in their tooltip.

The "/rogue_loot" command allows increasing/decreasing the uses of Table Entries. This requires the Game Master permission level.

Example:

/rogue_loot use_entry @s rogueloot_test:test
/rogue_loot reset @s entry_uses rogueloot_test:test

Permanent Entries

Table Entries can be permanent. These entries will always appear in any Rogue Loot Tables that contains it. However, this is only true if the entry is unlocked according to their unlock predicate, if it has not reached its use limit and if it's not banished.


Complete Reset

There is also a command that resets everything. This is basically just a shortcut, the same effect can be achieved using the individual commands described above.

/rogue_loot reset @s everything

How to create rogue loot tables?

Rogue Loot Tables are data-driven, which means they are defined using a data pack.

Some parts of the Rogue Loot Table are data-driven on their own.

Rogue Loot Table

Each time a Rogue Loot Table is rolled, n amount (roll amount is determined by the Rogue Loot Table supplier) of Table Entries are randomly chosen based on their weight. Entries with higher weight are more likely to be chosen. Entries have a weight of 1 by default. Entries can only be chosen once during a roll.

The player then has to choose some entries (minimum and maximum amount of choices is determined by the Rogue Loot Table supplier).

Closing the screen and reopening it from the same source will not reroll the choices.

Path:

data/<your_namespace>/rogue_loot/table/<your_rogue_loot_table>.json

Structure:

  • "rogue_loot_table_entries", a list of Table Entry identifiers and/or tags, empty by default.
  • "rarity_overrides", an optional map of Entry Rarity identifiers to Entry Rarity identifiers, empty by default. Entry Rarities of Table Entries in "rogue_loot_table_entries" are overridden, according to this map.
  • "gui_settings_identifier", an optional identifier field, empty by default. Defines the GUI Settings used by this Rogue Loot Table.
  • "roll_amount_modifier", an optional Attribute Influenced Integer Modifier field, empty by default. Modifies the rolls value coming from the Rogue Loot Table Supplier.
  • "min_choices_modifier", an optional Attribute Influenced Integer Modifier field, empty by default. Modifies the min_choices value coming from the Rogue Loot Table Supplier.
  • "max_choices_modifier", an optional Attribute Influenced Integer Modifier field, empty by default. Modifies the max_choices value coming from the Rogue Loot Table Supplier.
  • "rerolling", an optional Rogue Loot Table Interaction field, empty by default. When this field is present, rerolling is enabled.
  • "banishing", an optional Rogue Loot Table Interaction field, empty by default. When this field is present, banishing is enabled.
  • "reserving", an optional Rogue Loot Table Interaction field, empty by default. When this field is present, reserving is enabled.
  • "random_sequence", an optional identifier field, empty by default. Is used to create deterministic randomization.

Rogue Loot Table Interaction

This is a sub-data structure used only by Rogue Loot Tables. When present, it enables optional mechanics on the Rogue Loot Screen. It also can optionally define an item cost for these mechanics.

Structure:

  • "cost", an optional item stack field, empty by default. Defines the item stack that has to be paid in order to use the mechanic enabled by this interaction.

GUI Settings

Gui Settings are referenced by Rogue Loot Tables. They define several cosmetic features and are entirely optional.

Path:

data/<your_namespace>/rogue_loot/gui_settings/<your_table_gui_settings>.json

Structure:

  • "background_texture_path", an optional string field, "" by default. This string describes the texture path of the background texture for the Rogue Loot Screen.
  • "entries_asset_path_addition", an optional string field, "" by default. This string is added to the background texture paths of Table Entry buttons.
  • "reroll_requirements_not_met", an optional Label Settings field, empty by default. Modifies the "Reroll" button's label when the player can't afford the rerolling cost.
  • "reroll_requirements_met", an optional Label Settings field, empty by default. Modifies the "Reroll" button's label when the player can afford the rerolling cost.
  • "enable_banishing_requirements_not_met", an optional Label Settings field, empty by default. Modifies the "Banish" button's label when banishing is currently inactive and the player can't afford the banishing cost.
  • "enable_banishing_requirements_met", an optional Label Settings field, empty by default. Modifies the "Banish" button's label when banishing is currently inactive and the player can afford the banishing cost.
  • "disable_banishing", an optional Label Settings field, empty by default. Modifies the "Banish" button's label when banishing is currently active.
  • "enable_reserving_requirements_not_met", an optional Label Settings field, empty by default. Modifies the "Reserve" button's label when reserving is currently inactive and the player can't afford the reserving cost.
  • "enable_reserving_requirements_met", an optional Label Settings field, empty by default. Modifies the "Reserve" button's label when reserving is currently inactive and the player can afford the reserving cost.
  • "disable_reserving", an optional Label Settings field, empty by default. Modifies the "Reserve" button's label when reserving is currently active.
  • "confirmation_requirements_not_met", an optional Label Settings field, empty by default. Modifies the "Confirm Choices" button's label when not enough entries are selected.
  • "confirmation_requirements_met", an optional Label Settings field, empty by default. Modifies the "Confirm Choices" button's label when enough entries are selected.

Table Entry

Table Entries are referenced by Rogue Loot Tables. They define the individual reward choices.

On the Rogue Loot Screen, each Table Entry is represented by a button. This button allows the player to select the entry. The specific interactions are described above.

Each different button state is reflected by a different button texture. By default, these textures are found here (please refer to the sources on GitHub):

assets/rogueloot/textures/gui/sprites/widgets/loot_option_button/<specific_texture_name>.png

However, the GUI Settings of the Rogue Loot Table and the entry's rarity can influence the texture path, allowing for custom textures based on GUI Settings and/or rarity.

If both GUI Settings and Entry Rarity have the corresponding fields set, the texture path looks like this:

assets/rogueloot/textures/gui/sprites/widgets/loot_option_button/<entries_asset_path_addition>/<asset_path_addition>/<specific_texture_name>.png

"entries_asset_path_addition" is the field in GUI Settings and "asset_path_addition" is the field in Entry Rarity. If one of these fields is missing/empty, they are ignored.

Note that the "/" are not part of these fields. "/" at the start or end of these strings are not allowed. Putting a "/" somewhere in the middle is allowed and will correspond to an additional folder in the file path.

Path:

data/<your_namespace>/rogue_loot/table_entry/<your_table_entry>.json

Structure:

  • "unlock_predicate", an optional Context Aware Predicate field, empty by default. Checks whether the entry is unlocked.
  • "component", a required Entry Component field. Defines the reward granted by this entry.
  • "display", an optional Entry Display field, empty by default.
  • "tooltip", an optional Entry Tooltip field, empty by default.
  • "rarity_identifier", an optional identifier field, empty by default. Defines the Entry Rarity used by this Table Entry.
  • "use_limit", an optional int field, 0 by default. Defines the amount of times this entry can be chosen, before becoming unavailable.
  • "allow_banishing", an optional boolean field, true by default. Defines whether the entry can be banished.
  • "allow_reserving", an optional boolean field, true by default. Defines whether the entry can be reserved.
  • "is_permanent", an optional boolean field, false by default. Defines whether the entry is permanent.

Entry Display

This is a sub-data structure used only by Table Entries. It defines what is displayed on the button representing this Table Entry.

Structure:

  • "display_stack", an optional Item Stack field, empty by default. Is not compatible with the "icon_texture_identifier" field.
  • "icon_texture_identifier", an optional Identifier field, empty by default. Is not compatible with the "display_stack" field.
  • "label_text", an optional string field, "" by default. Defines the Entry Rarity used by this Table Entry.

Entry Tooltip

This is a sub-data structure used only by Table Entries. It defines what is displayed on the button representing this Table Entry.

Structure:

  • "display_stack", an optional Item Stack field, empty by default. Is not compatible with the "icon_texture_identifier" field.
  • "tooltip_label_lines", an optional list of strings, empty by default. Defines the Entry Rarity used by this Table Entry.

Entry Rarity

Each Table Entry can reference an Entry Rarity. These are mostly cosmetic, but they also define how often a Table Entry is presented to a player, based on a weight system.

Path:

data/<your_namespace>/rogue_loot/entry_rarity/<your_entry_rarity>.json

Structure:

  • "asset_path_addition", an optional string field, "" by default. This string is added to the background texture paths of Table Entry buttons.
  • "weight", an optional int field, 1 by default. Overwrites the weight of the Table Entry.
  • "weight_modifier", an optional Attribute Influenced Integer Modifier field, empty by default. Modifies the weight value
  • "banished_label", an optional Label Settings field, empty by default. Modifies the entry's text label when the entry is banished.
  • "default_label", an optional Label Settings field, empty by default. Modifies the entry's text label when none of the other cases are true.
  • "reserved_label", an optional Label Settings field, empty by default. Modifies the entry's text label when the entry is reserved.
  • "selected_label", an optional Label Settings field, empty by default. Modifies the entry's text label when the entry is selected.
  • "tooltip_style", an optional identifier field, empty by default. Defines the tooltip style (background texture + frame).

Entry Component

A Table Entry defines a reward, which is granted to the player when the entry is chosen. Rewards are called Entry Components, and they have a variety of possible types. These types are defined in Java code, but can have data-driven fields for further customization.

Component Types:

  • "rogueloot:add_experience_level", adds the specified amount of experience levels
  • "rogueloot:add_experience_point", adds the specified amount of experience points
  • "rogueloot:advancement_criterion", grants the specified criterion of the specified advancement
  • "rogueloot:banish_rogue_loot_table_entries", banishes the specified Table Entry (tag)
  • "rogueloot:deal_damage", deals the specified amount of damage with the specified damage type to the player
  • "rogueloot:heal_to_x_percent", sets the player's health to the specified percentage
  • "rogueloot:heal_x_amount", heals the player by the specified amount
  • "rogueloot:item_stack", adds the specified item stack to the player's inventory (or drops it on the ground when no space is left)
  • "rogueloot:list", grants all specified Entry Components
  • "rogueloot:mob_effect_instance", applies the specified mob effect instance, respecting the specified stacking mode
    • if no stacking mode is specified, the vanilla functionality (e.g. onEffectUpdated()) is called
    • the stacking mode can be one of:
      • "none", an existing effect instance is removed (if one is present) and the new is applied
      • "amplifier", an existing effect instance is removed (if one is present) and the new is applied, but the amplifier of the existing instance is added
      • "duration", an existing effect instance is removed (if one is present) and the new is applied, but the duration of the existing instance is added
      • "both", an existing effect instance is removed (if one is present) and the new is applied, but both the amplifier and duration of the existing instance are added
  • "rogueloot:modify_equipment", applies the specified list of loot item functions to all items in the specified equipment slots (optionally filtered by a condition)
  • "rogueloot:play_sound", plays the specified sound at the player's location
  • "rogueloot:random_components", grants a random reward out of a list of Entry Components, each having a weight.
  • "rogueloot:reserve_rogue_loot_table_entries", reserves the specified Table Entry (tag)
  • "rogueloot:set_experience_level", sets the player's experience level To the specified amount
  • "rogueloot:set_experience_point", sets the player's experience points To the specified amount
  • "rogueloot:unbanish_rogue_loot_table_entries", unbanishes the specified Table Entry (tag)
  • "rogueloot:unreserve_rogue_loot_table_entries", unreserves the specified Table Entry (tag)
  • "rogueloot:unuse_rogue_loot_table_entries", removes one use (optionally all uses) of the specified Table Entry (tag)
  • "rogueloot:use_rogue_loot_table_entries", adds one use to the specified Table Entry (tag)
  • "rogueloot:vanilla_loot_table", rolls the specified vanilla loot table and adds the items to the player's inventory (or drops them on the ground when no space is left)

Component Types can easily be added by third-party mods. Rogue Loot also adds several component types that depend on third-party mods.

Mana Attributes:

  • "rogueloot:compat/manaattributes/add_mana", adds the specified amount of mana
  • "rogueloot:compat/manaattributes/set_mana", sets the player's mana to the specified percentage

Pufferfish's Skills:

  • "rogueloot:compat/puffish_skills/add_experience_level", adds the specified amount of experience levels to the specified category
  • "rogueloot:compat/puffish_skills/add_experience", adds the specified amount of experience to the specified category
  • "rogueloot:compat/puffish_skills/add_points", adds the specified amount of skill points from the specified point source to the specified category, either with or without announcement
  • "rogueloot:compat/puffish_skills/lock_category", locks the specified category
  • "rogueloot:compat/puffish_skills/lock_skill", locks the specified skill in the specified category
  • "rogueloot:compat/puffish_skills/set_experience_level", sets the player's experience level in the specified category to the specified amount
  • "rogueloot:compat/puffish_skills/set_experience", sets the player's experience in the specified category to the specified amount
  • "rogueloot:compat/puffish_skills/set_points", sets the player's skill points from the specified point source in the specified category to the specified amount, either with or without announcement
  • "rogueloot:compat/puffish_skills/unlock_category", unlocks the specified category
  • "rogueloot:compat/puffish_skills/unlock_skill", unlocks the specified skill in the specified category

Stamina Attributes:

  • "rogueloot:compat/staminaattributes/add_stamina", adds the specified amount of stamina
  • "rogueloot:compat/staminaattributes/set_stamina", sets the player's stamina to the specified percentage

Common Data Structures

These structures are used by several of the data files described above.

Label Settings

Text labels (e.g. on buttons) can be customized. A "Chat Formatting" is used to describe such a customization. Label Settings can define a list of these formattings, which will then be applied to the text in question.

These formattings exist:

  • "black"
  • "dark_blue"
  • "dark_green"
  • "dark_aqua"
  • "dark_red"
  • "dark_purple"
  • "gold"
  • "gray"
  • "dark_gray"
  • "blue"
  • "green"
  • "aqua"
  • "red"
  • "light_purple"
  • "yellow"
  • "white"
  • "obfuscated"
  • "bold"
  • "strikethrough"
  • "underline"
  • "italic"

Additionally, the text shadow can be disabled.

Example:

{
  "formatting": [
    "gray",
    "bold"
  ],
  "has_shadow": true
}

Attribute Influenced Integer Modifier

Some values used by various mechanics in Rogue Loot can optionally be modified by the value of an entity attribute.

The current value of the specified entity attribute is multiplied by a defined value and added to the given default value.

The modified value is clamped by the given min_value and max_value.

Example:

{
  "min_value": -50,
  "max_value": 50,
  "influencing_attribute_identifier": "minecraft:luck",
  "influence_multiplier": 2.0,
}

Project description from Modrinth.

Pick your setup

Rogue Loot by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

4 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Rogue Loot versions and loaders

3 of 3 releases match

Looking for an older file? The official Modrinth project page is in Resources.