1.3 Building and Importing

For Amberite a2.0

 

To build a behaviour (scripting) plugin, following external tools will be required:

Makefiles - To run different commands

sed - To modify output files for some workarounds

clang - To compile C++ to LLVM IR

llc - To compile LLVM IR to RISCV ASM

To build the plugin navigate into your plugin's "src" directory and run "make full".

As of right now, to include a plugin in a world, go to the spliced "worlds" directory, find your world which should include the plugin

and add the name of the plugin and the version (e.g. spliced.default:1) to the PLUGINS file

Assembling the plugin from the "src/out.txt" file will be done automatically when loading into the given world.

The assembler will create an out.bin for the program and a mem.bin file for static allocations inside the plugin's ".bin" directory.