assasin060875
๐Ÿ“Ž 1 file 2,958 chars
๐Ÿ“„
pasted-code-1772100262891.txt
txt 156 lines
โ–ถ
Create a complete, production-ready Minecraft Paper plugin for version 1.21.5.

PLUGIN NAME:
ScytheRitual

LANGUAGE:
Java (compatible with Java 21)

BUILD SYSTEM:
Maven

MAIN FEATURES:

1. CUSTOM WEAPON
- Weapon name: Scythe
- Base item: Netherite Axe
- Custom model data supported (resource pack will supply texture)
- Display name: ยง6Scythe
- Lore: ยง7A forbidden ritual weapon

ENCHANTMENTS:
- Sharpness 255
- Unbreaking 255
- Mending 255

PASSIVE EFFECTS WHEN HELD:
- Strength X
- Speed V

ATTACK COOLDOWN:
Reduce cooldown ONLY for this custom axe (do not affect other netherite axes).

---

2. RITUAL CRAFTING SYSTEM

The Scythe is NOT crafted in a crafting table.

Instead, players perform a ritual:

RITUAL STRUCTURE (on ground):
- 64 Diamond Blocks (top-right & bottom-left)
- Netherite Sword (top-right)
- Totem of Undying (bottom-left)
- Mace in center

RITUAL BEHAVIOR:
- When ritual begins, items are consumed.
- BossBar appears showing:
  - Coordinates
  - Dimension
- Ritual lasts 10 minutes.
- After 10 minutes, the Scythe drops.

RITUAL RULES:
โœ” Only one Scythe may exist at a time.
โœ” If a Scythe exists, ritual cannot start.
โœ” If Scythe is obtained via admin command, ritual is disabled.
โœ” If Scythe is lost or destroyed, ritual can be performed again.

---

3. ITEM RESTRICTIONS

- Mace cannot be crafted by players.
- Netherite sword can be crafted normally.
- Ritual consumes required items.

---

4. COMMAND SYSTEM

Base command: /scythe

SUBCOMMANDS:

/scythe give
Permission: operator only
Gives the Scythe to the player.

/scythe recipe
Permission: everyone
Opens a INVENTORY GUI showing the ritual layout.

/scythe owner
Permission: everyone
Shows who currently owns the Scythe (online or offline).

/scythe ritual
Starts the ritual at player location if requirements are met.

---

5. RECIPE INVENTORY GUI

Create a 3x3 crafting-style INVENTORY GUI showing:

[ Diamond Block ] [   ] [ Netherite Sword ]
[       ]       [ Mace ] [       ]
[ Totem ]       [   ]   [ Diamond Block ]

Title: Scythe Ritual

---

6. CRAFTING BOOK SUPPORT

The Scythe should appear in the recipe book as a custom recipe display.

---

7. DATA STORAGE

Store scythe owner and existence status using persistent storage (YAML or PersistentDataContainer).

---

8. PROJECT STRUCTURE

Provide:

- Full Maven project
- plugin.yml
- Main class
- Command handler
- Ritual manager
- BossBar manager
- INVENTORY GUI class
- Item utility class

---

9. PERFORMANCE & SAFETY

โœ” No memory leaks
โœ” No console errors
โœ” Null-safe checks
โœ” Compatible with multiplayer servers
โœ” Prevent duplication exploits

---

10. OUTPUT REQUIREMENTS

Return:

โœ” Complete source code
โœ” plugin.yml
โœ” pom.xml
โœ” Build instructions
โœ” How to install
โœ” How to add resource pack model

Ensure the plugin compiles with:
Java 21
Paper 1.21.5
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code