Skip to main content

Intro

Sunscreen is built as an API first plugin, meaning you can do everything the editor does + more, even better; the editor is made using the API only! Although the API is massive and flexible it can be quite overwhelming, if the docs aren’t sufficient I suggest looking through the source code.

Installation

Add the dependencies to your own project

Startup (Minestom only)

Minestom servers use Sunscreen as a library instead of a plugin, so initializing isn’t done automatically. The code in the codeblock below should be run before MinecraftServer#start() to properly load all of the required content.