An example plugin that demonstrates how to register custom items, blocks, and entities in AllayMC.
This plugin showcases:
- Custom Item Registration - A custom edible item (
cse:fish_cake) with golden apple effects - Custom Block Registration - A custom block (
cse:test_block) with custom geometry and collision shape - Creative Item Registration - Adding custom items to the creative inventory
- Resource Pack Integration - Textures and models for custom content
- Java 21 or higher
- AllayMC server (API version 0.23.0-SNAPSHOT or compatible)
src/main/java/org/allaymc/customstuffexample/
├── CustomStuffExample.java # Main plugin class
└── item/
└── ItemFishCakeStack.java # Custom item implementation
src/main/resources/assets/resource_pack/
├── manifest.json # Resource pack manifest
├── blocks.json # Block definitions
├── models/blocks/ # Block geometry files
└── textures/ # Item and block textures
├── items/
└── blocks/
./gradlew shadowJarThe compiled .jar file will be in build/libs. Copy it to your AllayMC server's plugins directory.
Run a local AllayMC server with the plugin:
./gradlew runServerFor more information about the AllayMC API, refer to the official documentation.
This project is licensed under the MIT License - see the LICENSE file for details.