Change Vanilla Advancements Button Function Minecraft - 1.12.2


New Member
May 12, 2022
Of course, I’m a little puzzled by creating another mod now, I want to change the function of the button.
Just if you use mod No-Advancements and you probably know this mod FTB Quests
I now want to make the vanilla advancements button open the interface of quests from the fashion FTB Quests, but all I can do is:
import com.feed_the_beast.ftbquests.client.ClientQuestFile;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiIngameMenu;
import net.minecraft.client.gui.advancements.GuiScreenAdvancements;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.client.event.GuiOpenEvent;
import net.minecraftforge.client.event.GuiScreenEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@Mod.EventBusSubscriber(value={Side.CLIENT}, modid="cbfa")
public final class ClientRegisterEvents {
public static void DisableOpeningAdvancementsGui(GuiOpenEvent event) {
if (event.getGui() instanceof GuiScreenAdvancements) {

public static void OpenQuestGui(GuiScreenEvent.ActionPerformedEvent.Post event) {
if (event.getGui() instanceof GuiIngameMenu && event.getButton().field_146127_k == 5) {
And somehow it doesn’t work...

Can someone help to configure build.gradle for version 1.12.2 to include FTB Quests, Lib, itemfilters, JEI?