From 73f787feb328ffe349d803ca01363ba57178760b Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 2 Jun 2013 21:21:32 +0000 Subject: Enchantments are now stored in Anvil world and in player inventory git-svn-id: http://mc-server.googlecode.com/svn/trunk@1541 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/Debuggers/Debuggers.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'MCServer') diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index fb2601470..7c20e90e6 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -594,8 +594,16 @@ function HandleTestWndCmd(a_Split, a_Player) end local Window = cLuaWindow(WindowType, WindowSizeX, WindowSizeY, "TestWnd"); + local Item2 = cItem(E_ITEM_DIAMOND_SWORD, 1, 0, "1=1"); + local Item3 = cItem(E_ITEM_DIAMOND_SHOVEL); + Item3.m_Enchantments:SetLevel(cEnchantments.enchUnbreaking, 4); + local Item4 = cItem(E_ITEM_DIAMOND_PICKAXE); + Item4.m_Enchantments:SetLevel(cEnchantments.enchUnbreaking, 5); + Item4.m_Enchantments:SetLevel(cEnchantments.enchEfficiency, 3); Window:SetSlot(a_Player, 0, cItem(E_ITEM_DIAMOND, 64)); - Window:SetSlot(a_Player, 1, cItem(E_ITEM_DIAMOND_SWORD, 1, 0, "1=1")); + Window:SetSlot(a_Player, 1, Item2); + Window:SetSlot(a_Player, 2, Item3); + Window:SetSlot(a_Player, 3, Item4); Window:SetOnClosing(OnClosing); Window:SetOnSlotChanged(OnSlotChanged); -- cgit v1.2.3