mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Improve /entity, add entity equipment and item lore (#1238)
* Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Update Entitycmd.cs * Color fix * Update Entitycmd.cs * Update Entitycmd.cs * Entities list CustomName fix * Update Entity.cs * Update McClient.cs * Update Entity.cs * Update Entity.cs * Update Entitycmd.cs * Crash fixes * Update Entitycmd.cs * Update McClient.cs * Update Entitycmd.cs * Remove extra space * Space add * Update Item.cs * Update McClient.cs * Update Entitycmd.cs * Replace item slot if already set
This commit is contained in:
parent
9b8213eca5
commit
896cabb6ce
4 changed files with 129 additions and 24 deletions
|
|
@ -1877,6 +1877,11 @@ namespace MinecraftClient
|
|||
{
|
||||
if (entities.ContainsKey(entityid))
|
||||
{
|
||||
Entity entity = entities[entityid];
|
||||
if (entity.Equipment.ContainsKey(slot))
|
||||
entity.Equipment.Remove(slot);
|
||||
if (item != null)
|
||||
entity.Equipment[slot] = item;
|
||||
DispatchBotEvent(bot => bot.OnEntityEquipment(entities[entityid], slot, item));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue