Topic category: Help with Minecraft modding (Java Edition)
I've been trying to get back into modding recently, and one part of my mod relies on killing specific entities while holding a specific item. I'm trying to just get my code to work where I kill an Elder Guardian while holding a totem, and the totem get replaced with a different item that "has the Elder Guardian's essence" or something like that. I got code similar to this to work earlier, I kill a zombie or skeleton with a custom sword and I get a special item, but I was using entity tags instead of registry names because tags encompass like 4-5 mobs, instead of just the one I want. Is there a way I can get this to work? Potentially even work better?
Drive link in the event the image won't load. https://drive.google.com/file/d/1SXrs7WaP3ntPe_pwKHWYx7f2hfwL97oF/view?…