How to get the item the player is holding?
-
@vol1n if (mc.thePlayer.getHeldItem().getItem() instanceof ItemMap) {}
-
module.on("update", function() { if (mc.thePlayer.getHeldItem().getItem() instanceof ItemMap) { commandManager.executeCommands(".toggle trigger off") } })
Any idea why this didn't work?
-
@idk-my-name Also, is there any documentation on the mc.thePlayer class?
-