summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Debuggers/Debuggers.lua
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-02 23:21:32 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-02 23:21:32 +0200
commit73f787feb328ffe349d803ca01363ba57178760b (patch)
treef3be3b285756e5d56aa602924dd4eee0db14735d /MCServer/Plugins/Debuggers/Debuggers.lua
parentShift + click doesn't "destroy" item enchantment (diff)
downloadcuberite-73f787feb328ffe349d803ca01363ba57178760b.tar
cuberite-73f787feb328ffe349d803ca01363ba57178760b.tar.gz
cuberite-73f787feb328ffe349d803ca01363ba57178760b.tar.bz2
cuberite-73f787feb328ffe349d803ca01363ba57178760b.tar.lz
cuberite-73f787feb328ffe349d803ca01363ba57178760b.tar.xz
cuberite-73f787feb328ffe349d803ca01363ba57178760b.tar.zst
cuberite-73f787feb328ffe349d803ca01363ba57178760b.zip
Diffstat (limited to 'MCServer/Plugins/Debuggers/Debuggers.lua')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua10
1 files changed, 9 insertions, 1 deletions
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);