diff options
author | Luis <[email protected]> | 2023-11-11 21:09:48 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-11 15:09:48 -0500 |
commit | 63e77b531da93e74fe08851aa8f3892984fdec44 (patch) | |
tree | b38bcf4ed351ccfabc1d8ee5f3a360d04c4d1e40 /patches/server/0019-Add-command-line-option-to-load-extra-plugin-jars-no.patch | |
parent | 6675d13b3199b348c8b40c533c48e783eb74b363 (diff) | |
download | Paper-63e77b531da93e74fe08851aa8f3892984fdec44.tar.gz Paper-63e77b531da93e74fe08851aa8f3892984fdec44.zip |
Add Enchantment cost API (#9856)
Cost is a property of individual enchantments, and is used by vanilla in combination with environmental aspects like tool enchantability and bookshelf count to determine the final cost of an enchantment as shown in an enchanting table.
Having access to the base cost of an enchantment using these vanilla methods can allow plugin developers to determine the "value" of an enchantment, and use it in custom logic where needed. I came across this recently when trying to assign an economic value to enchantments during tool repairing, and noticed these values don't seem to be obtainable under the current API.
Diffstat (limited to 'patches/server/0019-Add-command-line-option-to-load-extra-plugin-jars-no.patch')
0 files changed, 0 insertions, 0 deletions