I'll implement texture pack loading with a proper Minecraft-style loading screen, simplify animations to just walking, and fix the F5 view direction.
I'll simplify to walking-only, fix the F5 view, and add texture pack loading with a pixel-art loading screen.
I'll simplify animations to walking only, fix F5 front view, and add texture pack loading with a Minecraft-style loading screen.
Now let me fix the F5 camera view direction:
Now let me create the texture pack system. First, I'll modify the textures module to support texture pack overrides:
Now let me add texture pack override system to textures.ts:
I need to check where drawers is defined to make sure d.name works:
Now let me create the texture pack loader module and the loading screen. First, let me create the texture pack loading logic:
Now let me create the Minecraft-style loading screen component and the texture pack manager UI. First, let me check the Options panel:
Let me add the "Texture Packs..." button to the OptionsPanel and create the texture pack modal:
Now let me create the loading screen and texture pack modal:
Now let me create the TexturePackModal component:
Now let me integrate the texture pack modal into App.tsx and connect it so the engine knows to rebuild chunk meshes when textures change:
Let me wire the texture pack modal into App.tsx properly:
Let me add the atlasEpoch prop to GameScreen and also handle it in the main menu, then wire it into the engine:
Now let me wire the atlasEpoch to rebuild chunk meshes when textures change. Let me look at how the engine handles atlas updates:
Let me store the atlas texture reference so it can be refreshed, and add a rebuild method:
Now let me add a method to refresh the atlas texture and rebuild all chunk meshes:
Now let me wire the atlasEpoch effect in GameScreen to trigger the refresh:
Now let me also add the texture pack option to the main menu (accessible without going into a game first):
All done! Everything builds successfully. Here's what's been implemented:
✅ Changes
1. Simplified Animations (Walking Only)
- Removed all extra animations (sneak crouch, idle breathing, jump pose, mining chop)
- Only walking animation remains — arms and legs swing when moving
- When you stop, limbs smoothly return to neutral pose
- Head stays properly on shoulders (torso, head, and everything else stays neutral)
2. Fixed F5 View Direction
- View 1 (Third-Person Back): Camera is behind you, you see the back of your character
- View 2 (Third-Person Front): Camera is in front of you, you see your character's face
- Previously reversed - now correctly showing the right side
3. Texture Pack System 🎨
Access via Options → Texture Packs...
Features:
- Load from URL: Paste a link to any
.zip resource pack
- Load from File: Upload a
.zip file from your device
- Reset to Default: Restore built-in procedural textures
- Uses CORS proxy fallbacks (corsproxy.io, allorigins.win) for cross-origin URLs
- Parses ZIP archives natively using browser's
DecompressionStream API
- Supports standard Minecraft resource pack format (looks for PNG files with standard names like
stone.png, grass_block_top.png, oak_planks.png, etc.)
- Any unmatched blocks keep their default textures — the game never breaks
- All existing chunks automatically re-mesh with the new textures
4. Mojang/Notch-Style Loading Screen 📦
When loading a texture pack, you get a pixel-art loading screen with:
- Gears at the top — animated, pixel-art SVG gears rotating (they hide when loading completes)
- Progress bar at the bottom — pixel-art style with green fill and segmented overlay
- "Loading Pack" title in classic Mojang-style bold text with drop shadow
- Live status messages ("Parsing archive...", "Loading textures... 5/32")
- Percentage counter
Supported Texture Names
The mapping table handles common Minecraft texture pack conventions from both old and new versions:
stone, cobblestone, dirt, sand, gravel, bedrock
grass_block_top/grass_top, grass_block_side/grass_side
oak_planks/planks, oak_log/log, oak_leaves/leaves
coal_ore, iron_ore, gold_ore, diamond_ore, redstone_ore
water_still, lava_still, glass, bricks, obsidian
gold_block, iron_block, diamond_block, tnt_side/tnt_top
bookshelf, sandstone, mossy_cobblestone, pumpkin_side/pumpkin_face
white_wool/red_wool/blue_wool, torch, snow
Just drop in any standard Minecraft resource pack and matching blocks will get retextured instantly!
Files built: src/game/engine.ts, src/game/textures.ts, src/game/texturepack.ts, src/App.tsx, src/components/LoadingScreen.tsx, src/components/TexturePackModal.tsx, src/components/GameScreen.tsx