Custom Blueprints is a Minecraft plugin that can run on Spigot servers. The plugin is written in the Haxe programming language, using the Haxe Minecraft API. The plugin can be downloaded from SpigotMC, along with the Haxe Minecraft plugin loader, which is required for this plugin to work on a Spigot server.
The following video showcases the plugin's features in-game:
This GitHub hosts the source code of the plugin for learning purposes. The project is by no means neatly structured, but it is fairly small and shows you how to do various things with the API.
It uses the event system (PlayerInteractEvent), creates and reads a YML config file, modifies inventories and blocks in the world, stores persistant data inside items and works with the coordinate system extensively. Furthermore the plugin uses the API's debugger and it uses the shared memory system to allow other plugins to cancel blueprints based on player or coordinates (see code examples). Lastly the project shows what compilation flags can be used in a Haxe Minecraft plugin (see build.hxml
).
Feel free to browse the source code, ask questions and copy it if you like.
This repository was not created with the intention to receive contribution but suggestions are always welcome.
Join my Discord server to chat, ask questions or make suggestions.
This project is free to use as stated by the license. If you would like to support this project you can donate to the developer.
GNU Lesser General Public License (LGPL) (see LICENSE.txt).