Does anyone know if it is possible to make a mod which can check the players inventory for items or blocks? I'm trying to create an item that while in your inventory will make custom mobs hostile, but while you are not carrying it, they will be neutral. I've looked around google for a while and haven't been able to find anything. Any help will be appreciated.
Minecraft Modding Inventory Check?
Guest
If you're looking for something that already exist. I don't there's. But you can try coding that condition yourself. You try something similar to one of the mods in Hexxit where there's a certain block in the Nether where you try to mine it the Pigmen will get angry at you for doing it. But over all looking at it's just a condition like
If user carries this certain item then
Creeper and Skeleton agros and chase at certain range
Sky_Lancer