Cuberite Forum

Full Version: Enchantments API
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I looked at the documentation in xoft's site but I don't understand how to use it.
Can anyone explain me how to enchant an item?
I tried with this but it doesn't work.
Code:
function HandleEnchantCommand( Split, Player )
    Player:GetInventory():GetEquippedItem()SetLevel( 3, 1 )
    return true
end