Skip to content

About

An example of a custom enchant using Paper's registry API

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Custom Enchant Example

This plugin makes an enchant called hello which can be applied to pickaxes and will send the player a "hello" message when they break a block with the pick
It is intended as an example of Paper's 1.21+ enchantment registry system

When making your own enchant plugin, remember to put your bootstrapper into the paper-plugin.yml

The enchantment can be applied to a held pickaxe using the following command:
/enchant @s customenchantexample:hello

or in code using item.addEnchantment

Paper has a tutorial on registries at the link below as well as javadocs if you need more info:
https://docs.papermc.io/paper/dev/registries
https://jd.papermc.io/paper/1.21.1/io/papermc/paper/registry/package-summary.html

About

An example of a custom enchant using Paper's registry API

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages