Abdul

Make some changes:

Remove all food-related stuff

Add a feature:

When holding a mace it should show how much hearts of damage it would give (Only if you are falling)

Kodari AI
KodariOct 25 at 3:38 pm 3
  1. Remove the food-related features and content.

  2. Add a held-mace damage estimate that appears only while falling.

  1. Removed the food HUD, food-stat syncing, debug overlay, accessor, and their mixin/registration entries.

  2. Added a mace HUD readout in hearts while holding a main-hand mace during a valid smash fall. It accounts for fall distance, Density, attack cooldown, and critical hits; actual damage can vary with the target’s defenses and other target-specific effects.

Abdul

Add a key bind (toggle) for pearl catch How it works:

If it is toggled and you throw a pearl and have a windcharge in hotbar it should estimate the entire route of the enderpearl (its curved) and throw a windcharge after it to intersect the pearl to hit the pearl mid air (a windcharge moves straight)

Low Health Warning – Display a warning when health gets low. lower than 3hp

Also remake everything into 1 dashboard (you may only use the depncies mod menu)

Kodari AI
KodariNov 9 at 6:39 am 5

Plan: 1. Add the pearl-catch toggle and projectile interception logic. 2. Add the under-3-HP warning. 3. Consolidate controls into one dashboard, opened through Mod Menu. The dashboard framework has a separate runtime requirement, so I’ll keep the required screen dependency to the minimum needed.

  • Added Pearl Catch as a toggleable keybind. When enabled, it predicts the thrown pearl’s curved path and uses a hotbar wind charge toward a predicted intercept.

  • Added a red LOW HEALTH! warning below 3 HP.

  • Added one dashboard, available through Mod Menu and a keybind, with the automation toggles and live health/mace status. The existing in-game HUD overlays remain active.

The dashboard uses Mod Menu for access and includes owo-lib to build its screen; that UI dependency is required for custom screens. The keybinds are in Controls → PvP Assist.

Abdul

We are changing half this mod by adding new features This will no longer be pvp assist but Q Automation

  1. Remove the held mace damage
  2. Please cut down on the amount of dependcies if possible while keeping the dashboard

Here are the added features:

  1. You can set clots for these things via dashboard

A. Sword you can select which slot it comes to when you collect or craft a sword or got it by /give or (for multiplayer pvp servers) when you spawn in with a kit should sort (if you already have a sword it will still keep the sword which has the highest damage (if durability > 120) Repeat this multiple times for:

Golden Apples Mace Wind Charges Enderpearls Elytra rails tnt minecart crossbow bow flint and steel Since this list is long make it so it is under a spoiler

B: Likely death / totem alert If:[ lower than 2 hp, player in a 4 block radius (any Y level) holding a mace, elytra flyer withing 16 blocks holding any spear] then it should give a red effect at the screen (same as when near world border) all of this via dashboard

C: You can toggle these via dashboard: If you are flying an elytra you can toggle these warnings Terrain : Blocks within 3 blocks of you Air Speed: Too slow Stall: Elytra possibility of stopping mid air Nose: player more than 70 degrees looking downwards All of these warning can individually be toggled and will show next to the hotbar

D: Give all players in a 32 block radius glowing effect, the color of glowing is based on their health use gradients of red to green (red high health, green low health)

E: Shows you an inventory like of items inside a shulker when you hover

F: Auto Tool Selection – Selects tools based on the block you're mining.

G: Detects when you are AFK (not doing anything for 30 seconds) and if player has shield hold up shield towards every entity so they cant hit you and will hit the shield the client will automatically select the shield with the best durability or by its unbreaking enchantment OR if the player has a totem it should offhand the totem and hold the shield in mainhand if the totem pops it should immediately cycle to another totem if possible, the mod will prioritize totems more than a shield

H: Portal Calculator – Calculates corresponding Nether portal coordinates. when looking towards a nether portal block it should (over the block) display the coordinates the portal links to (multiply by 8 if in nether divide by 8 if in overworld cuz overworld 8 times bigger than nether)

I: Add a search button to the inventory even in survival if you search for it it will highlight that item in green you do not have to search the entire thing

J: Projectile Predictor Predicts the landing position of arrows, tridents and wind charges. Displays a trajectory indicator if it is going to land on the player

Kodari AI
KodariNov 9 at 7:34 am 11
  1. Rename the mod identity to Q Automation and remove the mace HUD.

  2. Reduce dependencies while preserving the dashboard.

  3. Add the requested inventory, alerts, elytra, AFK, portal, and projectile features, plus dashboard settings.

Rebranded the visible mod and dashboard as Q Automation and removed the held-mace damage HUD.

  • Item sorting: The collapsed slot-assignment section lets you cycle each requested item between Off and hotbar slots 1–9. Sorting is enabled by default and keeps the strongest available sword with more than 120 durability when possible.

  • Alerts: The dashboard controls the under-3-HP warning, red danger alerts below 2 HP or near the specified mace/spear threats, and each of the four elytra warnings.

  • Other features: Added health-colored player glow within 32 blocks, shulker contents preview, mining auto-tool selection, 30-second AFK shield/totem protection, portal coordinate display, inventory search with green highlights, and arrow/trident/wind-charge landing predictions.

  • Dashboard and dependencies: Settings are saved locally. Mod Menu integration was removed to reduce bundled dependencies; owo-lib remains necessary for the dashboard and search screen. Open the dashboard using Controls → Q Automation → Open Q Automation Dashboard after binding it.

Abdul

Make the keybinds toggles also in the dashboard

Kodari AI
KodariNov 9 at 7:35 am 1

The keybind-controlled toggles are already in the dashboard: Auto TNT Cart, X-Bow Cart, Elytra-Mace, and Pearl Catch. The Dashboard keybind only opens the screen, so it isn’t a toggle.

Abdul

No I mean in the dashboard you should be able to customize the keybinds

Kodari AI
KodariNov 9 at 7:37 am 1

Plan:

  1. Add editable controls for each Q Automation keybind in the dashboard.

  2. Support rebinding and clearing a binding with standard Minecraft key inputs, then save the changes.

Added keybind customization to the dashboard: choose Set key… and press a key to rebind, or Clear to unbind. Changes are applied immediately and saved in Minecraft’s options.

Abdul

Some changes:

When hovering over a shulker box and shulker enabled it should not show the vanilla dropdown of the shulker Whn restarting the client it should save all changes made like you enable then close mc and reopen then the changes are undone Make low health show when less than 7hp

Kodari AI
KodariNov 9 at 9:25 am 3
  1. Suppress the vanilla shulker contents tooltip when the custom preview is enabled.

  2. Persist dashboard/settings changes across client restarts.

  3. Change the low-health threshold to below 7 HP.

  • Shulker hover preview now suppresses the vanilla contents tooltip while the custom preview is enabled.

  • Dashboard settings and item-slot assignments save immediately. The four automation toggles now persist across restarts; keybinds continue to save through Minecraft’s options.

  • The low-health warning now appears below 7 HP. The separate danger alert threshold remains below 2 HP.

Abdul

Make it lower than 10 hp warning both in outline and dashboard

Kodari AI
KodariNov 9 at 9:29 am 1

I’ll update the warning threshold and its dashboard label/status to below 10 HP.

Updated the on-screen warning and dashboard threshold/status to trigger below 10 HP.

Abdul

Uploaded instructions for beginner mode add this to the dashboard all of these show in the same format as the elytra things make also screen outlines (same as low health but use colors as instructed)and you can individually toggle each beginner mode

For the auto slot organiser you can set for slot 1, 2, 3, 4, 5, 6, 7, 8, 9

Add some more warnings to Elytra flight BANK ANGLE SINK RATE OVERSPEED (40+ blocks) WIND SHEAR Change the remaining warnings to one word i.e TERRAIN STALL AIRSPEED

Kodari AI
KodariNov 10 at 6:35 am 1

Plan:

  1. Find the uploaded beginner-mode instructions and current warning/outline settings.

  2. Add beginner warnings in the elytra-style dashboard format, with individual toggles and matching colored outlines.

  3. Expand organizer slot choices to 1–9 and add the four named elytra warnings, renaming existing warning labels.

[Generation stopped]

Abdul
📎 1 file 3,526 chars
📄
pasted-code-1794292555233.txt
txt 105 lines
▶
Beginner Mode – Q Automation
Purpose: Beginner Mode acts as an in-game PvP coach. It gives players step-by-step instructions above the EXP bar to help them perform advanced PvP techniques.
General rules
- Beginner Mode is OFF by default.
- Each technique has an independent toggle.
- Instructions appear above the EXP bar using Minecraft's Action Bar.
- Never perform actions automatically. The player must follow the instructions.
- Only show the current instruction.
- Change instructions immediately when conditions change.
- Clear instructions when no valid target or opportunity exists.
Rainbow instruction colors
Use a different rainbow color for each instruction in a sequence.
RED

ORANGE

YELLOW

GREEN

BLUE

INDIGO

VIOLET


Each technique starts at red and progresses through the rainbow. If there are more than seven instructions, repeat the rainbow.

1. Mace
Target detection:
- Enemy within 7 blocks vertically (Y-axis).
- Enemy within 3 blocks horizontally (X/Z axes).
Condition	Action Bar instruction	Color
Target detected	SWAP TO MACE	Red
Mace equipped	PREPARE TO SMASH	Orange
Enemy within 3 blocks	SMASH	Yellow

Clear the instruction when the target leaves the detection range.
2. Elytra Mace
Target detection: Enemy within 15 blocks.
Condition	Action Bar instruction	Color
Target detected	EQUIP ELYTRA	Red
Elytra equipped	SWAP TO MACE	Orange
Mace ready	TAKE FLIGHT	Yellow
Flying towards target	DIVE	Green
Close to target	AIM DOWN	Blue
Within 3 blocks during dive	SMASH	Indigo

3. Spear Mace
Target detection: Enemy within 15 blocks.
Condition	Action Bar instruction	Color
Target detected	SWAP TO SPEAR	Red
Spear equipped	PREPARE LUNGE	Orange
Ready to launch	LUNGE	Yellow
Approaching target	KEEP LUNGING	Green
Within 4 blocks	SWAP TO MACE	Blue
Mace equipped	AIM AT TARGET	Indigo
Ready to attack	SMASH	Violet

4. X Bow Cart
Target detection: Enemy within 15 blocks.
Condition	Action Bar instruction	Color
Target detected	SELECT CROSSBOW	Red
Crossbow equipped	LOAD CROSSBOW	Orange
Crossbow loaded	AIM AT TARGET	Yellow
Target aligned	FIRE	Green
Projectile fired	PREPARE RAIL	Blue
Rail available	PLACE RAIL	Indigo
Rail placed	SELECT TNT MINECART	Violet
Ready	PLACE TNT MINECART	Red

5. Insta Cart
Target detection: Enemy within 15 blocks.
Condition	Action Bar instruction	Color
Target detected	SELECT FLAME BOW	Red
Bow equipped	AIM AT TARGET	Orange
Target aligned	FIRE	Yellow
Projectile fired	PREPARE RAIL	Green
Ready to place	PLACE RAIL	Blue
Rail placed	SELECT TNT MINECART	Indigo
Ready	PLACE TNT MINECART	Violet

6. Crystal
Target detection: Enemy within 12 blocks.
Condition	Action Bar instruction	Color
Target detected	SELECT OBSIDIAN	Red
Obsidian equipped	FIND PLACEMENT SPOT	Orange
Valid location found	PLACE OBSIDIAN	Yellow
Obsidian placed	SELECT END CRYSTAL	Green
Crystal equipped	AIM AT OBSIDIAN	Blue
Valid placement	PLACE CRYSTAL	Indigo
Crystal placed	BREAK CRYSTAL	Violet


Final implementation requirements
1. Every instruction must have its own rainbow color.
2. The rainbow sequence resets when starting a new technique.
3. Never display multiple instructions simultaneously.
4. Do not advance to the next instruction until its condition is met.
5. If a player manually completes a step, recognize it and advance.
6. If a player makes a mistake, show the appropriate previous instruction again.
7. If the target disappears, reset the instruction sequence.
8. Do not automate attacks, aiming, movement, item switching, or placement.
Beginner Mode is an instruction system, not an automation system.
Kodari AI
KodariNov 10 at 6:53 am 12
  • Add Beginner Mode’s master and per-technique dashboard toggles, with one rainbow-colored instruction and matching screen border at a time.

  • Add the four individually toggleable elytra warnings and shorten every elytra warning label to one word.

  • Keep the organizer’s existing Off + slots 1–9 cycling.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
30 2,535
src/client/java/com/kodari/pvpassist/client/PvPAssistClient.java
package com.kodari.pvpassist.client;

import com.mojang.blaze3d.platform.InputConstants;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.fabricmc.fabric.api.event.player.UseBlockCallback;
import net.minecraft.client.KeyMapping;
import net.minecraft.resources.Identifier;

public class PvPAssistClient implements ClientModInitializer {
	private static final KeyMapping.Category CATEGORY = KeyMapping.Category.register(
		Identifier.fromNamespaceAndPath("pvpassist", "main")
	);
	private static final KeyMapping AUTO_TNT_CART_KEY = createKey("key.pvpassist.auto_tnt_cart");
	private static final KeyMapping XBOW_CART_KEY = createKey("key.pvpassist.xbow_cart");
	private static final KeyMapping ELYTRA_MACE_KEY = createKey("key.pvpassist.elytra_mace");
	private static final KeyMapping PEARL_CATCH_KEY = createKey("key.pvpassist.pearl_catch");
	private static final KeyMapping DASHBOARD_KEY = createKey("key.pvpassist.dashboard");

	public static boolean autoTntCartEnabled;
	public static boolean xbowCartEnabled;
	public static boolean elytraMaceEnabled;
	public static boolean pearlCatchEnabled;

	public static KeyMapping keyMapping(String id) {
		return switch (id) {
			case "auto_tnt_cart" -> AUTO_TNT_CART_KEY;
			case "xbow_cart" -> XBOW_CART_KEY;
			case "elytra_mace" -> ELYTRA_MACE_KEY;
			case "pearl_catch" -> PEARL_CATCH_KEY;
			case "dashboard" -> DASHBOARD_KEY;
			default -> throw new IllegalArgumentException("Unknown key mapping: " + id);
		};
	}

	@Override
	public void onInitializeClient() {
		KeyMappingHelper.registerKeyMapping(AUTO_TNT_CART_KEY);
		KeyMappingHelper.registerKeyMapping(XBOW_CART_KEY);
		KeyMappingHelper.registerKeyMapping(ELYTRA_MACE_KEY);
		KeyMappingHelper.registerKeyMapping(PEARL_CATCH_KEY);
		KeyMappingHelper.registerKeyMapping(DASHBOARD_KEY);
		QAutomationConfig.load();
		autoTntCartEnabled = QAutomationConfig.autoTntCartEnabled;
		xbowCartEnabled = QAutomationConfig.xbowCartEnabled;
		elytraMaceEnabled = QAutomationConfig.elytraMaceEnabled;
		pearlCatchEnabled = QAutomationConfig.pearlCatchEnabled;
		UseBlockCallback.EVENT.register(CartAutomation::onUseBlock);
		PearlCatch.register();
		InventorySearchLayer.register();
		StatusHud.register();
		DangerWarningHud.register();
		ElytraWarningHud.register();
		PlayerHealthOverlay.register();
		PotionDurationHud.register();
		ProjectileLandingOverlay.register();
		PortalCoordinatesOverlay.register();

		ClientTickEvents.END_CLIENT_TICK.register(client -> {
			if (AUTO_TNT_CART_KEY.consumeClick()) {
				autoTntCartEnabled = !autoTntCartEnabled;
					QAutomationConfig.autoTntCartEnabled = autoTntCartEnabled;
					QAutomationConfig.save();
			}
			if (XBOW_CART_KEY.consumeClick()) {
				xbowCartEnabled = !xbowCartEnabled;
					QAutomationConfig.xbowCartEnabled = xbowCartEnabled;
					QAutomationConfig.save();
			}
			if (ELYTRA_MACE_KEY.consumeClick()) {
				elytraMaceEnabled = !elytraMaceEnabled;
					QAutomationConfig.elytraMaceEnabled = elytraMaceEnabled;
					QAutomationConfig.save();
			}
				if (PEARL_CATCH_KEY.consumeClick()) {
					pearlCatchEnabled = !pearlCatchEnabled;
						QAutomationConfig.pearlCatchEnabled = pearlCatchEnabled;
						QAutomationConfig.save();
				}
				if (DASHBOARD_KEY.consumeClick()) {
					client.gui.setScreen(new DashboardScreen(null));
				}
			CartAutomation.tick(client);
			CombatAutomation.tick(client);
			PearlCatch.tick(client);
			InventoryAutomation.tick(client);
			AfkProtection.tick(client);
		});
	}

	private static KeyMapping createKey(String translationKey) {
		return new KeyMapping(
			translationKey,
			InputConstants.UNKNOWN.getType(),
			InputConstants.UNKNOWN.getValue(),
			CATEGORY
		);
	}
}