This is a tiny plugin that adds the /getid
command to PowerNukkit.
It allows you to show the numeric universal item and block id, including the negative ids for that is assigned to new blocks.
Example usage:
- /getid bow
- /getid campfire
- /getid light_block
- /getid smoker
Permission:
- getid.cmd.use (default: true)
- Just do a normal
git clone https://github.com/PowerNukkit/getid-plugin.git
(or the URL of your own git repository) - Import the
pom.xml
file with your IDE, it should do the rest by itself
- Create a zip file containing only your
plugin.yml
file - Rename the zip file to change the extension to jar
- Create an empty folder anywhere, that will be your server folder.
Note: You don't need to place the PowerNukkit jar in the folder, your IDE will load it from the maven classpath. - Create a folder named
plugins
inside your server folder
Note: It is needed to bootstrap your plugin, your IDE will load your plugin classes from the classpath automatically, so it needs to have only theplugin.yml
file. - Move the jar file that contains only the
plugin.yml
to theplugins
folder - Create a new Application run configuration setting the working directory to the server folder and the main class to:
cn.nukkit.Nukkit
- Now you can run in debug mode. If you change the
plugin.yml
you will need to update the jar file that you've made.