Originally, I was using MCreator to make my mod and I still am, but there's an issue. MCreator doesn't really let you do too many advanced things as a simplified application. It does have it's own IDE though for coding and I'm wondering how to code a procedure to damage items in an NPC's inventory and I feel like I'd have better luck asking the folks who mod with Java rather than the folks who use an application that dumbs it all down. The NPC is a robot dog and he needs maintenance to work, so the player has to craft parts and install them into the dog. How do I go about coding damage to the component when the dog takes damage?