Skip to content

Source code of a Minecraft plugin written in Haxe. The plugin allows players to create blueprints of built structures.

License

Notifications You must be signed in to change notification settings

imfi-jz/CustomBlueprints

Repository files navigation

CustomBlueprints bar

Custom Blueprints

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.

Showcase

The following video showcases the plugin's features in-game: Showcase video thumbnail

Purpose

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.

Contributions

This repository was not created with the intention to receive contribution but suggestions are always welcome.

Contact

Join my Discord server to chat, ask questions or make suggestions.

QR code to join the Discord

Support

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.

QR code to donate

License

GNU Lesser General Public License (LGPL) (see LICENSE.txt).

CustomBlueprints bar