NewCraftRank SitesA free website and storeMake yours ›
AshlarFree server software built on Paper, with DDoS and backdoor protection See Ashlar ›CommunityAsk questions, share builds and find people to play with Join the forum ›
Resources / Plugins / OkTreasures

OkTreasures

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

PluginsFree1.20 – 1.21
by Kyle · listed from Hangar
Download ›

Direct download from Hangar · 454 downloads

What it does

OkTreasures is a plugin for Paper / Spigot servers, made by Kyle. Replace vanilla's buried treasure search with a fast one to prevent crashes.

It supports Minecraft 1.20 – 1.21. It has been downloaded 454 times on Hangar. The last update came out on Feb 4, 2024.

Supported versions

1.211.20

Release history

OkTreasures has had 8 releases on Hangar. None of them came out in the past year. The newest is 1.0.2-beta, released on Feb 3, 2024. It is made for Minecraft 1.20 – 1.21.1. It runs on Paper. The download is 57 KB.

VersionReleasedMinecraftType
1.0.2-betaFeb 3, 20241.20 – 1.21.1Beta
1.0.1-betaJan 29, 20241.20 – 1.20.4Beta
1.0.0-betaJan 27, 20241.20 – 1.20.4Beta
0.1.9-alphaJan 20, 20241.20 – 1.20.4Alpha
0.1.5-updated-alphaJan 18, 20241.20 – 1.20.4Alpha

Commands

The commands named on the Hangar page of OkTreasures:

/locate/spreadplayers
Description from the author on Hangar

OkTreasures

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

Please report bugs to the support Discord. or the GitHub

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.

Limitations

  • OkTreasures does not work in worlds that are not the default, vanilla generation (e.g. worlds generated using plugins or datapacks)
  • The plugin picks totally different treasure locations than vanilla Minecraft would. While you can still use /locate to find vanilla buried treasures (not recommended), you won't find any OkTreasures maps in shipwreck chests pointing to these
  • The map the plugin gives you looks different from vanilla maps
  • There is a known issue where the plugin may stop working for up to a few minutes (worst case scenario) if you run /spreadplayers spanning a radius of over 32 thousand blocks, because the plugin will be busy finding beaches in all the newly visited regions. This depends on hardware, and your mileage may vary

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
  • This plugin operates in 8192 x 8192 regions in the world, keeping the beaches it finds in each region and neighbors (radius=1) in memory. The plugin takes nearly no CPU power, unless: 1. Someone crossed a region boundary 2. Someone logged in 3. A shipwreck appeared within someone's view distance

\*This plugin uses only the Paper API, so it's likely it will be compatible with future Minecraft versions, even if they're not listed here

Image made with Bing Image Creator

Written by Kyle. Read it with pictures on Hangar.

How to install OkTreasures

  1. Make sure your server runs Paper and Spigot on Minecraft 1.20 – 1.21.

  2. Download the .jar file from Hangar and put it in the plugins folder of your server.

  3. Restart the server. Avoid /reload, many plugins do not handle it well.

  4. Type /plugins in the console: OkTreasures should be listed in green. Its config files are created in the plugins folder on the first start.

Full guide: How to install plugins on a Minecraft server

Compatibility

Minecraft versions
1.21, 1.20
Runs on
Paper, Spigot
Edition
Java
Needs
Nothing else
License
MIT
Price
Free
Upkeep
Actively updated (Nov 12, 2026)

Questions

Does OkTreasures work on Minecraft 26.x?

Not yet. The newest version it supports is Minecraft 1.21.

Is OkTreasures free?

Yes. OkTreasures is free to download from Hangar.

Which server software does OkTreasures run on?

OkTreasures runs on Paper and Spigot servers.

Is OkTreasures still updated?

Yes. The last update came out in the past day.

Reviews

–★★★★★
0 reviews
50
40
30
20
10

Log in to leave a review.