promotional bannermobile promotional banner

PokeEnchanter - Cobblemon Rewards

Earn a random enchantment on a random inventory item after winning a battle in Cobblemon.
PokeEnchanter Welcome Banner

Table of Contents


Overview

PokeEnchanter - Cobblemon Rewards is a lightweight utility mod designed for Minecraft 1.21.1 (Fabric). It connects directly to the Cobblemon battle system to reward players with automated item enchantments upon winning battles.


Critical Performance Note (Anti-Crash)

IMPORTANT: As of Version 1.2.0+, the maximum enchantment limit for the Chaotic Edition is hard-capped at 255.

Technical Context

Minecraft's internal physics and calculation engines (specifically for attributes like Knockback, Punch, and Sharpness) cannot process enchantment levels in the millions during combat calculations. Attacking an entity with extreme values forces the server into an unrecoverable processing loop, triggering a java.lang.ArithmeticException or java.lang.OutOfMemoryError: Java heap space crash.

Capping all chaotic random enchantments at 255 maintains an overpowered gameplay experience while ensuring complete server stability and zero memory exhaustion.


How It Works

  1. Engage and defeat any wild or trainer Pokémon in an official Cobblemon battle.
  2. Upon victory, the mod scans your main inventory for non-empty items.
  3. A random eligible item is selected.
  4. A completely random enchantment is applied directly to the selected item.

Playstyles Banner

Editions

We offer two distinct builds of the mod under the Files tab on CurseForge:

Edition Feature Breakdown Recommended Audience
Balanced Edition Strictly respects native Minecraft Vanilla enchantment limits (e.g., Sharpness I-V, Mending I). Survival SMPs, balanced modpacks, standard gameplay.
Chaotic Edition Bypasses standard Java limits, rolling random enchantment levels up to 255. Unrestricted gameplay, extreme testing, chaotic servers.

Recommended Mods

If you are using the Chaotic Edition, the following Fabric mods are recommended to prevent Minecraft from resetting over-leveled enchantment attributes:

Mod Name Function
EnchantmentLevelBreak Allows processing of enchantment levels beyond level 5 without resetting attributes.
Fixed Anvil Repair Cost Removes anvil repair limits ("Too Expensive!" cap) and freezes experience costs.
Universal Enchants Removes equipment restrictions, allowing armor/weapon enchantments on any tool.
Enchantment Descriptions Displays detailed tooltips for unfamiliar or high-level enchantments.

Setup and Requirements Banner

Setup & Requirements

System Requirements

  • Game Version: Minecraft 1.21.1
  • Mod Loader: Fabric Loader
  • Required Dependencies: Fabric API, Cobblemon

Installation Steps

  1. Navigate to the Files tab on CurseForge and download your preferred edition (Balanced or Chaotic).
  2. Ensure Fabric API and Cobblemon are installed in your mods folder.
  3. Place the downloaded .jar file into your .minecraft/mods folder (or install via the CurseForge App).
  4. Launch Minecraft using the Fabric 1.21.1 profile.

Building from Source

To compile the binary locally:

  1. Clone the repository from GitHub.
  2. Ensure JDK 21 is installed and configured in your environment.
  3. Execute the build task:
git checkout main        # Balanced edition

# OR

git checkout levelbreak  # Chaotic edition

./gradlew clean build

The output jar will be located at build/libs/pokeenchanter-1.0.0.jar.


License

This project is licensed under the CC0 1.0 Universal (Public Domain) license. You are free to copy, modify, distribute, and include this mod in any modpack without prior permission.

The PokeEnchanter - Cobblemon Rewards Team

profile avatar
  • 1
    Projects
  • 104
    Downloads

Just a random guy here to have fun and build things with no pressure. Só um mano aleatório aqui para me divertir e criar umas paradas sem pressão.