#I am a beginner in Fabric mod development and I want to ask some questions about the Fabric API.

4 messages · Page 1 of 1 (latest)

neat abyss
#

I need help on how to use the Fabric API to simulate keyboard inputs in the game. For example, I want to simulate pressing the spacebar within 2 seconds, pressing it twice within 1 second, with a 60ms delay for key press and an 80ms delay for key release. Is there anyone experienced in mod development who can teach me?fabric

obtuse scaffold
#

net.minecraft.client.Keyboard.onKey(long, int, int, int, int) would be a good starting point

waxen viper
#

!!cheats