资源包编辑器模组
一款适用于 Minecraft 1.21.1 的 Fabric 模组,让你无需离开游戏即可创建、编辑和分享资源包。无需外部图像编辑器——可在 Minecraft 内部直接编辑任意方块或物品纹理,并一键将完成的资源包导出为 .zip 文件。
依赖要求
安装方法
- 为 Minecraft 1.21.1 安装 Fabric Loader。
- 将 Fabric API 放入你的
mods/ 文件夹中。
- 将
resourcepackeditormod-1.0.0.jar 放入同一个 mods/ 文件夹中。
- 启动 Minecraft。
你的 mods/ 文件夹位于:
- Windows:
%APPDATA%\.minecraft\mods
- macOS:
~/Library/Application Support/minecraft/mods
- Linux:
~/.minecraft/mods
使用方法
所有操作均在原版 选项 → 资源包 界面中进行。该模组在现有列表上方添加了两个按钮:
创建新资源包
当 未选择任何资源包(或仅选中默认资源包)时,左侧按钮显示为 Create New Pack。点击它可执行以下操作:
- 输入 名称 和 描述。
- 点击 Create —— 模组会在
resourcepacks/<name>/ 下生成一个新文件夹,写入有效的 pack.mcmeta,创建一个白色默认图标,并将你当前加载的资源中的所有方块/物品纹理提取出来作为起始模板。
- 你将进入 Texture Selector(纹理选择器) —— 参见 编辑。
编辑资源包
当你 在列表中选中一个已有资源包 时,左侧按钮变为 Edit Pack: <name>。点击后,模组会打开指向该资源包 assets/minecraft/textures/ 目录的 Texture Selector(纹理选择器)。
编辑内容会直接保存至原始资源包中——不会创建副本。
分享资源包
右侧按钮 Share Pack 在未选择资源包时为灰色不可用状态。激活后,点击它可打开操作系统原生的文件对话框。选择目标位置后,模组会将整个资源包文件夹压缩为 <PackName>.zip 文件,你可以将其发送到 Discord、上传至 Modrinth、发送给好友等。
压缩操作在后台运行,因此对于大型整合包也不会导致游戏无响应。
编辑
纹理选择器
一个限定于你资源包纹理的文件浏览器。点击 [DIR] 条目可进入下级目录;点击 .png 文件可在 像素编辑器 中打开它。使用 返回 按钮可向上跳转一级文件夹(或从根目录返回到资源包选择界面)。编辑图标 按钮会直接跳转到你的资源包的 pack.png 文件。
像素编辑器
像素编辑器会以高倍缩放渲染纹理,并显示网格覆盖层和棋盘格透明背景。点击并拖动以进行绘制。
工具(屏幕右侧 — 悬停查看提示):
| 按钮 |
工具 |
行为 |
| P |
铅笔 |
单击或拖动以绘制单个像素。 |
| L |
直线 |
从起点拖到终点,松开鼠标即可绘制一条直线。 |
| R |
矩形 |
单击并拖动以绘制一个矩形轮廓。 |
| C |
圆形 |
从中心点开始拖动以定义半径。 |
| F | Flood Fill | 点击以用当前颜色填充连续区域。 |
调色板(左侧):20 种预设颜色。点击选择;悬停可查看十六进制代码。如果屏幕高度不足以显示全部颜色,请滚动查看。
撤销 / 重做:工具列表下方的箭头按钮。历史记录上限为 50 步。整段铅笔拖拽计为一步,因此你可以一键还原完整笔触,无需频繁撤销。
保存:将编辑后的图像写回原文件。取消则丢弃更改。
提示
- 修改会直接保存到磁盘——如果该资源包当前在 Minecraft 中处于激活状态,按 F3+T(或切换禁用/启用该资源包)即可重新加载纹理并立即查看更改。
- 资源包格式版本设置为 34(对应 Minecraft 1.21.1)。若要在其他 Minecraft 版本中使用导出的 zip 文件,请相应编辑
pack.mcmeta。
- 默认的纹理提取功能会读取所有当前已加载的资源,因此当你点击 Create New Pack 时,如果启用了其他资源包,这些包的纹理将作为基础素材。
- 纹理编辑器使用最近邻采样(nearest-neighbor sampling)——编辑器中显示的内容即为 Minecraft 实际渲染的效果。
License
ARR
Resource Pack Editor Mod
A Fabric mod for Minecraft 1.21.1 that lets you create, edit, and share resource packs without ever leaving the game. No external image editor required — pixel-edit any block or item texture from inside Minecraft, and export the finished pack as a .zip with one click.
Requirements
Installation
- Install the Fabric Loader for Minecraft 1.21.1.
- Drop Fabric API into your
mods/ folder.
- Drop
resourcepackeditormod-1.0.0.jar into the same mods/ folder.
- Launch Minecraft.
Your mods/ folder lives at:
- Windows:
%APPDATA%\.minecraft\mods
- macOS:
~/Library/Application Support/minecraft/mods
- Linux:
~/.minecraft/mods
Usage
Everything lives inside the vanilla Options → Resource Packs screen. The mod adds two buttons above the existing row:
Create New Pack
With no pack selected (or only the default selected), the left button reads Create New Pack. Click it to:
- Enter a name and a description.
- Hit Create — the mod generates a new folder under
resourcepacks/<name>/, writes a valid pack.mcmeta, creates a white default icon, and extracts every block/item texture from your currently-loaded resources as a starting template.
- You'll land in the Texture Selector — see Editing.
Edit Pack
When you select an existing pack in the list, the left button changes to Edit Pack: <name>. Click it and the mod opens the Texture Selector pointed at that pack's assets/minecraft/textures/ directory.
Edits save directly to the original pack — no copy is made.
Share Pack
The right button, Share Pack, is greyed out until you select a pack. When active, click it to open your operating system's native file dialog. Choose a destination, and the mod zips the entire pack folder into a <PackName>.zip you can drop into Discord, upload to Modrinth, send to a friend, etc.
The zipping runs in the background so the game doesn't freeze on large packs.
Editing
Texture Selector
A file browser scoped to your pack's textures. Click a [DIR] entry to descend; click a .png to open it in the Pixel Editor. Use Back to go up a folder (or to return to the resource pack screen from the root). The Edit Icon button jumps straight to your pack's pack.png.
Pixel Editor
The pixel editor renders the texture at high zoom with a grid overlay and a checkered transparency background. Click and drag to draw.
Tools (right side of the screen — hover for tooltips):
| Button |
Tool |
Behavior |
| P |
Pencil |
Click or drag to paint single pixels. |
| L |
Line |
Click-drag from start to end, release to draw a straight line. |
| R |
Rectangle |
Click-drag a rectangle outline. |
| C |
Circle |
Click-drag from center to define radius. |
| F |
Flood Fill |
Click to fill a contiguous area with the current color. |
Color palette (left side): 20 preset colors. Click to select; hover to see the hex code. Scroll if your screen is too short to show them all.
Undo / Redo: arrows under the tool list. History is capped at 50 steps. A whole pencil drag counts as one step, so you can revert a full stroke without spamming undo.
Save: writes the edited image back to its original file. Cancel discards changes.
Tips
- Edits are saved straight to disk — if the pack is currently active in Minecraft, hit F3+T (or toggle the pack off/on) to reload textures and see your changes immediately.
- Resource pack format version is set to 34 (Minecraft 1.21.1). If you want to use the exported zip on a different Minecraft version, edit
pack.mcmeta accordingly.
- The default texture extraction pulls from all currently-loaded resources, so if you have other resource packs enabled when you click Create New Pack, those packs' textures will be used as the baseline.
- The texture editor uses nearest-neighbor sampling — what you see in the editor is exactly what Minecraft will render.
License
ARR
评论 0
登录后参与评分
还没有评论,来抢沙发吧