promotional bannermobile promotional banner

Loot Block

Randomized loot in a stylish duffle bag.
item image

Description

About

Loot Block is a mod that adds a respawnable block that gives a randomized block. This mod is intended for use by server/map/modpack creators and should not be used in a normal survival game, as the block is a creative-only item.

 

Usage

After installing the mod you have to first create a "LootCategory". You can think of it as a vanilla LootTable. It stores the information about the possible loot, the times it takes for loot to respawn and the color of the block.

First, prepare all the items you want to spawn in your inventory. Then write to the chat "/ccategory <name> <hex> <time>" (replace <name>, <hex>,.... with the values you want to use). Name is the name of the LootCategory, hex is the color of the block in hexadecimal format (for example 0xFF00FF = magenta). Time is the time (in ticks) it takes for the loot to respawn. Keep in mind the command also saves the amount, metadata, and NBT of the items in your inventory. The command does not save your armor or offhand slots. If you did everything right, you should see a green "Successfully saved name!" message in the chat.

 

To use the LootCategory take the Loot Block block from the Decoration Blocks Creative tab and rename it to the name you used previously in the command. You can place the renamed block anywhere you want.

 

If you want to add an item to an existing LootCategory, use the "/acategory <name>" command while holding the time in hand. You can remove one or all categories from the cache using the "/rcategory <name>". Keep in mind that any changes to categories are not reflected in existing Loot Blocks, unless you restart the world!

 

The LootCategories are stored in .json files in your save folder. You can edit those files manually if you feel like it.

 

 

 

The Loot Block Team

profile avatar
Owner
  • 33
    Followers
  • 10
    Projects
  • 3.1M
    Downloads

I swear I will update one of my mods at some point

More from SophkaView all

  • [7 Days to Mine] project image

    [7 Days to Mine]

    • 402.1K
    • Mods

    7 Days to mine is a large zombie apocalypse mod, based on the 7 Days to Die game by The Fun Pimps. Survive in a world full of ruins, abandoned cities, and zombies.

    • 402.1K
    • June 16, 2024
    • Mods
    • +4
  • TinyInv project image

    TinyInv

    • 175.9K
    • Mods

    Allows you to disable inventory slots and change the size of the hotbar

    • 175.9K
    • April 4, 2024
    • Mods
    • +1
  • Caelum project image

    Caelum

    • 2.4M
    • Mods

    More realistic (and configurable) celestial bodies movement

    • 2.4M
    • July 31, 2023
    • Mods
    • +1
  • TinyInv (FABRIC) project image

    TinyInv (FABRIC)

    • 527
    • Mods

    Reducing your inventory in the most vanilla-friendly way possible.

    • 527
    • February 13, 2022
    • Mods
    • +1
  • [7 Days to Mine] project image

    [7 Days to Mine]

    • 402.1K
    • Mods

    7 Days to mine is a large zombie apocalypse mod, based on the 7 Days to Die game by The Fun Pimps. Survive in a world full of ruins, abandoned cities, and zombies.

    • 402.1K
    • June 16, 2024
    • Mods
    • +4
  • TinyInv project image

    TinyInv

    • 175.9K
    • Mods

    Allows you to disable inventory slots and change the size of the hotbar

    • 175.9K
    • April 4, 2024
    • Mods
    • +1
  • Caelum project image

    Caelum

    • 2.4M
    • Mods

    More realistic (and configurable) celestial bodies movement

    • 2.4M
    • July 31, 2023
    • Mods
    • +1
  • TinyInv (FABRIC) project image

    TinyInv (FABRIC)

    • 527
    • Mods

    Reducing your inventory in the most vanilla-friendly way possible.

    • 527
    • February 13, 2022
    • Mods
    • +1