
Halberd
Создай комплексный мод для Minecraft 1.21.1 на NeoForge, реализующий железную алебарду как тактическое двуручное оружие с уникальными механиками. Мод должен...
00—neoforgeBoth1.21.1mod
Halberd Mod Notes
- Tactical iron halberd (mod id
halberd) built for NeoForge 1.21.1 with shared (server-safe) logic and a client-side charge property for animations. - Weapon stats live in a custom data component
HalberdAttributes(damage, speed, reach bonus, durability) with codec/stream codecs; main-hand attribute modifiers include +reach and sync automatically. - Hold use to charge; if sneaking, the use tick at ~90% charge triggers a piercing thrust along a 3-block ray, sweeping targets in a cylindrical window, applying enchantment-modified damage and knockback, and consuming durability per hit.
- Enchantment: “Broad Sweep” (I–III) applies only to the halberd, widens the special attack, adds a small reach attribute effect via EnchantmentEffectComponents, and appears in treasure/weapon-smith loot and trades; translations provided in EN/RU.
- Assets and data: shaped iron recipe, loot table
halberd:chests/halberd_cache, item/enchantment tags (including vanilla loot/trade tags), separate_transforms item models with charged override, 32×32 textures plus normal/specular maps.
How to use
- Craft the iron halberd with the provided recipe, then hold right-click; while sneaking, maintain the channel until the charge completes to fire the piercing sweep.
- Apply Broad Sweep to increase sweep width (scales with level) and gain extra reach through the enchantment effect.
Notes & suggestions
- Attribute bonuses only apply in the main hand; off-hand use is cosmetic.
- Sweep width caps before it becomes too wide; adjust the multiplier in code if you want an even broader arc.
- Loot/trade availability comes from standard enchantment tags—add worldgen loot modifiers if you need guaranteed distribution.
Server Validation
✅ Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.