← Назад к ресурсам

JsScripts

Adds JavaScript scripts directly on the server!

Modrinth game-mechanics utility

Описание

**JavaScript support directly on the server for your Minecraft events.** ## 🎉 JavaScript right in Minecraft! A highly flexible mod for script-based events. ![Test Script](https://cdn.modrinth.com/data/cached_images/7e37cd0df03d6e5cf9f26a181b9b1e420694b689.gif) ## ✨ A handy JS editor! Coding directly in Minecraft. ![Editor JS](https://cdn.modrinth.com/data/cached_images/456e69a9727e942f5ab7d48968b3ed6395f52f19.png) ### Simple code: ``` // Trigger an event when a player joins the server Events.onJoin(playerName => { // Send a "Hello World!" title to the player's screen Player.sendTitle(playerName, "Hello World!", "", 10, 70, 20); }); ``` **ScriptAPI** documentation is available [here](https://github.com/TheTimStage/JsScripts/blob/main/README.md). Thanks to **Froska729** for creating the mod icons!❤️