The EnchantWithLevelsFunction class in @minecraft/server.
Class in @minecraft/server
Extends LootItemFunction
import { EnchantWithLevelsFunction } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”levels
Section titled “levels”read-only
readonly levels: NumberRange;Types
treasure
Section titled “treasure”read-only
readonly treasure: boolean;Inherited
Section titled “Inherited”From LootItemFunction: conditions