Paper: Lootables auto-replenish for filled chests

Created on 18 Apr 2020  路  5Comments  路  Source: PaperMC/Paper

Currently, the loottables of chests are only replenished with the "auto-replenish: true" feature if the chests have been completely looted.
However, it turns out that players are very selective when it comes to looting. Nobody has to give away space and some also put their trash in the chests.
It would be very cool if the contents of the chest could simply be overwritten after a player has opened it for the first time.

    lootables:
      auto-replenish: true
      restrict-player-reloot: true
      reset-seed-on-fill: true
      max-refills: -1
      refresh-min: 12h
      refresh-max: 2d

Most helpful comment

Mhh I don't really care if the items are deleted or added, the result is the same.
No, at the moment chests that are not completely emptied are completely ignored. Since most of the chests are affected, in reality chests are rarely refilled. For this reason I don't think it makes sense to leave this small but effective change in an otherwise very well thought-out feature to a plugin.
I have tested this on version 1.15.2 build 185.

All 5 comments

I feel like this would be better left to a plugin, which I included events for.

This is asking to make it a destructive replenish, instead of additive.

It should be adding new items onto the existing.
This is the case right? And you rather it just clear then add?

Mhh I don't really care if the items are deleted or added, the result is the same.
No, at the moment chests that are not completely emptied are completely ignored. Since most of the chests are affected, in reality chests are rarely refilled. For this reason I don't think it makes sense to leave this small but effective change in an otherwise very well thought-out feature to a plugin.
I have tested this on version 1.15.2 build 185.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Maybe a per-world config would work here? either add stuff to the chest when replenished, replace contents with new roll of the loot table, or do nothing unless the chest is empty.

The problem still exists and I would love to use the suggested feature :)

Was this page helpful?
0 / 5 - 0 ratings