myLoot

Instanced loot per player for a better looting experience. Loot for all

File Details

myloot-2.1.3-1.18

  • R
  • Jun 27, 2022
  • 224.66 KB
  • 14.4K
  • 1.18.2+3
  • Fabric

File Name

myloot-2.1.3-1.18.jar

Supported Versions

  • 1.18-Snapshot
  • 1.18.2
  • 1.18.1
  • 1.18

Curse Maven Snippet

Fabric

modImplementation "curse.maven:myloot-582459:3850786"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Greatly improved performance of myLoot.  server TPS should be higher now.  See below for technical details:

 

 

Figured out the performance issue from
https://github.com/spoorn/myLoot/issues/17.

 

The performance hit came from during loot container replacement when we
try to set the new block state via serverWorld.setBlockState(). It
would trigger updates to neighbors which may not yet be chunk loaded.
To fix:

1. We cache chunks loaded, rather than use vanilla's deprecated
isChunkLoaded()
2. We check whether the neighboring chunks have been loaded before
trying the replacement, deferring to subsequent ticks if they haven't
yet been loaded

 

This will help improve the server TPS as the server thread should now be
more free, rather than force loading neighboring chunks due to myLoot
replacement. This does not fix other mods causing chunk loading to chug
however, but increased TPS is great