跳到正文

LootScatter

作者:lifthaw

A mod that will help you hide your loot all over the map!

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Description

This simple mod will help you organize a battle royale with your friends.

Has only 3 commands (the other 3 are still in development).

 


Functions

/spawnloot auto [chests count] [loot table name] [minimal distance between chests] [radius]
Example:
/spawnloot auto 20 relootmod:chests/battle_royale 15 100
Spawn 20 loot chests from a table called battle_royale with a minimum distance between chests of 15 blocks and a radius of 100 blocks.
 
/relootall
Regenerates all loot in all chests with a loot table (which were created by the /spawnloot command)
 
/clearchests
Deletes all chests created by the /spawnloot command


Loot tables

How to Create Custom Loot Tables (Guide)

Reloot Mod allows you to use any custom loot table for the /spawnloot command. You don’t need to make a new mod; you can add them directly to your world using the Minecraft Data Pack system.

Folder Structure

Navigate to your world folder (saves/your_world_name/) and create the following directory tree:

datapacks/
└── MyCustomLoot/
    ├── pack.mcmeta
    └── data/
        └── custom/
            └── loot_tables/
                └── super_chest.json

Create pack.mcmeta

In the MyCustomloot folder, create a file named pack.mcmeta and paste this code:

{
  "pack": {
    "pack_format": 15,
    "description": "Loot tables for Reloot Mod"
  }
}
(Note: For Minecraft 1.20.1, the pack_format is 15).

 

Create the Loot Table File

In the loot_tables folder, create a JSON file (e.g., super_chest.json). Here is a simple template:

{
  "pools": [
    {
      "rolls": { "min": 2, "max": 5 },
      "entries": [
        { "type": "minecraft:item", "name": "minecraft:diamond", "weight": 10 },
        { "type": "minecraft:item", "name": "minecraft:golden_apple", "weight": 5 },
        { "type": "minecraft:item", "name": "minecraft:netherite_ingot", "weight": 1 }
      ]
    }
  ]
}

How to Use in Game

  1. Open your world or type the command /reload if the world is already running.
  2. Your custom loot table now has the ID: custom:super_chest.
  3. Use it with the mod command (example): /spawnloot auto 10 custom:super_chest 5 50

Enjoy!


WARNING!!!

The mod is in beta, so there may be bugs, report them in the comments.

Also, if you have any advice, I’ll read it all.

 
 
 

常见问题

LootScatter 支持哪些 Minecraft 版本?

LootScatter 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

LootScatter 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

lifthaw 的其他作品

查看全部 →