Skip to main content

MegaBlock Survivors Setup

The MegaBlock Survivors setup flow is built around Nightbreak-managed content packages, with optional model support through FreeMinecraftModels.

Requirements

  • Java 21
  • A Paper/Spigot-compatible server on the 1.21 API line

Optional integrations:

  • FreeMinecraftModels for custom mob and weapon models (soft dependency)

What MegaBlock Survivors Creates

On startup, MegaBlock Survivors initializes or uses these paths:

plugins/MegaBlockSurvivors/config.yml
plugins/MegaBlockSurvivors/content_packages/
plugins/MegaBlockSurvivors/imports/
plugins/MegaBlockSurvivors/worlds/
plugins/MegaBlockSurvivors/leaderboard.yml
plugins/MegaBlockSurvivors/version.txt

Configuration

config.yml contains:

KeyTypeDefaultDescription
setupDonebooleanfalseTracks whether the first-time setup guidance has been completed

First-Time Setup Warning

When setupDone is false, the plugin shows a first-time setup warning to players with the megablocksurvivors.* permission when they join. This guides them through the initial content download.

  1. Install MegaBlock Survivors and start the server once.
  2. Link your Nightbreak account with /nightbreaklogin <token>.
  3. Run /mbs downloadall to download all accessible MegaBlock Survivors content packages into plugins/MegaBlockSurvivors/imports.
  4. Run /mbs setup any time you want to browse, enable, disable, or update individual packages.
  5. Run /mbs reload after downloading content to load the new maps and resources.

/nightbreaklogin <token> is part of the shared Nightbreak/MagmaCore account flow, not a command declared in MegaBlock Survivors' plugin.yml.

Content Packages

Content packages are configured via YAML files in the content_packages/ folder. Each package can define:

FieldTypeDescription
isEnabledbooleanWhether the package is active
namestringDisplay name of the package
descriptionstring listDescription lines
downloadLinkstringManual download URL
versionintegerPackage version number
nightbreakSlugstringNightbreak content slug for automatic downloads
schematicFilesstring listSchematic files included in the package
worldFoldersstring listWorld folders included
worldContainerFoldersstring listWorld container folders included
modelFoldersstring listModel folders for FreeMinecraftModels
markerFileNamestringMarker file for detecting if the package is installed
categoryenumFREE, PREMIUM, or RESOURCES
toggleablebooleanWhether the package can be toggled on/off

Version Update Notifications

When the plugin detects a version update (by comparing against version.txt), it notifies the console and all online OPs about the version change.