Create a complete Minecraft Paper plugin called "RitualPlugin" for Paper 1.21.11 (Java 21, Maven or Gradle, Paper API only, no NMS). Provide the full project: build file, plugin.yml (with api-version 1.21), main class, command class with tab completion, and all supporting classes. Code must compile without errors.
## Concept
An admin-run Ritual event. Admins register items, pick a ritual block location, set a timer, and start. The items float and glow above the block until the timer ends, then drop on the ground, glowing, so players can race to grab them.
## Commands (permission: ritual.admin, default op)
- /ritual add: adds the item in the admin's main hand to the ritual item list (clone with amount; reject air).
- /ritual place set: sets the ritual location to the block the admin is looking at (ray trace, max 5 blocks) or their feet if none.
- /ritual time set
KodariOct 31 at 10:56 am 3
RitualPlugin
A comprehensive admin-run ritual event plugin for Paper 1.21. Admins register items, set a ritual block location, configure a timer, and start the event. Items float and glow above the block using ItemDisplay entities with rotation and bobbing animations. The plugin broadcasts start/end messages with coordinates, shows a locator bar waypoint, displays a boss bar countdown with reminders, and drops items at the end with a 30-second glow. Player pickups are tracked via PersistentDataContainer, triggering chat broadcasts and red glow effects. Data persists across restarts, with edge-case handling for server restarts, chunk unloads, and item despawns.
I’ll create the Maven project, plugin configuration, command and tab completion, ritual lifecycle manager, pickup listener, and time/message utilities. The locator-bar waypoint is replaced with a live action-bar location indicator for compatibility with the requested API-only setup.
Created the complete RitualPlugin project with the Maven build, plugin/config files, admin command and tab completion, ritual manager, pickup listener, and time parser.
The plugin persists ritual settings and resumes active events after a restart. It uses an action-bar location indicator instead of a locator-bar waypoint, and glowing ritual drops are protected from hoppers and item despawning.
To build and install: click Compile in Kodari (on phone: ⋮ → Compile Project), click Compile in the window, then download the jar and place it in the Paper server’s plugins/ folder. Restart the server to load it.
Kodari can make mistakes. Review important code before using.