Mile Karađorđe

Create a Revive Pearl plugin for Minecraft Paper 1.21.11.

Command: "/reviveitempearl <playername>"

When I execute "/reviveitempearl adm1rp", give me one custom aqua-blue Ender Pearl linked to "adm1rp".

When I throw the Revive Pearl, it travels normally. Once it lands, the specified player is teleported to the pearl's exact landing location, while I stay where I am.

Requirements:

  • Only custom Revive Pearls trigger this effect; normal Ender Pearls remain unchanged.
  • Use PersistentDataContainer to identify the custom item and its target.
  • The target must be online, and the landing location must be safe.
  • Prevent duplicate teleports and item exploits.
  • Restrict the command to authorized players.
  • Provide the complete, working plugin for Paper 1.21.11.
Kodari AI
KodariNov 7 at 9:27 am 1
Created Revive PearlPlugins
Delegated to Revive Pearl Running
Build a complete Paper 1.21.11 plugin named Revive Pearl implementing the user's exact requirements. Command `/reviveitempearl <playername>` gives command executor one custom aqua-blue Ender Pearl linked to the named player. Throwing that custom pearl travels normally; when it lands, teleport the designated target (must still be online) to the pearl's exact landing location, while thrower remains in place. Normal pearls unchanged. Identify custom item with PersistentDataContainer (custom marker and target UUID/name); restrict command to authorized players (permission node such as revivepearl.give, default op, explicit permission in plugin.yml). Prevent duplicate teleports and item exploits (consume custom item when thrown, robust PDC identification on item/projectile, ensure each projectile handled once, prevent vanilla thrower teleport and pearl item duplication; clean pending state). Validate safe landing location: ensure destination is in same world and valid/safe player bounding area (solid safe floor, enough clear space, no hazardous blocks/liquids/fire, avoid suffocation); reject with message rather than unsafe teleport. On impact, use the projectile's actual landing location, do not replace it with thrower's location. Handle online target lookup and clear user feedback. Build against Paper API 1.21.11 and make complete metadata/configuration as appropriate. Before editing, inspect project structure and existing files. Deliver feature code only; do not add tests or attempt a build. Ensure commands and permissions registered correctly and implementation handles projectile hit/collision events safely.

I’ve started the Paper 1.21.11 Revive Pearl plugin, including the authorized command, custom item identification, safe landing checks, and duplicate/exploit prevention. I’ll compile it once the implementation is finished.

Report from 1 project
Revive PearlCompleted
TaskBuild a complete Paper 1.21.11 plugin named Revive Pearl implementing the user's exact requirements. Command `/reviveitempearl <playername>` gives command executor one custom aqua-blue Ender Pearl lin...
  • Create the permission-protected command and persist the target on the pearl.

  • Intercept custom pearl impacts, validate the exact destination, and prevent vanilla teleportation.Created Revive Pearl with /reviveitempearl <playername>, the revivepearl.give permission, and safe-landing checks. Custom pearls teleport their linked player without teleporting the thrower; normal pearls are unchanged.

No build or tests were run.

Kodari AI
KodariNov 7 at 9:27 am 1
Compiled Revive PearlSucceeded

Revive Pearl is complete and compiled successfully for Paper 1.21.11.

Use /reviveitempearl <playername> to get a custom aqua-blue pearl linked to an online player. You need the revivepearl.give permission (granted to operators by default). Normal Ender Pearls are unaffected.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code