myLoot

myLoot

Mod

Instanced loot per player for a better looting experience on Multiplayer servers

Client and server AdventureDecorationManagementStorageUtilityWorld Generation

14.4k downloads
43 followers
Created2 years ago
Updated9 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

https://i.imgur.com/oGN5UNd.pnghttps://i.imgur.com/svaGO8D.png

https://i.imgur.com/2OI03Hl.pnghttps://i.imgur.com/a3x6uOm.pnghttps://i.imgur.com/tsdJHfs.pnghttps://i.imgur.com/l5I8gAy.png

https://i.imgur.com/dmNMnPm.png

https://i.imgur.com/zSsH7X4.gif

 

https://img.shields.io/static/v1?label=%20&message=other%20projects&color=4b5966&labelColor=658f79&logo=curseforge&logoColor=white&style=for-the-badge  https://tinyurl.com/spoorndiscordbadge  https://img.shields.io/github/stars/spoorn/SpoornPacks?color=4b5966&labelColor=658f79&label=github%20&logo=github&logoColor=white&style=for-the-badge  https://img.shields.io/github/issues-raw/spoorn/SpoornPacks?color=4b5966&labelColor=658f79&label=issues%20&logo=github&logoColor=white&style=for-the-badge

Description

myLoot replaces world-generated loot containers such as loot chests and barrels with a special myLoot container variant that has instanced loot per player.  This means each player can loot whatever they want out of any loot chest and other players will still have access to the original loot - providing a better looting experience!

No more logging onto a multiplayer server to find chunks within a 5000 block radius have already been looted by your friends.  Loot for all

myLoot is useful in singleplayer servers as well - you can visually see which loot chests you have already opened so you don't end up getting lost and re-looting areas

 

Features

All replacement works in modded structures as well as vanilla (dungeons, villages, strongholds, dimensions, etc.)

  • Replaces loot chests (works for double chests!)
  • Replaces loot barrels
  • Replaces chest Minecarts
  • Replaces Shulker Boxes
  • myLoot containers will change in appearance to the player if they have opened it.  This is client-side so other players will still see the unopened textures if they have not opened it.
  • myLoot containers will warn the player that breaking it can affect other players.  A player can still break myLoot containers by holding Sneak while breaking.  Note: breaking a myLoot container by default will only drop the instanced loot of the player who broke it (plus the loot container item).  This can be changed via the "dropBehavior" config to instead drop ALL players' loot
  • This should work with modded items in the myLoot containers as well and with modded loot containers
  • myLoot Chest is craftable with a regular Minecraft chest surrounded by enchanted apples (see images above)
  • myLoot Chest can be combined into a double chest
  • myLoot Chest Minecart is craftable with a myLoot chest and minecart
  • myLoot Shulker Box when broken will drop a special myLoot Shulker Box Item that persists instanced inventories, so players can still access their instanced loot from the shulker box when it is placed back down.  Essentially, it's a portable instanced shulker box!

 

 

Dependencies

This mod requires:

 

requires fabric

 

 

FAQ

1. How does inserters/extractors such as hoppers/pipes affect the myLoot containers?

Modifying a myLoot container's inventory before player opening - such as using hoppers to add/remove items - should not affect the player's instanced inventory.  The original rolled loot will persist so any player opening a myLoot container for the first time will still get the original loot.

Also, myLoot containers essentially have an invisible inventory that contains the original non-player instanced inventory.  Modifying that inventory via inserters/extractors such as hoppers/pipes will work, but when a player breaks the myLoot container, only additions to the original rolled loot will drop (plus the player's instanced inventory who broke the myLoot container if applicable).  This is to prevent mass duplication of loot (however duplication of the original loot one time is still possible... I haven't yet found a way to prevent this without being invasive i.e. I don't want to break any code, vanilla or modded, that has logic around a loot container's inventory so I can't just delete the original invisible inventory).

 

 

Credits

The mechanics of myLoot containers changing appearance when opened by a player, and the stylish glowing texture design are heavily inspired by the Forge Lootr mod - but everything else was originally made from scratch.  myLoot is not a direct port of Lootr, and features will be different.  An official port of Lootr to Fabric is in the works.  Please see https://github.com/spoorn/myLoot/issues/1

 

  

Need a Server?

https://bisecthosting.com/spoorn

External resources



Project members

spoorn

Owner


Technical information

License
LGPL-3.0-only
Client side
required
Server side
required
Project ID