Instanced loot chests for Minecraft Fabric
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
All replacement works in modded structures as well as vanilla (dungeons, villages, strongholds, dimensions, etc.)
This mod requires:
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).
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