Repository navigation
PhoenixFish v1.3.5
Pre-releasePhoenixFish v1.3.5
Pre-release. Test before deploying to production.
Note: The Chinese localization was machine-translated for testing purposes.
Highlights
This release ships two major features and a few critical bug fixes:
- Dynamic language system — any language code is now accepted (tr, en, zh_cn, fr, de, es, ...)
- Equipment-affected minigame difficulty — high-tier rods now actually make the minigame easier
- Real rod names on recipe ingredient lists — "Cosmic Rod" instead of generic "Fishing Rod"
New Features
1. Dynamic Language System (Full Rewrite)
Previously, only "tr" and "en" were hardcoded as supported languages. Any other language code was silently dropped. Now any language code is accepted and the matching file is auto-loaded:
| File | Purpose |
|---|---|
messages_<lang>.yml |
Player-facing messages (missing keys auto-fall back to English) |
rods_<lang>.yml |
Rod display names + lore |
baits_<lang>.yml |
Bait display names + lore |
custom_recipes_<lang>.yml |
Recipe result display names |
fish_<lang>.yml |
Fish names |
Resolution chain:
config.yml: settings.language: "zh_cn"
↓
1. Look for messages_zh_cn.yml in plugins/PhoenixFish/
2. Not found → extract from jar if bundled
3. Still missing → fall back to messages_en.yml
4. Always: attach bundled messages_en.yml as setDefaults() — missing keys auto-fall back to English
The setDefaults() mechanism means: if your custom messages_de.yml is missing a key, the English value is shown automatically. No silent Component.empty(), no console spam.
2. Equipment-Affected Minigame Difficulty
Problem: High-tier rods only added a luck bonus. Minigame difficulty was identical regardless of rod tier — epic+ fish escaped at the same speed with Old Rod as with Cosmic Rod.
Fix: MinigameTask was rewritten. The rod's and bait's minigame: section now affects the effective values:
New rod fields (per-rod minigame: block in rods.yml):
minigame:
bar-width-bonus: 4 # added to minigame.rod-width (easier to keep fish in bar)
progress-rate-bonus: 1.0 # added to minigame.progress-rate (faster catch)
tension-resistance: 0.30 # multiplicative reduction of tension-increase-rate
fish-slow-chance: 0.6 # multiplier on minigame.fish-move-chance (lower = fish moves less)New bait fields (per-bait minigame: block in baits.yml):
minigame:
fight-strength-reduction: 0.15 # multiplicative reduction of fish.fightStrength()
fish-slow-bonus: 0.15 # additive reduction of fish-move-chance
progress-bonus: 0.3 # additive to progress-rate when hittingBait effects only apply when the caught fish's rarity matches the bait's target-rarity (consistent with existing chance-modifier behavior).
New config keys (config.yml):
minigame:
rarity-difficulty-multipliers:
1: 1.0 # Common
2: 1.0 # Uncommon
3: 1.2 # Rare
4: 1.6 # Epic — 60% harder
5: 2.0 # Legendary — 100% harder
rarity-tension-cap:
4: 90.0 # Epic — line snaps at 90% instead of 100%
5: 80.0 # Legendary — snaps at 80%
xp-system:
skill-per-level:
fast-catcher-progress-bonus: 0.5 # was hardcoded in MinigameTask.java
master-hunter-luck-bonus: 0.02
double-catch-chance-per-level: 0.10
lucky-bait-chance-per-level: 0.20Tier Bonus Table (Rods)
| Rod | bar-width | progress | tension-resist | fish-slow |
|---|---|---|---|---|
| Old/Hardwood | +0 | +0.0 | 0% | 100% |
| Iron | +1 | +0.1 | 5% | 95% |
| Gold | +1 | +0.2 | 5% | 90% |
| Diamond | +2 | +0.3 | 10% | 85% |
| Netherite | +2 | +0.4 | 15% | 80% |
| Ocean | +3 | +0.5 | 20% | 75% |
| Legendary | +3 | +0.7 | 25% | 70% |
| Cosmic | +4 | +1.0 | 30% | 60% |
3. Real Rod Names on Recipe Ingredient Lists
Problem: When a recipe required a specific rod (e.g. enhanced_cosmic_rod needs cosmic_rod as ingredient), the ingredient list showed only "Fishing Rod" — the vanilla translation key. Players couldn't tell which rod was required.
Fix: CraftingManager.createItem() now resolves the rod's display-name from rods.yml via ItemFixer.findRodConfig(material, cmd) and sets it on the ingredient ItemStack.
Result:
| Before | After |
|---|---|
Fishing Rod ×1 (which one?) |
Cosmic Rod ×1 + lore (tier, level req, luck) |
| — | 宇宙鱼竿 ×1 (on Chinese server) |
The same logic also applies to baits — BaitManager.getBaitFromItem() is checked if no rod is matched.
4. PhoenixFishAPI Extended
Two new methods exposed for PhoenixCraft (or any external plugin):
// Why is crafting unavailable?
public String getCraftingUnavailableReason();
// Returns: "xp-system-disabled" / "no-crafting-manager" / null
// All valid categories (dynamically derived from loaded recipes)
public List<String> getCraftingCategories();
// Returns: ["bait", "rod", "misc"] (or whatever custom_recipes.yml defines)Bug Fixes
1. Init Order — Rod Display-Names Not Resolved (Fixed)
CraftingManager.loadRecipes() was called at line 77, but FishingListener (which owns ItemFixer) was constructed at line 91. So during recipe loading, plugin.getFishingListener() was null → findRodConfig() returned null → no display-name set → "Fishing Rod" shown.
Fix: Moved loadRecipes() to AFTER FishingListener construction.
2. Hardcoded Language Checks (Fixed)
PhoenixFish.loadPluginResourceshad hardcoded"tr"check → dynamicFishManager.loadFishhad hardcoded"tr"check → dynamicMessageManagerreturnedComponent.empty()on missing key → now falls back to English viasetDefaults()
Files Changed
Java (10 files)
PhoenixFish/src/main/java/com/phoenix/fish/
├── PhoenixFish.java ← init order fix + language-aware resource extraction
├── api/PhoenixFishAPI.java ← 2 new methods
├── manager/
│ ├── MessageManager.java ← setDefaults(English) + dynamic language + jar extraction
│ ├── FishManager.java ← dynamic language lookup
│ ├── BaitManager.java ← getBaitConfig(id) + language-aware baits.yml
│ ├── ItemFixer.java ← findRodConfig(material, cmd) + language-aware rods.yml
│ └── CraftingManager.java ← language-aware custom_recipes + ingredient display-name resolve
├── minigame/MinigameTask.java ← REWRITTEN — equipment-affected difficulty
└── listener/FishingListener.java ← startMinigame now passes rod+bait
YAML (9 files)
PhoenixFish/src/main/resources/
├── config.yml ← rarity-difficulty-multipliers + rarity-tension-cap + skill-per-level
├── rods.yml ← 9 rods gained minigame: block
├── baits.yml ← 2 baits gained minigame: block
├── custom_recipes.yml (unchanged)
├── messages_tr.yml (unchanged — already complete)
├── rods_tr.yml ← NEW — 22 rods in Turkish
├── baits_tr.yml ← NEW — 28 baits in Turkish
├── custom_recipes_tr.yml ← NEW — 49 recipes in Turkish
├── messages_zh_cn.yml ← NEW — 110 keys in Chinese (with deliberately missing keys for fallback testing)
├── rods_zh_cn.yml ← NEW — 22 rods in Chinese
├── baits_zh_cn.yml ← NEW — 28 baits in Chinese
└── custom_recipes_zh_cn.yml ← NEW — 49 recipes in Chinese
Backward Compatibility
All new fields default to 0 / no-op. Existing rods.yml / baits.yml / config.yml produce byte-identical behavior.
- Old rods without
minigame:block → no bonus (same as before) - Old baits without
minigame:block → no bonus - Old config without
rarity-difficulty-multipliers→ 1.0 default (same as before) - Hardcoded
0.5for Fast Catcher → now config-driven, default matches old value
Breaking Changes
None. Fully backward compatible.
Test Scenarios
Test 1 — Language System
- Set
settings.language: "zh_cn" - Run
/pf reload - Expected console output:
[INFO] Loaded language: zh_cn [INFO] Loading rods from: rods_zh_cn.yml [INFO] Loading baits from: baits_zh_cn.yml [INFO] Loading crafting recipes from: custom_recipes_zh_cn.yml /pf giverod cosmic_rod→ receive "宇宙鱼竿"- Delete one key from
messages_zh_cn.yml(e.g.level_up), reload → "Your fishing level increased!" (English fallback kicks in)
Test 2 — Minigame Equipment Effect
/pf giverod default_rod— catch an epic fish → should be HARD (fight strength × 1.6)/pf giverod cosmic_rod— catch the same fish → should be MUCH easier (cosmic rod: +4 bar width, 30% tension-resist, 60% fish-slow)/pf givebait lunar_moth— catch a legendary fish → both rod + bait bonuses combine
Test 3 — Recipe Ingredient Names
/pcraft→ openenhanced_cosmic_rodrecipe- Ingredient list should now show "Cosmic Rod ×1" (or "宇宙鱼竿 ×1") with lore — NOT generic "Fishing Rod"
- Bait ingredients similarly resolved
Known Issues
- Vanilla material names (End Crystal, Stick, etc.) are translated by the client's Minecraft language, not the server's. This is Minecraft's nature — server cannot override. Solution: player changes their Minecraft client language.
/pf addleveldoes not grant skill points — slated for a future fix.