promotional bannermobile promotional banner

Multiplayers LootingBag

We are adding a loot bag to distribute boss drops evenly during multiplayer sessions. It can also be used to prevent drop loss during solo play.

Loot Bag for Multiplayers gives every player who fought a mob their own loot. When a target mob dies, loot is rolled separately for each player who took part, and each result is delivered as a personal Loot Bag straight into that player's inventory.

No more racing to grab drops, and no more arguing over who gets the single boss drop.

How It Works

  1. Participants are recorded. Every player who deals damage to a target mob is recorded on that mob. Arrows and other projectiles count for the player who fired them. The record is saved with the mob, so it survives chunk unloads and server restarts.
  2. Loot is rolled per player. When the mob dies, every participant who is online at that moment gets a fully independent loot roll.
  3. Bags are delivered instantly. Each participant receives a Loot Bag directly in their inventory. If the inventory is full, the bag drops at the spot where the mob died.

It doesn't matter who landed the final blow. Even if the mob dies from fire or a fall, everyone who damaged it gets a bag.

Independent Loot Rolls

Each participant's roll is based on that player's own state:

  • Their own Looting level and Luck
  • Their own held items and equipment for loot table conditions
  • Separate randomness: with a 30% drop, A might get it, B might not, and C might get it too
  • Mob equipment drop chances (such as a boss's sword) are rolled for each player
  • Loot table changes from KubeJS / LootJS and Global Loot Modifiers are evaluated for each player

Looting never adds extra bags. One mob death gives each player at most one bag.

The Loot Bag

  • Named after its owner and the mob, for example "Steve's Wither Loot Bag". Mob names follow each player's language setting.
  • Right-click to take out everything at once. Anything that doesn't fit drops at your feet.
  • The contents are decided the moment the mob dies. Opening a bag never re-rolls anything.
  • Items keep all their data: enchantments, custom names, lore, attributes and mod data.
  • No size limit.
  • Not locked to its owner. Trade it, give it away or keep it in a chest.
  • The tooltip doesn't list the contents. Open it to find out.
  • If the roll gave nothing, the bag is empty. Opening it shows a big red スカ ("miss") in the middle of the screen.
  • In Creative mode, opening a bag doesn't use it up.
  • Has an enchantment glint. It has no crafting recipe.

What Stays the Same

  • Experience drops normally, once per death.
  • If nobody damaged the mob, or no participant is online, the mob drops loot the vanilla way.
  • Mobs without a loot table keep their normal drops.
  • Items that are generated only once per death, such as a mob's carried inventory or items added by other mods' drop events, count as shared drops. By default they drop in the world as usual. You can set them to be copied into every bag instead.
  • Fake players used by machines and mob farms are not counted.
  • Damage from tamed pets is not counted for their owner.

Configuration

File: config/multiplayers_lootingbag-common.toml
Changes apply as soon as you save the file. No restart needed.

Option Values Description
MODE WHITE_LIST / BLACK_LIST WHITE_LIST: only mobs in LIST give Loot Bags.
BLACK_LIST: every mob except those in LIST gives Loot Bags.
LIST Entity IDs Vanilla and modded mobs are both supported. Default: minecraft:wither, minecraft:elder_guardian, minecraft:warden
SHARED_ITEMSTACK_MODE WORLD / DUPLICATE WORLD: shared drops fall into the world once.
DUPLICATE: shared drops are copied into every participant's bag.
COMMAND_MAX_NUMBER 1–100000 (default 1000) Upper limit for <number> in the command.

Command

/lootbag entity_death_loot <player> <entity id> <number>

Runs the same loot process as a real mob death, with the chosen player as the participant, and gives them <number> bags. Every bag comes from its own independent roll. Selectors such as @a work, and each selected player gets their own bags.

Example: /lootbag entity_death_loot @s minecraft:wither 5

/lootbag entity_death_loot <player> empty <number> gives empty Loot Bags.

Requires permission level 2 (operator).

Requirements

  • Minecraft 1.20.1
  • Forge 47 or later
  • Install on both the server and every client. Single player works too.

Loot Bag for Multiplayers は、モブとの戦闘に参加したプレイヤー全員に、それぞれ専用の報酬を用意するModです。対象モブが倒れると、参加したプレイヤーごとに個別にドロップ判定を行い、その結果を ルートバッグ として各プレイヤーのインベントリへ直接届けます。

ドロップの取り合いや、ボスのレアドロップを誰が持っていくかで揉めることはもうありません。

仕組み

  1. 参加者を記録:対象モブにダメージを与えたプレイヤーを、そのモブに記録します。矢などの投射物は、撃ったプレイヤーの攻撃として扱います。記録はモブと一緒に保存されるため、チャンクのアンロードやサーバー再起動をまたいでも消えません。
  2. プレイヤーごとに抽選:モブが倒れた時点でログインしている参加者それぞれに、完全に独立したドロップ判定を行います。
  3. すぐに配布:各参加者のインベントリへルートバッグを直接入れます。インベントリが満杯のときは、モブが倒れた場所にドロップします。

とどめを刺したのが誰かは関係ありません。炎や落下でモブが倒れても、ダメージを与えた全員にバッグが届きます。

独立したドロップ判定

各参加者の判定には、そのプレイヤー自身の状態が反映されます。

  • 本人の ドロップ増加(Looting) と 幸運(Luck)
  • Loot Tableの条件に使われる、本人の所持アイテムや装備
  • 乱数も別々です。30%のドロップなら、Aは当たり、Bは外れ、Cも当たり、ということが起こります
  • モブの装備品(ボスの剣など)のドロップ確率も、プレイヤーごとに判定します
  • KubeJS / LootJS やGlobal Loot ModifierによるLoot Tableの変更も、プレイヤーごとに評価します

ドロップ増加でバッグの数が増えることはありません。モブ1体の死亡につき、1人あたり最大1個です。

ルートバッグ

  • 持ち主とモブの名前が付きます。例:「Steveのウィザーのルートバッグ」。モブ名は各プレイヤーの言語設定で表示されます。
  • 右クリックで中身をすべて一度に取り出せます。入りきらない分は足元にドロップします。
  • 中身はモブが倒れた瞬間に確定します。開封時に再抽選はしません。
  • エンチャント、名前、説明文(Lore)、属性、Mod固有のデータなど、アイテムの情報はすべて保持されます。
  • 容量の上限はありません。
  • 持ち主以外も開封できます。他のプレイヤーに渡したり、チェストにしまったりできます。
  • ツールチップに中身は表示されません。開けてからのお楽しみです。
  • 判定の結果が何もなかった場合は空のバッグになり、開封すると画面中央に赤い大きな文字で スカ と表示されます。
  • クリエイティブモードでは、開封してもバッグは消費されません。
  • エンチャントの輝きが付いています。クラフトレシピはありません。

変わらないもの

  • 経験値は通常どおり、死亡ごとに1回ドロップします。
  • 誰もダメージを与えていない場合や、参加者が誰もログインしていない場合は、バニラどおりにドロップします。
  • Loot Tableを持たないモブは、通常のドロップのままです。
  • モブが持っていたインベントリの中身や、他Modがドロップイベントで追加したアイテムなど、死亡ごとに1回だけ生成されるものは 共有ドロップ として扱います。初期設定では通常どおりワールドにドロップします。設定で、全員のバッグへ複製する方式にも変更できます。
  • 機械やモブトラップが使う疑似プレイヤー(Fake Player)は参加者になりません。
  • テイムしたペットが与えたダメージは、飼い主の参加記録になりません。

設定

ファイル:config/multiplayers_lootingbag-common.toml
ファイルを保存するとすぐに反映されます。再起動は不要です。

項目 値 説明
MODE WHITE_LIST / BLACK_LIST WHITE_LIST:LISTに登録したモブだけがルートバッグの対象です。
BLACK_LIST:LISTに登録したモブ以外がすべて対象です。
LIST エンティティID バニラ・Mod追加のモブどちらも指定できます。初期値:minecraft:wither、minecraft:elder_guardian、minecraft:warden
SHARED_ITEMSTACK_MODE WORLD / DUPLICATE WORLD:共有ドロップをワールドへ1回だけドロップします。
DUPLICATE:共有ドロップを参加者全員のバッグへ複製します。
COMMAND_MAX_NUMBER 1〜100000(初期値1000) コマンドの <number> の上限です。

コマンド

/lootbag entity_death_loot <player> <entity id> <number>

指定したプレイヤーを参加者として、実際のモブ死亡時と同じドロップ処理を実行し、<number> 個のバッグを渡します。バッグは1個ずつ独立した判定で作られます。@a などのセレクターも使え、選ばれたプレイヤーそれぞれにバッグが配られます。

例:/lootbag entity_death_loot @s minecraft:wither 5

/lootbag entity_death_loot <player> empty <number> で空のルートバッグを渡します。

権限レベル2(OP)が必要です。

動作環境

  • Minecraft 1.20.1
  • Forge 47以降
  • サーバーとすべてのクライアントの両方に導入してください。シングルプレイでも動作します。

The Multiplayers LootingBag Team

profile avatar
  • 7
    Followers
  • 10
    Projects
  • 10.7K
    Downloads

More from Canata_Zer0View all