[SPIGOT-7514] Add "Enchant Roll" API Created: 03/Nov/23  Updated: 25/Dec/24  Resolved: 08/Nov/23

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: ItsSchatten Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Version: 3926-Spigot-dba3cdc-ffb1319
Guidelines Read: Yes

 Description   

Issue created mainly in reference to https://www.spigotmc.org/threads/how-do-i-enchant-an-item-like-enchantment-table-does-e-g-by-command-without-an-enchanting-table.624722/#post-4660209

This feature would allow someone to roll for enchantments using the same system as the enchanting table.

Methods of importance are located in the EnchantmentHelper class specifically enchantItem(RandomSource, n.m.w.i.ItemStack, int, boolean).



 Comments   
Comment by Y2K_ [ 04/Nov/23 ]

Opened a PR for this

Generated at Sat Dec 13 20:46:08 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.