From ecb69bbdfd5b808a2a9cdbd5ac80135442df4241 Mon Sep 17 00:00:00 2001 From: ORelio Date: Sun, 16 May 2021 11:26:48 +0200 Subject: [PATCH] Add CreativeDelete in ChatBot API (#1590) --- MinecraftClient/ChatBot.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/MinecraftClient/ChatBot.cs b/MinecraftClient/ChatBot.cs index 59c10a76..551c2e7d 100644 --- a/MinecraftClient/ChatBot.cs +++ b/MinecraftClient/ChatBot.cs @@ -1181,6 +1181,18 @@ namespace MinecraftClient return Handler.DoCreativeGive(slot, itemType, count, nbt); } + /// + /// Use Creative Mode to delete items from the regular/survival Player Inventory + /// + /// (obviously) requires to be in creative mode + /// + /// Inventory slot to clear + /// TRUE if item cleared successfully + protected bool CreativeDelete(int slot) + { + return CreativeGive(slot, ItemType.Null, 0, null); + } + /// /// Plays animation (Player arm swing) ///