Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Kyle

Replace vanilla's buried treasure search with a fast one to prevent crashes

OkTreasures

This plugin requires treasure-maps.enable: false in your paper-world.yml config !!!

Vanilla Minecraft has a bug where the buried treasure search is so slow that it can sometimes freeze your game. It also happens in multiplayer, if anyone opens a buried treasure search, the server can sometimes crash. Contrary to what the bug tracker says, as of Minecraft 1.20.1, this is not fixed.

This plugin fixes these types of crashes by replacing the vanilla buried treasure search with a custom, faster and simpler one: it just picks a random beach within reasonable distance and places the treasure there. Since this is mostly asynchronous, it won't cause lag.

Notes

  • Placing a treasure won't override player builds, it'll only place a treasure if the top block of the location is sand, and if there's a certain number of sand blocks below where it can be buried
  • OkTreasures does not work in non-vanilla worlds (e.g. worlds generated using plugins)
  • The plugin picks totally different treasure locations than vanilla Minecraft would. While you can still use /locate to find buried treasures (not recommended), you won't find any maps in shipwreck chests pointing to these
  • The map the plugin gives you looks different from vanilla maps

Image made with Bing Image Creator

Information

CategoryMiscellaneous
Published onAugust 19, 2023
LicenseMIT
Downloads42
Stars1
Watchers2

Pinned Versions

Members

Kyle

Kyle

Owner