ProfessionsCommand

Pasted Nov 14, 2026, 3:25 PM1 file23 lines

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/zzgs5843bn058q7f
ProfessionsCommand
package net.mauwachtel.disable_professsions;

import com.mojang.brigadier.context.CommandContext;
import net.minecraft.client.Minecraft;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.Identifier;

public class ProfessionsCommand {
    public static int runDisable(CommandContext<CommandSourceStack> context, String profession) {
        context.getSource().sendSuccess(() -> Component.literal("disabled" + profession), false);
        return 0;
    }
    public static int runEnable(CommandContext<CommandSourceStack> context, String profession) {
        context.getSource().sendSuccess(() -> Component.literal("enabled" + profession), false);
        return 0;
    }
    public static int runError(CommandContext<CommandSourceStack> context) {
        context.getSource().sendSuccess(() -> Component.literal("error"), false);
        return 0;
    }
}

933 chars · codepastes.com