So I'm building a game for an event in about a month or so and I'm having different kits being given by NPCs (I'm new to event/game making so I'm doing the best I can lol if there's a better way to do this let me know), and the /clear command used to ensure inventories are cleared before giving the kit they choose when they right-click on an NPC does not clear their armor slots nor offhand, so I have compensated by doing a lot of different /clear commands for every item in the kits (ex: /npc cmd add -o minecraft:clear @s iron_axe, /npc cmd add -o minecraft:clear @s crossbow, and so on) which seems to be working so far.
However, when they first right-click the NPC it spams opped users with about 15 messages of "No items were found on player [ing]." Is there a way to stop these commands from being sent when the clear command is used? When like 10 players are right-clicking these NPCs it is extremely spamm-y and I've tried a million commands and don't know if it's possible.
I've also never asked a forum question before so if I messed up somewhere tell me <3
Do you have any ideas regarding removing the clear command? I keep messing around with it and I think I might be out of luck
– spacecs Nov 17 '20 at 07:29