JAVA PVP CORE 2.1
Update v2.1
Redraw the cooldown bar
JavaPvP Core — Update v2.0
Add more tag:
π₯ Fire Sweep (jpvp:sweep:fire)
Add this tag to any item with minecraft:is_sword. When a fully-charged sweep attack lands, the sweep visual will display a flame-colored orange-red particle instead of the default gray slash, and all mobs caught in the sweep will be set on fire for 3 seconds. Pairs well with fire-themed weapons or custom flame boss gear.
βοΈ Weapon-Shaped Cooldown Icons
Three new tags let you customize the cooldown icon displayed on the action bar to match the weapon type:
jpvp:tcd:sword — A diagonal pixel-art sword icon. Charges from hilt to tip, shifting from gray to a golden gleam when a target is in range.
jpvp:tcd:axe — A broad-headed axe with a long handle. Charges from bottom to top, turning icy blue when an enemy is detected nearby.
jpvp:tcd:reddagger — A wide-bladed dao in deep red tones. Charges from handle to edge, flaring bright red when a target enters your crosshair
β Java PvP Core v1.0
Java Edition combat mechanics — rebuilt for Bedrock
ββββββββββββββββββββββββββββββββββββββββ
Java PvP Core brings the full Java Edition combat system to Bedrock — attack cooldown, damage scaling based on charge percentage, sweep attack, armor toughness, and more. Built as a core addon so other addons can integrate directly without rewriting combat logic from scratch.
ββββββββββββββββββββββββββββββββββββββββ
FEATURES
ββββββββββββββββββββββββββββββββββββββββ
- Attack Cooldown — Custom glyph texture cooldown bar (16 frames). Automatically changes color when an enemy is in range.
- Damage Scaling — Damage scales with cooldown percentage. Attacking before fully charged deals reduced damage, just like Java.
- Armor Toughness — Accurate Java Edition damage reduction formula, including diamond and netherite toughness.
- Sweep Attack — Java-accurate sword sweep AoE. Only triggers when standing still, not sprinting, and fully charged.
- Enchantment Support — Sharpness, Smite, Bane of Arthropods, Strength, and Weakness are all factored into damage.
- Critical Hit — Attacking while falling deals 1.5x damage with particle effects.
- Saturation Heal — Health regeneration from saturation following Java Edition mechanics.
- Totem of Undying — Works correctly with the addon's damage override system.
- Shield Block — Detects active shield blocking and negates damage accordingly.
ββββββββββββββββββββββββββββββββββββββββ
TAGGING CUSTOM WEAPONS
ββββββββββββββββββββββββββββββββββββββββ
Add 2 tags to your item JSON — no scripting required:
"jpvp:weapon"
"jpvp:dmg:7" → damage dealt
"jpvp:cd:16" → cooldown t (tick)
ββββββββββββββββββββββββββββββββββββββββ
VANILLA WEAPONS — BUILT-IN SUPPORT
ββββββββββββββββββββββββββββββββββββββββ
No tags needed — the addon auto-detects vanilla weapons and applies correct Java Edition values:
Netherite Sword 8 dmg | 13 ticks (0.65s)
Diamond Sword 7 dmg | 13 ticks (0.65s)
Iron Sword 6 dmg | 13 ticks (0.65s)
Netherite Axe 10 dmg | 20 ticks (1.0s)
Diamond Axe 9 dmg | 20 ticks (1.0s)
Iron Axe 9 dmg | 22 ticks (1.1s)
Trident 9 dmg | 18 ticks (0.9s)
Mace 6 dmg | 26 ticks (1.3s)
Diamond Pickaxe 5 dmg | 17 ticks (0.85s)
Diamond Shovel 5 dmg | 20 ticks (1.0s)
Diamond Hoe 1 dmg | 5 ticks (0.25s)
(+ all remaining tiers: wooden, stone, golden, copper)
ββββββββββββββββββββββββββββββββββββββββ
INTEGRATION API FOR OTHER ADDONS
ββββββββββββββββββββββββββββββββββββββββ
Method 1 — Script event (cross-addon, no import needed):
scriptevent jpvp:override
payload JSON: { playerId, damage, cooldownTicks }
Method 2 — Direct import (same behavior pack):
import { setWeaponData, clearWeaponOverride } from "./main.js";
setWeaponData(player, 9, 12);
clearWeaponOverride(player);
ββββββββββββββββββββββββββββββββββββββββ
REQUIREMENTS
ββββββββββββββββββββββββββββββββββββββββ
- Minecraft Bedrock Edition 1.21+
- Script API @minecraft/server 1.16+
- Multiplayer compatible
ββββββββββββββββββββββββββββββββββββββββ
AUTHOR & CONTACT
ββββββββββββββββββββββββββββββββββββββββ
Author : YTAUN
Zalo : 0394798144
Gmail : [email protected]


