Back to mods
Good Asset Fetcher project artwork

Modrinth · Minecraft mod

Good Asset Fetcher

Beta 1.7.3 library mod to provide assets from any version of Minecraft to other mods.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Good Asset Fetcher release should I use?

Updated 5 months ago
Latest stable file b1.7.3-1.1.0
Game version b1.7.3
Loader babric, Fabric

Good Asset Fetcher b1.7.3-1.1.0 targets b1.7.3 with babric, Fabric. It must be installed on the client. Do not install it on the dedicated server. 1 required mod needs a matching file.

Where it goes

Is Good Asset Fetcher required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release babric, Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does Good Asset Fetcher b1.7.3-1.1.0 need?

b1.7.3-1.1.0. Change the file and its required mods may change too.

1 required mod needs a matching file

Install StationAPI, Fabric Language Kotlin first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

Mod Menu Optional for Good Asset Fetcher b1.7.3-1.1.0
optional
No matching file
StationAPI Needed by Good Asset Fetcher b1.7.3-1.1.0
required
Matching file found Matched file: 2.0.0-alpha.6.5

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Good Asset Fetcher without breaking your instance.

Built for Good Asset Fetcher b1.7.3-1.1.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use b1.7.3-1.1.0. It targets b1.7.3 with babric, Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install StationAPI, Fabric Language Kotlin first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside b1.7.3-1.1.0. It opens that exact file at the source.

About this project

What does Good Asset Fetcher add?

Good Asset Fetcher

Minecraft Beta 1.7.3
Modrinth Downloads
Maven Version

Library mod for StationAPI that provides an interface for other mods to fetch resources from official Mojang jars on the
fly when starting the game; this allows mods to utilise the game's assets without incurring license violations.

Currently only supports clientside assets (not datapacks).

Screenshot of code registering assets from Minecraft 1.12.2 with the GoodAssetFetcherRegistryEvent, and MinecraftBeta 1.7.3 with Stone Bricks, Hay Bale, Coal Block, and Redstone Block textures from Minecraft 1.12.2visible.

Requirements

Usage (for developers)

  1. Import pw.tmpim.mygoodmods:good-asset-fetcher from Maven (see the version badge above for the latest version):

    repositories {
      maven("https://repo.lem.sh/releases") {
        name = "Lemmmy Repo"
        content {
          includeGroupAndSubgroups("sh.lem")
          includeGroupAndSubgroups("pw.tmpim")
        }
      }
    }
    
    dependencies {
      modImplementation("pw.tmpim.mygoodmods:good-asset-fetcher:1.0.4")
    }
    
  2. Register a client-only endpoint for your mod in fabric.mod.json if you don't already have one:

      {
        "entrypoints": {
          "stationapi:event_bus_client": "com.example.yourmod.ExampleModClientListener"
        },  
        "depends": {
          "good-asset-fetcher": "1.x"
        }
      }  
    
  3. Listen to the GoodAssetFetcherRegistryEvent and call addResourceFile, addBlock, or addItem:

    public class ExampleEventListener {
        @Entrypoint.Namespace  
        public static Namespace NAMESPACE;
    
        @EventListener  
        public void onRegisterGoodAssets(GoodAssetFetcherRegistryEvent event) {  
            // shorthands for blocks and items:
            event.addBlock(NAMESPACE, "1.12.2", "redstone_block");
            event.addItem(NAMESPACE, "1.12.2", "stick");
    
            // load an asset by full path:
            event.addResourceFile(NAMESPACE, "1.12.2", "assets/minecraft/textures/blocks/stone.png");
        }
    }
    
  4. Use the textures under assets/your-mod/stationapi/textures/block/stone.png:

    {
      "parent": "minecraft:block/cube_all",
      "textures": {
        "all": "your-mod:block/stone"
      }
    }
    

How it works

During the game's init phase, before resource packs are loaded, Good Asset Fetcher loads the version manifest from the
Minecraft Launcher to get a listing of all game versions. This listing is then cached indefinitely at
.minecraft/mods/good-asset-fetcher/asset-cache/versionManifest-$modVersion.json.

Then, GoodAssetFetcherRegistryEvent is called to fetch the resource definitions for every mod. Mods may request to
fetch assets from (almost?) any version of the game.

When resource packs are loaded, the mod injects its own dynamic resource pack at runtime. When this is first loaded
during a session, it checks for any missing assets in the mod's cache directory,
.minecraft/mods/good-asset-fetcher/asset-cache.

Armed with the knowledge of all the missing assets and their associated game versions, good-asset-fetcher will
download each version's manifest and jar in-memory, validate the hash, and extract the required files. This process is
done during resource pack load, so it will block the game the first time it happens, and then ideally remain cached
permanently in .minecraft/mods/good-asset-fetcher/asset-cache.

Since StationAPI stores assets in a slightly different location to most versions of vanilla, the mod performs the
following path conversions to the destination file path automatically:

Source path Cached path
assets/minecraft/textures/blocks assets/${namespace}/stationapi/textures/block
assets/minecraft/textures/items assets/${namespace}/stationapi/textures/item

If your use case is not properly covered, the
addResourceFile(Namespace namespace, String gameVersion, String sourcePath, String destPath) overload is available for
you to specify your own destination path. Note, however, that it will still go through the same string replacements as
above.

License

This mod is licensed under the MIT license.

Project description from Modrinth.

Pick your setup

Good Asset Fetcher by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Good Asset Fetcher versions and loaders

2 of 2 releases match

Looking for an older file? The official Modrinth project page is in Resources.