This Add-on Development Kit(ADK) allows you to create add-ons without writing JSON! It is similar to Forge's MDK for Minecraft: Java Edition
ADK can be used in two ways, as a standalone or as a regolith filter. The difference between the two is the way you import ADK and how you export your add-on.
As a standalone, you will need to manually copy the files to your com.mojang
folder. As a regolith filter, you just need to set up your config.json
and regolith will do the rest.
Common Steps
- Install Visual Studio Build Tools
- Install CMake
- Install vcpkg and set up command line integration as described in the Vcpkg docs. Remember the location of vcpkg's
CMAKE_TOOLCHAIN_FILE
- Run
vcpkg install spdlog:x64-windows
Standalone
- Clone this repository
- Copy the contents of the
adk/data
folder to your project
Regolith Filter
- Install Regolith
- Run
regolith init
in your directory of choice - Run
regolith install adk
After you have installed ADK, you can start creating add-ons. Create a BP
and RP
folder in your project directory.
Create your manifest.json
like you would normally do for any add-on.
In the Main.cpp
file, edit the custom_namespace
to your liking. These will be used as your add-on's namespace.
The main files which you will be using is the Data.cpp
, Language.cpp
, Object.cpp
and Recipe.cpp
files.
What are these files?
Object.cpp
is where you will be adding your blocks and items.Data.cpp
is where you will be adding your textures to your blocks and items.Recipe.cpp
is where you will be adding your recipes.Language.cpp
is where you will be adding your translations.
See the files in the data folder for examples.
Standalone
- Run
compile-standalone.bat
to build your add-on
Regolith Filter
- Run
regolith run default
(or whichever profile you're using) to build your add-on
This project uses the following third party software: