{"repo":"customrealms/runtime","free":true,"listed":false,"github":"https://github.com/customrealms/runtime","clone":"git clone https://github.com/customrealms/runtime.git","description":"A JavaScript runtime for Minecraft server plugins","language":"Java","stars":23,"topics":["minecraft","javascript","bukkit","server","gaming"],"license":"MIT","category":"game-templates","readme_excerpt":"runtime This is a Bukkit plugin, written in Java, that can execute CustomRealms plugins that are written in JavaScript. This project implements a JavaScript runtime for running CustomRealms plugins on a Minecraft server. If you're just trying to build a Minecraft plugin using JavaScript, check out github.com/customrealms/core. How it works When this plugin is run on a Bukkit-compatible Minecraft server, the plugin launches a V8 JavaScript runtime. Then, it fills that runtime with several globals that allow the JavaScript code to interact with the Minecraft game. Then, finally, it executes the JavaScript code for the CustomRealms plugin. JavaScript runtime globals The JavaScript runtime is populated with several globals. The most basic are console.log , setTimeout , and a few other related ones. However, the most interesting are related to Minecraft itself. A few notable globals that are specific to CustomRealms are Java.resolve , BukkitEvents , and BukkitCommands . The full declaration file for JavaScript globals in CustomRealms is found here. How does this project relate to customrealms/core? This is a Java project that allows you to run JavaScript plugins on a Minecraft server. It implements some bare-bones JavaScript functions, but that's all. On the other hand, customrealms/core is a JavaScript library that picks up where this project leaves off, to make it much easier to build Minecraft plugins. It basically just provides some developer-friendly utilities. You can create","default_branch":null,"files":null,"tree":[],"storefront":"/r/customrealms","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/customrealms/runtime/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}