You can now allow players to enchant items with an anvil. To do so, just set “enchantable” to "true"!
You can now also calculate fortune drops by default! To do so, set “doFortuneDrops” to “true” under "block". You can also respect silk touch with your custom blocks — set “doSilkTouchDrops” to “true” under "block".
Code (YAML):
# in myItem.yml
enchantable
: true
block:
doFortuneDrops
: true
doSilkTouchDrops
: true