Resource Loader

Resource Loader

30 次下载
最近更新9 个月前
一个小模组,允许用户在不制作资源包的情况下向《我的世界》添加自己的资源。 A small mod that al...

描述

这个模组旨在与我的其他模组“自定义主菜单”和“自定义背景”一同使用,但它也能与任何可接受用于配置选项的资源位置的其他模组搭配使用。

它允许用户向《我的世界》添加自己的资源。虽然使用资源包也能做到这一点,但这些资源包会在资源包窗口中显示(而此模组添加的资源不会),而且你只需将资源添加到一个简单的文件夹中,这比每次都重新打包资源包要容易。

用法

在安装此模组并首次运行后,你会注意到在《我的世界》主文件夹(config、saves等文件夹所在位置)中创建了一个名为“resources”的文件夹。你将把资源添加到这个地方。

如果你不知道什么是资源位置,它由一个 资源域 和一个 资源路径 组成。对于模组而言,资源域通常就是模组ID,所以“randomthings:textures/blocks/advancedFluidDisplay.png”指的是我的“高级流体显示器”的一个纹理。原版资源位于“minecraft”资源域中(“minecraft:textures/blocks/dirt.png”)。如果你现在正在使用的某个模组要求你为某些内容输入一个资源位置(例如“自定义主菜单”或“自定义背景”),那么资源域将是“resources”文件夹中的一个文件夹。

当你看到一张图片时,这可能会更容易理解:

“singleplayer.png”的资源位置现在将是“test:textures/singleplayer.png”。

如果你不理解这一点 / 在与某个模组一起使用时遇到问题,请随时在本页面提问。 请勿 在你只是不明白这个模组的用途时提问哦 :P。

你放在“resources”文件夹中的内容可以覆盖原版资源,但会被已安装的资源包覆盖。如果你想覆盖所有内容,包括所有已安装的资源包,可以在“resources”文件夹所在位置创建一个名为“oresources”的新文件夹,放在“oresources”中的资源具有最高优先级,例如,会覆盖其他所有包含该资源的内容。下图展示了《我的世界》是如何“搜索”一个资源的:

调试

默认情况下,资源加载器会将其拥有文件夹的所有资源域打印到调试日志中。通过在你的“resources”或“oresources”文件夹中创建一个名为“debug”的文件夹,你可以启用额外的日志记录。然后,每当资源加载器找不到请求的文件时,它都会在调试日志中打印一行内容。

你可以在任何模组包中使用此模组,无需事先询问


Description

This mod is meant to be used together with my other mods Custom Main Menu and Custom Backgrounds but it can be used with any other mod that can take resource locations for config options.

It allows users to add their own resources to minecraft. While this would be possible using resource packs these resource packs would be visible in the resource pack window (Which the resources added by this mod aren't) and you can also just add resources to a simple folder which is easier then repackaging the resource pack every time.

Usage

After your first run with this mod installed you will notice a folder called "resources" created in your main minecraft folder (where config,saves etc. are located). That is the place you will be adding your resources to. 

In case you don't know what a resource location is it consists of a resource domain and a resource path. With mods the resource domain is generally the mod id so "randomthings:textures/blocks/advancedFluidDisplay.png" refers to a texture of my Advanced Fluid Display. The vanilla resources are located in the "minecraft" resource domain ("minecraft:textures/blocks/dirt.png"). If a mod you are using now requires you to enter a resource location for something (For example Custom Main Menu or Custom Backgrounds) the resource domain will be a folder in the resources folder.

This will probably be easier to understand when you see an image:

The Resource Location for singleplayer.png would now be "test:textures/singleplayer.png".

If you don't understand this / have problems using this with a mod feel free to ask on this page. Do not ask if you just don't get what this mod is supposed to do :P.

The things you put in the resources folder can override vanilla resources but can be overridden by installed resource packs. If you want to override everything, including all installed resource packs create a new folder called "oresources" where the resources folder is, resources put in "oresources" have the highest priority, e.g. override everything else that contains that resource. The following image shows how minecraft "searches" for a resource:

Debugging

By default Resource Loader will print all resource domains it has folders for to the debug log. By creating a folder called "debug" in either your resources or oresources folder you can enable additional logging. Resource Loader will then print a line to the debug log whenever it can't find a requested file.

You can use this mod in any modpack without asking first

本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。

评论区 (0)

登录 后才能发表评论

暂无评论

快来发表第一条评论吧!