rexzeo
๐Ÿ“Ž 1 file 1,579 chars
๐Ÿ“„
pasted-code-1782409361859.txt
txt 63 lines
โ–ถ
Act as an Expert Paper 1.21.11 Minecraft Plugin Developer.

Create a custom legendary weapon called GOD SPEAR.

IMPORTANT:
I already have a resource pack with a custom 3D spear model.
The plugin must use that existing model.

Item Details:
- Material: Nethirite spear
- CustomModelData: 1002
- Display Name: ยงbยงlGOD SPEAR
- Unbreakable: true

Enchantments:
- Lunge III
- Mending I
- Unbreaking III

The weapon must use CustomModelData 1002 so that my resource pack displays the custom God Spear model and texture automatically.

SPECIAL ABILITY:

Name: Warden Sonic Boom

Activation:
- Shift + Right Click while holding the God Spear.

Ability Effects:
- Fires a Warden Sonic Boom attack in the direction the player is looking.
- Use the actual Warden sonic boom particles and sound.
- Damage all entities hit by the beam.
- Range: 20 blocks.
- Ignore walls just like the real Warden Sonic Boom.
- Knockback targets slightly.
- Do not damage the user.

Cooldown:
- 10 seconds.
- Show cooldown message in action bar.

Requirements:
- Works only with the God Spear (CustomModelData 1002).
- Normal trident mechanics must still work.
- The spear can still be thrown like a vanilla trident.
- Do not disable vanilla trident behavior.
- Ability only activates on Shift + Right Click.

Commands:
- /godspear

The command gives the God Spear with:
- CustomModelData 1002
- Lunge III
- Mending I
- Unbreaking III

Generate:
- Complete source code
- plugin.yml
- All listeners
- Cooldown system
- Paper 1.21.11 compatible code
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code