Opinionated template for an Amethyst Mod, will be the base mod used in all amethyst guides! Follow the steps below to build the mod
- Open
xmake.lua
and configure the mod options:
-- Mod Options
local mod_name = "Amethyst-Template" -- Replace with the name of your mod
-
Open
data/packs/RP/manifest.json
and replace the name, and generate the two new UUIDv4s here -
Open
.github/build.yml
and replace the mod name
env:
MOD_NAME: Amethyst-Template # Replace with your mod name
- Open
mod.json
and fill in all the mod options there too.
{
"meta": {
"name": "Amethyst-Template",
"version": "1.0.0",
"namespace": "amethyst_template",
"author": "FrederoxDev"
}
}
- Open
data/packs/RP/textures/item_texture.ts
and edit the project namespace to match themod.json
const projectNamespace = "amethyst_template";
- To generate a visual studio solution run the command:
xmake project -k vsxmake -m "release"
-
Open the
.sln
file in./vsxmake2022
-
To build your project, either press
Ctrl+Shift+B
in visual studio OR run thexmake
command -
To build your RP/BP run these commands
cd data
rgl watch
Any textures placed into the textures/items will automatically be included into an item_textures.json
file that is generated by data/packs/RP/textures/item_texture.ts
.
The icon identifier is determined by the file name, i.e. textures/items/example_item.png
will become amethyst_template:example_item