Jump to content

Continue breaking blocks in background


TrqpzDevelopment

Recommended Posts

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);

 

Link to comment
Share on other sites

1 hour ago, TrqpzDevelopment said:

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. 

Does the pause screen come up when you minimize Minecraft if so just use the F3 settings to turn off pause opening when Minecraft loses focus.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.