Hussain

Make a 26.3 fabric client mod which helps with pvp

Features: *Give The mod ability to move the players cursor (i.e if the player (during X-bow cart) places a flint and steel while looking only at that block (vertically) and it cannot place the rail (else it will replace the fire) it will change the players angle to aim properly) Give it the power to reverse a little bit if you are TOO close to the cart (X-bow cart)

Players can set up a hotkey (normally not binded and normally toggled off) for these features (A hotkey to toggle I mean):

Auto TNT cart (flame bow) (Only if Auto TNT cart flame bow is toggled): necessities: 1 rail in hot bar 1 tnt minecart in hotbar 1 bow in hotbar (enchanted with flame), How it works: Player shoots the bow and the client automatically places a rail and a tnt minecart with perfect timing to perform an instacart X-Bow Cart (Only if X-bow cart is toggled): necessities in hotbar: 1 loaded crossbow, 1 rail, 1 cart, flint and steel How it works: Player place flint and steel and the client immediately places 1 rail, 1 tnt minecart and shoots the crossbow with perfect timing Elytra-mace: Necessities: 1 worn elytra, 1 chestplate in hotbar, 1 mace in hotbar, How it works: Player Gains height and toggles elytra mace mode on via hotkey then looks at the target when the target is just within reach (The player should guide the elytra) the client swaps to chestplate and smashes with the mace Spear-chaining: Necessities: 1 wind charge in hot bar, 1 lunge spear in hotbar, How it works: The player gains height (optionally), looks at the target, and toggles spear-chaining mode via hotkey. Then it will keep attribute swap lunging towards the target until one of this is met [The player is out of saturation and cannot lunge anymore] or [The player is within 4 blocks of the target]

Kodari AI
KodariOct 20 at 2:39 pm 7
PvpAssistSuite
A Fabric 26.3 client mod enhancing PvP with four toggleable hotkey-driven features. Auto TNT Cart automates flame bow shots with rail and TNT minecart placement for instacarts. X-Bow Cart places rail, TNT minecart, and fires a loaded crossbow with perfect timing, adjusting player angle for flint and steel placement. Elytra-mace swaps chestplate and mace for aerial smashes. Spear-chaining repeatedly lunges with attribute swaps until saturation depletes or within 4 blocks. Each feature requires specific hotbar items and toggles via configurable hotkeys, defaulting to unbound and off.
  1. Create the 26.3 Fabric project scaffold and unbound, off-by-default mode toggles.

  2. Add the automatic TNT-cart and X-Bow cart sequences.

  3. Add Elytra-mace and spear-chaining behavior.

Created the client-only 26.3 Fabric mod. All four modes start off and their hotkeys are unbound; assign them in Options → Controls.

  • Auto TNT Cart: Detects a shot from a Flame bow, then selects and places a rail and TNT minecart.

  • X-Bow Cart: On a flint-and-steel block use, finds a nearby rail support without placing over the fire, adjusts aim, places the rail and TNT minecart, then fires a loaded crossbow. It briefly backs up if too close.

  • Elytra-Mace: While descending with an Elytra equipped, attacks the living entity under the crosshair when in reach; swaps a hotbar chestplate into the chest slot and swings the mace.

  • Spear-Chaining: Requires a wind charge and a Lunge-enchanted spear in the hotbar. With a living target under the crosshair, it performs spear stabs until the target is within four blocks or hunger/saturation runs out. Height gain remains manual.

No new items were added; these modes use vanilla survival items.

Hussain

The elytra mace and spear chaining doesn't work Elytra mace not working:

When you approach the target it swaps alright but it doesn't smash Spear-chaining not working:

Its not working remove it

Add a new mode replace spear with this:

Anchor How it works:

Hot Bar requirements: Respawn Anchor, Glowstone blocks Player toggles it and Immediately:

Places respawn anchor -> charges it with glowstone (x1) -> right-clicks it (not with glowstone) -> repeat until [toggled off] or [out of glowstone / respawn anchors] Features: Auto aim, Auto-move so that [You don't stay directly next to the crystal], [Makes you 1 block lower than the crystal without going out of reach]

Some more features (No need to toggle):

  1. If you toggle a mode it should show that it is toggled (just above the exp bar thingy)
  2. If you are flying an elytra and hold any spear on the side it should show how much damage you deal (speed)
  3. If you are falling and hold a mace on the side it should show how much damage you would deal
Kodari AI
KodariOct 21 at 8:38 am 5
  1. Fix Elytra-mace so the mace actually connects after the chestplate swap.

  2. Remove spear-chaining and replace it with the anchor mode, including safe positioning and auto-aim.

  3. Add above-hotbar status for active modes.

  4. Add held-item damage estimates while gliding with a spear or falling with a mace.

  1. Elytra-mace now waits until the player is no longer fall-flying and has enough fall distance for vanilla’s mace smash condition before attacking.

  2. Removed spear-chaining and added the anchor loop. It aims at the selected block, charges with one glowstone, retreats while keeping the anchor within reach, then activates it with a non-glowstone item.

  3. Next: show active mode status above the experience bar.

  1. Elytra-mace: It now waits for vanilla’s smash conditions—no longer fall-flying and more than 1.5 blocks of fall distance—before attacking the target.

  2. Anchor: Removed spear-chaining and replaced it with a toggleable anchor sequence: place, charge with one glowstone, retreat, then activate with a non-glowstone item. It stops if supplies run out or the anchor remains after activation.

  3. Mode status: Active modes now appear above the experience bar.

  4. Damage estimates: The HUD shows a spear estimate while fall-flying with a spear offhand and a mace estimate while falling with a mace offhand. Estimates don’t account for target motion, armor, or enchantment effects.

Positioning limitation: Anchor mode aims at the block you’re targeting and backs away to stay within interaction reach, but it does not yet pathfind to enforce the requested one-block-lower elevation. It uses vanilla Respawn Anchors and Glowstone; no new items or recipes were added.

Hussain

Remove anchor mode and the damage calculators for spear and mace

Kodari AI
KodariOct 21 at 10:10 am 1

Removed Anchor mode, including its hotkey, automation, and HUD status. Removed both spear and mace damage calculators; the active-mode HUD remains for the other modes.

Hussain

Add some more features:

Red highlight for items lower than 20 durability - no need toggle If you are in reach of a player (3 blocks) the player will glow (get the glowing effect) highlight players' shields which are disabled

Kodari AI
KodariOct 24 at 4:26 pm 3
  1. Add a red durability highlight for held/inventory items below 20 durability.

  2. Make nearby players glow within three blocks.

  3. Highlight players whose shields are disabled.

  • Low durability: Items with fewer than 20 durability remaining now get a translucent red highlight in the hotbar and inventory.

  • Nearby players: Other players within 3 blocks now glow locally on your client.

  • Disabled shields: Not added. Vanilla doesn’t sync another player’s shield-disable cooldown to your client, so a client-only mod can’t reliably tell a disabled shield from one the player simply stopped using. A server-side companion or an explicitly approximate indicator would be needed.

Hussain

Add food value information to tooltips:

Adds a visualization of saturation and exhaustion to the HUD:

Adds a visualization of potential hunger/saturation restored while holding food:

Adds a visualization of potential health restored while holding food:

Adds hunger/saturation/exhaustion info to the debug overlay (F3) Syncs the value of saturation and exhaustion to the client.

Show exact player health above the player

Show exact potion counter on how long of a potion is left

When you shoot any projectile and hitboxes is enabled each projectile has any random hex color and the block which the projectile which it is going to land on should get highlighted

Kodari AI
KodariOct 25 at 7:54 am 8
  1. Add food nutrition/saturation/exhaustion details, HUD visualizations, held-food restoration previews, F3 values, and client sync.

  2. Add exact health labels above players.

  3. Add exact potion-duration counters.

  4. Color projectile hitboxes randomly and highlight the predicted impact block.

  1. Food values now appear in item tooltips and the HUD; saturation/exhaustion are synced from the server and included in F3, with hunger and estimated regeneration previews while holding food.

  2. I’m now handling exact player-health labels.

  1. Exact current/max health labels now render above nearby players. I’m moving to the potion-duration counters.

  1. Potion icons now show a live exact countdown as minutes/seconds plus remaining ticks; infinite effects are marked INF.

  2. I’m checking the projectile hitbox and trajectory-rendering hooks for the final feature.

  • Food info: Tooltips now show hunger, saturation, and direct-healing details. The HUD previews hunger/saturation and estimated natural healing while holding food; saturation and exhaustion appear on the HUD and in F3.

  • Health labels: Other visible players have their exact current/max health displayed above them.

  • Potion timers: Effect icons show a live countdown including remaining ticks; infinite effects show INF.

  • Projectile hitboxes: With F3+B enabled, projectiles get stable random colors, and the predicted block impact is outlined in the same color.

Notes: Exhaustion syncing requires PvP Assist on the server. Food does not directly restore health, so the healing preview is an estimate of potential natural regeneration. Projectile impact prediction approximates gravity and drag; special projectile physics or collisions with entities can make it differ from the actual impact.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
23 1,242
src/main/java/com/kodari/pvpassist/PvPAssist.java
package com.kodari.pvpassist;

import com.kodari.pvpassist.mixin.FoodDataAccessor;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.fabricmc.fabric.api.networking.v1.PlayerLookup;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.minecraft.server.level.ServerPlayer;

public final class PvPAssist implements ModInitializer {
	private static int ticks;

	@Override
	public void onInitialize() {
		PayloadTypeRegistry.clientboundPlay().register(FoodStatsPayload.TYPE, FoodStatsPayload.CODEC);
		ServerTickEvents.END_SERVER_TICK.register(server -> {
			if (++ticks % 5 != 0) {
				return;
			}
			for (ServerPlayer player : PlayerLookup.all(server)) {
				float saturation = player.getFoodData().getSaturationLevel();
				float exhaustion = ((FoodDataAccessor) player.getFoodData()).pvpassist$getExhaustionLevel();
				ServerPlayNetworking.send(player, new FoodStatsPayload(saturation, exhaustion));
			}
		});
	}
}