// EnchantmentType represents a specific type of enchantment // This is typically used to identify enchantments on items
// Example of working with enchantment types functiondemonstrateEnchantmentType() { // EnchantmentType is usually obtained from the EnchantmentTypes registry // but for demonstration, we show how it would be used
// Example properties that an EnchantmentType would have: constenchantmentExample = { id:"minecraft:sharpness", maxLevel:5, };
// EnchantmentType would be used in contexts like: // - Checking what enchantments are on an item // - Adding enchantments to items // - Comparing enchantment types
returnenchantmentExample; }
// Usage example constenchantmentInfo = demonstrateEnchantmentType();
Contains information on a type of enchantment.
Example: createEnchantmentType.ts