跳到正文

ResourceToggle

作者:McMelonTV

Adds a way to instantly toggle all non-vanilla resource packs in-game for testing/debugging.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

ResourceToggle

A client-side Minecraft 26.2 mod that lets you instantly toggle all non-vanilla resource packs in-game for testing/debugging.

Features

  • Toggle button on the title screen and pause screen (top-right corner).
  • Hotkey in Controls → Misc (unbound by default).
  • Action bar feedback on switch.
  • Server never sees the switch: packs are always accepted, downloaded and reported as applied to the server (including required server packs); only the rendered resource stack switches. No packets are sent, no repository selection is changed.
  • Three switch modes, configurable in config/resourcetoggle.json:

| mode | behaviour |
|—————–|————————————————————————————————————————–|
| gpu | Both resource stacks are pre-loaded; the switch keeps the alternate stack warm in memory and only re-uploads to the GPU. |
| ram (default) | Both stacks are cached in RAM; switching never touches disk/zip/network again after the first warm-up. |
| on_demand | A regular vanilla-style reload on every switch (lowest memory use). |

In ram/gpu mode the first switch in a session is still a full load; every
following switch is served from memory and should be noticeably faster than a normal
F3+T reload.

Note on “instant”: 26.2’s new render pipeline (Vulkan/GL render graph,

RenderPipeline, atlas re-upload on apply) re-uploads textures during the

reload’s apply phase regardless of what the mod does. Keeping two fully live

render graphs simultaneously is not practical, so the gpu mode provides the

warm-stack + minimal-GPU-work switch rather than a true zero-cost pointer

swap.

Config

config/resourcetoggle.json (created on first run):

{
  "mode": "ram",
  "keepLoaderPacks": true,
  "toastOnToggle": true,
  "extraKeepPacks": [],
  "extraExcludePacks": []
}
  • mode: "gpu", "ram" or "on_demand".
  • keepLoaderPacks: keep mod-provided assets in vanilla-only mode (required for most mods to render).
  • extraKeepPacks / extraExcludePacks: force packs in or out of the vanilla-only stack by pack id.
  • toastOnToggle: show the action-bar message on switch.

Building

Requires JDK 25.

./gradlew build

Output: build/libs/ResourceToggle-1.0.jar — works on both Fabric and
NeoForge clients. Drop it into the mods folder. No Fabric API or other mods required.

常见问题

ResourceToggle 支持哪些 Minecraft 版本?

ResourceToggle 支持 Minecraft Java 版 26.2,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

ResourceToggle 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

McMelonTV 的其他作品

查看全部 →