diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-02 23:21:32 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-02 23:21:32 +0200 |
commit | 73f787feb328ffe349d803ca01363ba57178760b (patch) | |
tree | f3be3b285756e5d56aa602924dd4eee0db14735d /MCServer/Plugins/Debuggers/Debuggers.lua | |
parent | Shift + click doesn't "destroy" item enchantment (diff) | |
download | cuberite-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.lua | 10 |
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);
|