Cuberite Forum
Enchantments API - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Enchantments API (/thread-1249.html)



Enchantments API - tonibm19 - 09-23-2013

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



RE: Enchantments API - NiLSPACE - 09-23-2013

http://www.mc-server.org/wiki/doku.php?id=api:cenchantments