This is a template for a Spout plugin.
It compiles, and adds some example content:
- There is an item
example_stuff:example_green_screen_paintthat is crafted from 1 green dye - There is a block
example_stuff:example_green_screen_blockthat is crafted from any wool and the green screen paint - When a player looks at a green screen block, they receive a chat message telling them so.
If you want a blank template that contains no content, see here.
To make this template into your own plugin, you should:
- Make a new project by clicking Use this template on the top-right
- Replace the plugin name in
settings.gradle.kts - Replace the group and description in
gradle.properties - Replace the plugin name and website in
src/main/resource/paper-plugin.yml - Rename the
com.example.spoutexamplepluginpackage - Rename the
ExamplePluginandExamplePluginBootstrapclasses
(and updatepaper-plugin.yml) - Replace the plugin name in
src/main/resource/data_pack/pack.mcmeta - Replace the existing content in
src/main/resources/data_packandsrc/main/resources/resource_pack
with your own content (and update the namespaces inpaper-plugin.yml)
(you can read how to add your own blocks and items on the wiki) - Replace the existing code in
ExamplePluginListenerwith your own code - Replace the text in this
README.md
(you may keep the download/installation instructions below, or modify them as you like)
./gradlew jarto build the plugin JAR./gradlew downloadServerto download the Spout server JAR (needed for below)./gradlew runServerto spin up a Spout server with the plugin
Download the latest release from the Releases on the right, or a development version from Actions on the top (click a version, and scroll down to Artifacts).
Place the .jar file into the plugins folder.
Requires Spout.