Create a complete Minecraft Java Fabric 26.3 Custom Weapons Mod designed specifically for PojavLauncher/mobile.
IMPORTANT:
- Minecraft Java Edition 26.3
- Fabric Loader
- Fabric API compatible with Minecraft 26.3
- This is a MOD, NOT a Bukkit/Spigot/Paper plugin.
- Do NOT create a ZIP-only project for the final user.
- The final build must be a working .jar mod file.
- Do NOT require a PC-side launcher or external server plugin.
- Keep the mod lightweight and optimized for mobile/PojavLauncher.
- Do NOT add completely new weapon models/items.
- Use Minecraft's existing vanilla weapons: Sword, Axe, Bow, Crossbow and Trident.
- Give these existing weapons special abilities through right-click, sneak + right-click, attack and projectile events.
- Abilities must work in singleplayer and multiplayer when the mod is installed on the required side.
⚔️ WEAPON ABILITIES
- Netherite Sword — VOID REAPER
Ability: Void Slash
- Right-click to release a dark energy slash.
- Hits enemies in a forward cone.
- Deals configurable damage.
- Applies short knockback.
- Purple/black particles.
- Enderman/portal-style sound.
- Cooldown: 12 seconds.
- Do not destroy blocks.
Passive:
- Every 5th successful hit creates a small void shockwave.
- Diamond Sword — THUNDER FANG
Ability: Thunder Strike
- Sneak + right-click.
- Target the block/entity being looked at.
- Lightning strikes the target area.
- Lightning must not cause permanent fire or terrain grief.
- Deals configurable damage.
- Cooldown: 18 seconds.
Passive:
- Critical hits have a small chance to create a visual lightning effect.
- Netherite Axe — METEOR HAMMER
Ability: Meteor Smash
- Right-click while looking at the ground.
- Creates a circular shockwave.
- Nearby enemies receive damage and knockback.
- Add smoke, flame and explosion particles.
- No block destruction.
- Cooldown: 20 seconds.
- Diamond Axe — FROSTBITE
Ability: Ice Prison
- Sneak + right-click.
- Targets the closest enemy within configurable range.
- Applies Slowness/Freeze effect.
- Creates temporary ice/frost particles around the target.
- Duration: 3 seconds.
- Cooldown: 16 seconds.
- Bow — STORM BOW
Ability: Cyclone Arrow
- Fully charged arrow creates a special projectile effect.
- On impact, nearby enemies are pulled toward the impact point and then knocked backward.
- Wind particles and strong wind sound.
- Cooldown: 15 seconds.
Passive:
- Charged shots have a small chance to create a mini wind burst.
- Crossbow — INFERNO CROSSBOW
Ability: Inferno Bolt
- When a charged crossbow fires, the projectile becomes an inferno projectile.
- On impact, creates a controlled fire burst.
- Damages nearby enemies.
- Does not permanently burn terrain.
- Cooldown: 14 seconds.
- Trident — OCEAN WRATH
Ability: Tidal Crash
- Throw the trident.
- On impact, creates a water shockwave.
- Pushes nearby enemies away.
- Deals damage.
- Add water splash particles and deep ocean sound.
- Cooldown: 15 seconds.
Secondary ability:
- Sneak + right-click creates a short forward water dash.
- Netherite Sword — BLOOD EDGE
Ability: Blood Drain
- Sneak + right-click.
- Drains a configurable amount of health from the nearest enemy.
- Heals the player partially.
- Red particles around the target.
- Cooldown: 20 seconds.
Passive:
- Every successful hit has a small chance to restore 1 heart.
- Iron Sword — SOUL DAGGER
Ability: Phase Dash
- Right-click.
- Teleports/dashes the player forward approximately 6–8 blocks.
- Cannot teleport through solid blocks.
- Creates soul particles.
- Cooldown: 10 seconds.
- Netherite Sword — DRAGON FANG
Ability: Dragon Breath
- Sneak + right-click.
- Releases a short-range dragon-breath-style attack.
- Damages enemies in front of the player.
- Purple particles.
- Dragon sound.
- Cooldown: 25 seconds.
🌑 ULTIMATE ABILITY
VOID DESTROYER
Use a Netherite Sword with a specific custom name/identifier.
Ability: Void Collapse
- Sneak + right-click.
- 2-second charging animation.
- Creates a dark purple energy sphere in front of the player.
- Pulls nearby enemies toward the sphere.
- After charging, releases a powerful shockwave.
- Heavy but configurable damage.
- Large knockback.
- Purple/black particles.
- Ender Dragon/End sound combination.
- Cooldown: 45 seconds.
- NEVER permanently destroy blocks.
- Must be optimized so it does not cause mobile lag.
🎨 TEXTURE / VISUAL REQUIREMENTS
Do NOT create separate weapon items or completely new models.
Use the existing Minecraft weapon models:
- Netherite Sword
- Diamond Sword
- Netherite Axe
- Diamond Axe
- Bow
- Crossbow
- Trident
- Iron Sword
Only add subtle visual differentiation where possible through:
- enchantment-style glow
- particles
- ability effects
- custom weapon names
- lore
- sounds
- action bar indicators
Do not replace the vanilla weapon model unnecessarily.
🖥️ GUI / COMMANDS
Add:
/cw give <player> <weapon> /cw list /cw reload /cw cooldowns
Also support:
/cw give @s void_reaper
Display ability cooldowns using the Action Bar, for example:
VOID SLASH — READY
or
VOID SLASH — 8s
Add configurable messages.
⚙️ CONFIG
Create a simple config containing:
- Ability damage
- Cooldowns
- Ability range
- Knockback
- Particle amount
- Sound volume
- Enable/disable individual abilities
- PvP-only mode
- Block-destruction toggle, default OFF
- Maximum effects per second for mobile optimization
📱 POJAVLAUNCHER OPTIMIZATION
This mod must be optimized for Android/PojavLauncher.
Avoid:
- excessive particles
- huge entity spawning
- unnecessary tick loops
- massive explosions
- permanent block changes
- memory-heavy systems
Use efficient Fabric events and server-side logic wherever possible.
🛡️ PvP SAFETY
Abilities must:
- Respect Minecraft world borders.
- Respect protected areas where practical.
- Have proper cooldowns.
- Prevent ability spam.
- Avoid accidental self-damage unless specifically intended.
- Not crash when multiple players use abilities simultaneously.
📦 BUILD REQUIREMENTS
Create a complete Fabric mod project with:
- Gradle configuration
- Fabric Loom
- fabric.mod.json
- Java source files
- resources
- assets
- configuration system
- command system
- ability system
- cooldown manager
Use clean modular code such as:
abilities/ weapons/ commands/ config/ effects/ util/
The final result must compile successfully for Minecraft Java 26.3 + Fabric and produce a working .jar mod suitable for installation with PojavLauncher.
Do not give me a fake placeholder implementation. Implement the actual abilities and make sure the code is internally consistent and buildable.
Set up the Fabric 26.3/Java 25 project and config.
Implement named vanilla-weapon abilities, cooldowns, passives, and projectile impacts.
Add
/cwcommands and action-bar feedback.Add the mod metadata and required item assets.
Created the Fabric 26.3 project with vanilla weapon stacks, server-side abilities and passives, cooldowns, a generated config, /cw commands, and a projectile-impact mixin. It uses no custom weapon models or added dependencies; effects are particle-limited, and abilities do not modify blocks.
Build with Gradle; the mod JAR will be produced at build/libs/custom-weapons-1.0.0.jar. I couldn’t generate or verify the binary JAR in this workspace.
The compilation failed with this error:
[ERROR] No baked Fabric classpath for MC 26.3
Please fix this error by creating a new artifact with the corrected code.
No baked Fabric classpath for MC 26.3 is a build-environment error, not a Java or Gradle source error. The project already declares Minecraft 26.3, Fabric Loader 0.19.5, Fabric API 0.161.0+26.3, and Loom 1.17-SNAPSHOT. Downgrading the Minecraft version would produce the wrong mod, and changing code cannot supply the missing classpath.
I can’t create a verified JAR in this workspace: Gradle/build tools aren’t available here, and the reported build environment lacks the 26.3 classpath. The build runner needs to add/support the Fabric 26.3 classpath, or the project needs to be built in an environment where Loom can resolve those dependencies. No artifact was generated.
package dev.kodari.customweapons;
import dev.kodari.customweapons.abilities.AbilityEngine;
import dev.kodari.customweapons.commands.WeaponCommands;
import dev.kodari.customweapons.config.ModConfig;
import net.fabricmc.api.ModInitializer;
public final class CustomWeaponsMod implements ModInitializer {
public static final String MOD_ID = "customweapons";
@Override
public void onInitialize() {
ModConfig.load();
AbilityEngine.initialize();
WeaponCommands.initialize();
}
}