Repository navigation
WorldAPI 2.0.0
WorldAPI goes public: MIT-licensed, on Modrinth and Hangar, with releases made by hand from GitHub Actions.
- Pick your database. SQLite stays the default and needs no setup. PostgreSQL, MySQL, and MariaDB work too: set the new
databasesection inconfig.yml. An existingworldapi.dbkeeps working with no data lost. - Find things nearby with
GET /worlds/{world}/search: the nearest blocks of some types in loaded chunks, or the nearest biome. Block search always needs a token, since it would work as an x-ray. - Recipes with
GET /recipes: what makes an item, and what uses it. - The console log with
GET /server/logs, for admin tokens, with tokens blanked out. - Restart with a countdown with
POST /server/restart: it warns players in chat, saves, and stops the server;DELETEcalls it off. Something must start the server again, such as Docker鈥檚 restart policy. - Clear entities in bulk with
DELETE /worlds/{world}/entities: by type and area, sparing players, named mobs, and pets, with a dry run. - Find lag faster:
GET /worlds/{world}/chunks?sort=entitiesputs the busiest chunks first, andGET /server/performancenames each world鈥檚 most common entity types. - A world鈥檚 time now says how many ticks are left until night and whether beds work.
- Advancements name their parent, so the list of unfinished ones reads as what to do next.
- New
limits:maxBlockSearchRadius,maxBiomeSearchRadius,maxEntityRemoval,consoleLines. Older configs load as they are.
No field was renamed or removed, so 1.x clients keep working.