Pixelmon Force Spawn Legendary minor plugin

Hello, I don’t really know how to make a plugin but i was either looking for tips or wanting to request a pretty simple item command binding plugin. I want the plugin to consume the item on use, so for example i want 5 diamond blocks to be used to force spawn a legendary possibly returning the 5 diamond blocks if the spawn is unsuccessful (although that is mostly secondary) . Hope someone can help!

Join Reforged’s discord, http://reforged.gg/ , for more information on customizing spawns and the /dolegendary spawn command.