can you code a plugin of a pirate hat, like give it a pirate texture, that is a netherite helmet, that I can give myself with a command, and it gives 20 hearts, and dolphins grace, and when you have it, it also gives you a trident that has riptide 5, called the Pirate King Trident, and the hat also has the name Pirate King Hat, the trident also has a chance of summoning a lightning strike when you get someone
Sure. There aren’t any projects in this workspace yet. Should this be for a new Minecraft plugin or an existing project you’ll add to the workspace?
Also, did you mean the trident has a chance to summon lightning when it hits another player or mob?
new minecraft plugin, and also hits another player
I’ve started a new Minecraft plugin project. The /pirateking command will give you the tagged hat and trident; the hat will provide 20 hearts total and Dolphin’s Grace while worn, and the trident will have a 20% chance to summon lightning when it hits another player or mob.
I’ll build the kit with tagged items, reversible health changes, and lightning protection. I’ll also add a resource-pack item texture; the equipped helmet will retain its vanilla appearance.Implemented the Pirate King kit with tagged items, configurable lightning chance, reversible hat benefits, and inventory-overflow handling.
The resource-pack folder contains the custom hat item texture for Minecraft 1.20.2–1.20.4. Zip its contents and install it as a client resource pack; the equipped helmet still uses vanilla armor visuals.
Vanilla Riptide tridents cannot normally be thrown, so the lightning effect applies if the tagged trident hits as a projectile.
The plugin is implemented and builds successfully.
Use /pirateking to receive the Pirate King Hat and Pirate King Trident. Wearing the tagged hat gives you 20 hearts total and Dolphin’s Grace; the tagged trident has a configurable chance to summon lightning when it hits another player or mob.
The resource-pack folder contains the custom hat item texture. Clients need to install the pack to see it, and the helmet’s equipped armor appearance remains vanilla. Note that Riptide normally prevents tridents from being thrown, so lightning applies when the tagged trident hits as a projectile.
No files in this session