so I have a entity and I made it so when I click on it with a item it adds it to the inventory such as a sword would go to slot 9 and helmet slot 10 but when the visual for the mob is not changing to show the sword or the helmet until I put something into the inventory via the gui here is my code