Description
A modern, high-performance player armor and shield mod for Luanti. Built on an advanced entity bone attachment architecture, x_player_armor attaches lightweight 3D visual entities directly to character skeletal bones instead of overriding player models with baked textures. Third-party mods can use the standalone x_player_armor API to effortlessly create and register their own custom 3D armor models (.glb and .b3d), define custom bone attachment transforms, and customize gear with zero hard dependencies (with optional automatic enhancement when x_player_api is present).
Gameplay & Key Features 🔗
- Modular Entity Bone Attachment Architecture: Helmets, chestplates, leggings, boots, and shields attach directly to your character's skeletal bones (
Head,Body,Arm_Left,Arm_Right,Leg_Left,Leg_Right) as lightweight, optimized visual entities. Unlike legacy mods that replace your entire character with a baked armor model, your base player mesh, custom skin, and 3D outfit layers remain 100% intact. - Third-Party Custom 3D Model Attachments via
x_player_armorAPI: Mod developers are completely freed from rigid baked player textures! Third-party mods can usex_player_armor.register_armorto design and attach their own custom 3D model meshes (.glbor.b3d)—including custom helmets, crowns, wizard hats, pauldrons, cloaks, quivers, wings, or shields. Fully customizable with bespoke bone targets, positional offsets, Euler rotations, visual scaling, multi-material textures, and glow emission—all with zero external dependencies required! - Native Blender glTF 2.0 Unified Export Workflow: Armor creators can sculpt, adjust, and texture all armor pieces and shields directly on the character in Blender and export directly to standard glTF 2.0 (
.glb) with zero custom scripts or command-line converters required. - Zero Hard Dependencies (Optional
x_player_apiSynergy): Operates 100% standalone with standard Luanti player models out-of-the-box. When the optionalx_player_apimod is present,x_player_armorautomatically detects it and binds visual entities tox_player_api's dual visual proxies (modern.glband legacy.b3d) for enhanced locomotion and animation synchronization. - Active Shield Defense & Arrow Deflection: Hold right-click with an equipped shield to raise your guard. Blocking absorbs frontal melee attacks, deflects flying arrows with bounce physics, protects your worn armor from taking wear, and shows a first-person shield indicator. Features a dedicated API allowing third-party projectile and ranged combat mods to easily hook into arrow deflection.
- Dynamic Combat HUD: During battle, a sleek on-screen armor HUD appears automatically to show your gear's real-time durability so you always know when an item is close to breaking.
- Sound Effects & Particle Sparks: Enjoy distinct audio effects and particle sparks when equipping gear, absorbing strikes, blocking attacks, deflecting arrows, or shattering broken armor.
- Interactive Armor Stands: Display your favorite armor sets, held weapons, and shields in your base. Right-click to open an interactive visual wardrobe manager, or simply Shift + Punch with any item in hand (or empty hand) to swap your equipped suit and weapon with the stand in one quick action.
- Dynamic 3D Inventory Preview: Rotate and inspect your character in real-time 3D right inside your inventory screen (
sfinv,unified_inventory, ori3). When equipping custom 3D armor pieces or shields, a pure-Lua in-memory mesh assembler seamlessly merges them into a unified preview with zero server lag or disk churn. - Elemental Survival Perks:
- Nether & Crystal: Stride through fire and lava without taking flame damage.
- Crystal: Dive into deep oceans with underwater breathing.
- Gold & Mithril: Enjoy passive health regeneration and cushioned fall landings.
- Cactus: Sharp thorns that retaliate against attackers.
- Matching Set Bonus: Equipping a complete 4-piece or 5-piece matching armor set grants an automatic +10% defense bonus.
- Lag-Free Multiplayer Performance: Uses static, optimized visual entities with zero Lua tick overhead (
on_step = nil). Bone tracking is offloaded directly to the Luanti engine's C++ scene graph, keeping multiplayer servers running at a solid 20 TPS with zero entity lag. - Full Drop-in Compatibility: Fully backwards-compatible with mods that use legacy
3d_armor,shields, or3d_armor_standAPIs, and automatically migrates older saved inventories.
Why Choose x_player_armor Over Classic 3d_armor? 🔗
x_player_armor is a modern upgrade designed to give you better visuals, active combat, and smooth multiplayer performance while working seamlessly with all your existing mods and gear.
| Feature | Classic 3d_armor | x_player_armor |
|---|---|---|
| Visual Architecture | Overrides your entire player model with a baked mesh (3d_armor_character.b3d) and flattened composite textures; blurs skins and strips away 3D clothing. |
Optimized Bone Attachments: Attaches lightweight, static visual entities directly to your skeletal bones. Your base player model is never replaced, keeping skins and 3D outfit layers 100% intact. |
| Custom 3D Model Attachments | Rigid and monolithic: third-party mods must bake armor textures onto a single fixed player mesh template. Cannot attach bespoke 3D meshes or unique bone attachments per piece. | Standalone 3D Model API: Third-party mods use x_player_armor.register_armor to register unique 3D meshes (.glb / .b3d) for any armor slot or shield, specifying custom skeletal bones, rotations, offsets, multi-material textures, and glow. Requires zero external dependencies. |
| Animation & Skeletal Rigging | Incompatible with modern dual-format player models and animation rigs; overrides or breaks visual proxies and desyncs with custom animation controllers. | Zero Dependencies + Optional x_player_api Synergy: Functions standalone attaching directly to standard player bones. If x_player_api is present, it automatically binds visual entities to dual visual proxies without requiring manual setup. |
| Multiplayer Performance | Constantly polls world blocks and recalculates composite textures, causing tick lag, packet bloat, and server stutter. | Zero-Tick Engine Attachments: Visual entities run with zero Lua tick overhead (on_step = nil), tracked natively in C++ by the Luanti scene graph for lag-free multiplayer. |
| Shield Combat & Deflection | Shields are passive stat-sticks—you cannot raise a guard, block attacks, or deflect incoming arrows. | Active shield defense: hold right-click to raise your shield, reducing frontal damage, deflecting flying arrows with bounce physics, and absorbing wear directly onto the shield. Includes full API support for third-party projectile mods. |
| First-Person Shield View | No visual indication of raising a shield in first-person view. | A sleek 3D shield appears in your first-person view whenever you raise your guard. |
| Combat Awareness HUD | You must open your inventory mid-fight to check if your armor is about to break. | A handy mini-HUD appears during battle with clear color bars (green to red) and chime warnings before gear breaks. |
| Interactive Armor Stands | Multiple attached pieces can glitch, duplicate, or leave floating ghost items. | Rock-solid armor stands: Shift + Punch with any item in hand (or empty hand) to swap your equipped suit and held weapon in one click, with zero glitching. |
| Smooth Movement | Can clash with sprint and potion mods, causing stuttery movement or speed resets. | Plays nicely with sprint, hunger, and potion mods without interrupting your movement speed. |
| Drop-In Upgrade | — | Works instantly as a replacement—keeps all existing crafting recipes, mods, and saved player inventories. |
Armor Materials & Defense Ratings 🔗
| Material | Defense Level | Health Regen | Durability | Survival Perks |
|---|---|---|---|---|
| Wood | 20 | 0% | 80 | Lightweight starter gear crafted from wood planks |
| Cactus | 24 | 0% | 110 | Desert survival with thorns that damage attackers |
| Steel | 45 | 0% | 350 | Dependable mid-game metal protection |
| Bronze | 50 | 0% | 450 | Tough copper-tin alloy defense |
| Diamond | 70 | 0% | 1200 | Exceptional durability and strong damage resistance |
| Gold | 40 | 12% | 200 | Regenerates player health over time |
| Mithril | 80 | 15% | 1800 | Legendary alloy with health regen and feather falling |
| Crystal | 75 | 10% | 1500 | Water breathing and fire protection |
| Nether | 85 | 5% | 2200 | Immune to lava, fire, and heavy explosions |
| Admin | 100 | 100% | Infinite | Invulnerability, flight, and environmental immunity |
Developer API 🔗
Mod developers can easily register custom armor items, attach bespoke 3D models (.glb and .b3d), define bone transforms, shields, sound effects, and combat callbacks via x_player_armor.register_armor with zero external dependencies. Detailed technical documentation, type definitions, and signatures are available in API.md on GitHub.