-
Notifications
You must be signed in to change notification settings - Fork 1
2mal3 edited this page Sep 13, 2021
·
6 revisions
Using the API you can create new natural disasters, modify existing ones to some extent and change settings of the datapack.
This and the following pages explain how to do that by creating your own plugin.
In any case, you should first register your plugin.
In order for your plugin to appear in the datapack menu under the plugins, you need to register it.
You do this by executing a function with the following command from the function tag: 2mal3:nadi/api/register/plugins. After that you only have to replace the data in the command (in the <>) with your own and after a restart the plugin should be displayed.
data modify storage 2mal3:nadi plugins append value {name: "<plugin name>", description: "<description>", author: "<your name>"}