{"id":13717092,"url":"https://github.com/Protonull/Extenstom","last_synced_at":"2025-05-07T06:31:52.546Z","repository":{"id":55525013,"uuid":"366897373","full_name":"Protonull/Extenstom","owner":"Protonull","description":"Barebones Microtus server","archived":false,"fork":false,"pushed_at":"2025-03-22T16:41:33.000Z","size":235,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T20:30:02.462Z","etag":null,"topics":["microtus","microtus-implementation","microtus-server","minecraft","minecraft-server","minestom","minestom-implementation","minestom-server"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Protonull.png","metadata":{"files":{"readme":".github/README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-05-13T01:17:30.000Z","updated_at":"2025-03-22T16:41:36.000Z","dependencies_parsed_at":"2024-01-14T22:03:36.072Z","dependency_job_id":"898a051f-4412-4574-9175-c6a8c0b48f09","html_url":"https://github.com/Protonull/Extenstom","commit_stats":null,"previous_names":["protonull/extenstom"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protonull%2FExtenstom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protonull%2FExtenstom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protonull%2FExtenstom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protonull%2FExtenstom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Protonull","download_url":"https://codeload.github.com/Protonull/Extenstom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826898,"owners_count":21810200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["microtus","microtus-implementation","microtus-server","minecraft","minecraft-server","minestom","minestom-implementation","minestom-server"],"created_at":"2024-08-03T00:01:17.832Z","updated_at":"2025-05-07T06:31:52.539Z","avatar_url":"https://github.com/Protonull.png","language":"Java","funding_links":[],"categories":["Implementations"],"sub_categories":[],"readme":"# Extenstom\n\n[![GitHub](https://img.shields.io/github/license/Protonull/Extenstom?style=flat-square\u0026color=b2204c)](https://github.com/Protonull/Extenstom/blob/master/LICENCE.txt)\n[![GitHub Repo stars](https://img.shields.io/github/stars/Protonull/Extenstom?style=flat-square)](https://github.com/Protonull/Extenstom/stargazers)\n\nExtenstom is an ***EXTREMELY*** barebones implementation of [Microtus](https://github.com/OneLiteFeatherNET/Microtus)\nthat defers any and all custom behaviour to extensions.\n\n## Install\n\nYou can either use the latest build [here](https://github.com/Protonull/Extenstom/releases/tag/latest) or you can\ncompile it yourself with JDK 21 by doing:\n```shell\ngit clone https://github.com/Protonull/Extenstom.git\ncd Extenstom\n./gradlew build\n```\nThe resulting jar will be located at: `dist/Extenstom-\u003cVERSION\u003e.jar`\n\n## Usage\n\nYou'll need Java 21 or above to run Extenstom. You need only execute it like so:\n```shell\njava -jar Extenstom-\u003cVERSION\u003e.jar\n```\n\nYou can also set the hostname and port values like so (otherwise they'll default to `localhost` and `25565` respectively):\n```shell\njava -jar -Dextenstom.host=\"localhost\" -Dextenstom.port=25565 Extenstom-\u003cVERSION\u003e.jar\n```\n\n## Extending\n\nAny and all custom behaviour MUST be handled by [extensions](https://wiki.microtus.dev/extension-system/extensions).\n\n```java\npackage example.extension;\n\nimport net.minestom.server.MinecraftServer;\nimport net.minestom.server.coordinate.Pos;\nimport net.minestom.server.entity.Player;\nimport net.minestom.server.event.player.AsyncPlayerConfigurationEvent;\nimport net.minestom.server.extensions.Extension;\nimport net.minestom.server.extras.bungee.BungeeCordProxy;\nimport net.minestom.server.instance.InstanceContainer;\nimport net.minestom.server.instance.block.Block;\n\npublic class ExampleExtension extends Extension {\n    // This method should be used for things that ought to be done as soon as possible.\n    @Override\n    public void preInitialize() {\n        MinecraftServer.setBrandName(\"BestServerEverMC\");\n    }\n\n    // This method is for other things that occur prior to server start.\n    @Override\n    public void initialize() {\n        BungeeCordProxy.enable();\n    }\n\n    // This method is for anything you want to do after the server has started.\n    // This is based on the \"Your first server\" wiki page: https://wiki.microtus.dev/getting-started/your-first-server\n    @Override\n    public void postInitialize() {\n        // Create a new instance\n        final InstanceContainer instanceContainer = MinecraftServer.getInstanceManager().createInstanceContainer();\n\n        // Set the ChunkGenerator\n        instanceContainer.setGenerator((unit) -\u003e {\n            unit.modifier().fillHeight(0, 0, Block.BEDROCK);\n            unit.modifier().fillHeight(1, 39, Block.DIRT);\n            unit.modifier().fillHeight(40, 40, Block.GRASS_BLOCK);\n        });\n\n        // Listen for player logins and put them in the instance\n        MinecraftServer.getGlobalEventHandler().addListener(AsyncPlayerConfigurationEvent.class, (event) -\u003e {\n            final Player player = event.getPlayer();\n            event.setSpawningInstance(instanceContainer);\n            player.setRespawnPoint(new Pos(0, 42, 0));\n        });\n    }\n\n    // This method is called when your extension is disabled, like during shutdown\n    @Override\n    public void terminate() {\n\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FProtonull%2FExtenstom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FProtonull%2FExtenstom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FProtonull%2FExtenstom/lists"}