ResourceToggle
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
gpumode 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 的其他作品
查看全部 →
Better Villager Pickup
A mod that lets you pick up villagers as items allowing you to move them easily.
Vault Mapper
A mod that adds an on-screen minimap of the vault you're in for the Vault Hunters 3rd Edition modpack.
Inventory Overhaul
A mod that aims to improve inventory management by changing the core aspects of the player's inventory and hotbar.
Create: Factory Floor
Create-centric 1.21.1 modpack with numerous Create and Farmers' Delight add-ons mostly aimed at SMPs.
评论
登录后评论和评分