Hello,
I'm new in forge and I'm programming a mod that mades the player breaking down blocks and it works if my minecraft is opened, but I want the mod doing this if minecraft is minimized too.
Here is the code for breaking down blocks:
KeyBinding bind = FMLClientHandler.instance().getClient().gameSettings.keyBindAttack;
KeyBinding.setKeyBindState(bind.getKeyCode(), true);