@Mixin(Keyboard.class)
public class MixinKeyPressed {
@Inject(at = @At("HEAD"), method = "onKey")
private void onKey(long window, int key, int scancode, int action, int modifiers, CallbackInfo info) {
if (key == InputUtil.GLFW_KEY_G && action == 0 && MinecraftClient.getInstance().player != null){
MinecraftClient.getInstance().getNetworkHandler().sendChatCommand("clan home home");
}
if (key == InputUtil.GLFW_KEY_SHIFT && action == 0) { // Хуй его знает какой нужен action, проверь 1, 2
//цыкл
}
}
}