Gallery of Trims
为每种原版盔甲纹饰提供有序的箱子画廊和盔甲架预览。
Gallery of Trims 是一个 Minecraft Java 版数据包,用于生成有序的盔甲纹饰画廊。它可以为每种原版纹饰组合创建箱子画廊、较小的筛选画廊以及盔甲架预览网格。
Minecraft 目标版本:1.21 和 1.21.1
数据包格式:48
命名空间:gallery_of_trims
安装
数据包安装:
- 将
gallery-of-trims-datapack-1.0.0.zip 放入世界的 datapacks 文件夹中。
- 运行
/reload。
- 运行
/function gallery_of_trims:help。
加载器安装:
- 将特定加载器的 JAR 文件放入
mods 文件夹:
- Fabric:
gallery-of-trims-fabric-1.0.0.jar
- Quilt:
gallery-of-trims-quilt-1.0.0.jar
- Forge:
gallery-of-trims-forge-1.0.0.jar
- NeoForge:
gallery-of-trims-neoforge-1.0.0.jar
- 从
mods 文件夹中移除任何旧的 gallery-of-trims-modloader-1.0.0.jar。
- 使用匹配的加载器启动游戏或服务器。
- 运行
/reload。
- 运行
/function gallery_of_trims:help。
这些加载器 JAR 文件是无代码模组。每个文件都包含数据包以及针对某一加载器的元数据。Fabric 需要 Fabric API 的资源加载器模块。除非 Fabric API 兼容性提供了 fabric-resource-loader-v0,否则 Quilt 需要 Quilt Standard Libraries 的资源加载器模块。Forge 和 NeoForge 使用 lowcodefml。
权限
所有命令均使用 /function,因此在单人游戏中需要开启作弊,或在服务器上拥有管理员权限。加载器 JAR 仅负责加载数据包;它不会允许非管理员玩家执行这些命令。
快速开始
生成完整的箱子画廊:
/function gallery_of_trims:spawn
生成紧凑的完整画廊:
/function gallery_of_trims:spawn/compact
显示盔甲架预览命令:
/function gallery_of_trims:spawn/stand
清除最近生成的画廊:
/function gallery_of_trims:teardown/clear_nearest
默认布局从命令位置向正 X 轴和正 Z 轴方向扩展。箱子之间间隔两个方块,以保持其为单个箱子的状态。生成命令会创建一个不可见的原点标记,以便稍后可以从任意位置运行清除命令。
公开命令
以下是供玩家/管理员使用的命令。gallery_of_trims:z_internal/... 下的函数是生成的内部函数,不应直接运行。
| 命令 |
功能说明 |
/function gallery_of_trims:help |
在聊天中打印主命令列表。 |
/function gallery_of_trims:info |
打印兼容性、布局计数和清除说明。 |
/function gallery_of_trims:spawn |
生成带有告示牌的完整箱子画廊。 |
/function gallery_of_trims:spawn/compact |
以交错紧凑布局生成完整的箱子画廊。 |
/function gallery_of_trims:spawn/no_signs |
生成完整的箱子画廊,然后移除其告示牌。 |
/function gallery_of_trims:spawn/stand |
在聊天中打印盔甲架查看命令。 |
/function gallery_of_trims:teardown/clear |
安全清除所有已跟踪的 Gallery of Trims 生成物。 |
/function gallery_of_trims:teardown/clear_last |
安全清除最近生成的受跟踪画廊/视图。 |
/function gallery_of_trims:teardown/clear_nearest |
安全清除最近的受跟踪画廊/视图。 |
/function gallery_of_trims:teardown/clear_here |
从当前位置清除,仿佛该位置是原始生成原点。 |
/function gallery_of_trims:teardown/fast_clear |
使用宽泛的填充命令清除所有受跟踪的生成物(适用于箱子/告示牌区域)。 |
箱子画廊命令
完整画廊
/function gallery_of_trims:spawn
按行生成所有原版盔甲纹饰图案/材质组合。默认的完整画廊包含 175 个箱子、175 个告示牌和 4500 组纹饰物品堆叠。
每个箱子都有名称,其上方有一个告示牌,显示该箱子内的盔甲部件和纹饰范围。皮革盔甲物品明确移除了染色颜色组件,因此使用默认的皮革外观。
紧凑画廊
/function gallery_of_trims:spawn/compact
生成与完整画廊相同的内容,但行间距更紧密交错。这使用了与普通完整画廊相同的箱子内容。
无告示牌的完整画廊
/function gallery_of_trims:spawn/no_signs
生成完整的箱子画廊,并在之后移除生成的告示牌。箱子内容和箱子名称保持不变。
按盔甲槽位生成
这些命令会为支持该槽位的所有盔甲基础材质生成特定盔甲槽位的行。每行仍包含该盔甲物品的每种纹饰图案/材质组合。
| 指令 |
生成内容 |
/function gallery_of_trims:spawn/helmets |
皮革、锁链、铁、金、钻石、下界合金和乌龟头盔的行。 |
/function gallery_of_trims:spawn/chestplates |
皮革、锁链、铁、金、钻石和下界合金胸甲的行。 |
/function gallery_of_trims:spawn/leggings |
皮革、锁链、铁、金、钻石和下界合金护腿的行。 |
/function gallery_of_trims:spawn/boots |
皮革、锁链、铁、金、钻石和下界合金靴子的行。 |
示例:
/function gallery_of_trims:spawn/helmets
按护甲基础材质生成
这些指令会为一种护甲基础材质生成完整的装饰行。
| 指令 |
生成内容 |
/function gallery_of_trims:spawn/leather |
皮革头盔、胸甲、护腿和靴子。 |
/function gallery_of_trims:spawn/chainmail |
锁链头盔、胸甲、护腿和靴子。 |
/function gallery_of_trims:spawn/iron |
铁头盔、胸甲、护腿和靴子。 |
/function gallery_of_trims:spawn/gold |
金头盔、胸甲、护腿和靴子。 |
/function gallery_of_trims:spawn/diamond |
钻石头盔、胸甲、护腿和靴子。 |
/function gallery_of_trims:spawn/netherite |
下界合金头盔、胸甲、护腿和靴子。 |
/function gallery_of_trims:spawn/turtle |
仅乌龟头盔。 |
示例:
/function gallery_of_trims:spawn/diamond
按装饰图案生成
图案指令会生成 25 个箱子:每个护甲物品一个箱子。每个箱子包含该单一装饰图案在所有 10 种装饰材质上的效果。
可用的图案指令:
/function gallery_of_trims:spawn/pattern/sentry
/function gallery_of_trims:spawn/pattern/dune
/function gallery_of_trims:spawn/pattern/coast
/function gallery_of_trims:spawn/pattern/wild
/function gallery_of_trims:spawn/pattern/ward
/function gallery_of_trims:spawn/pattern/eye
/function gallery_of_trims:spawn/pattern/vex
/function gallery_of_trims:spawn/pattern/tide
/function gallery_of_trims:spawn/pattern/snout
/function gallery_of_trims:spawn/pattern/rib
/function gallery_of_trims:spawn/pattern/spire
/function gallery_of_trims:spawn/pattern/wayfinder
/function gallery_of_trims:spawn/pattern/shaper
/function gallery_of_trims:spawn/pattern/silence
/function gallery_of_trims:spawn/pattern/raiser
/function gallery_of_trims:spawn/pattern/host
/function gallery_of_trims:spawn/pattern/flow
/function gallery_of_trims:spawn/pattern/bolt
示例:
/function gallery_of_trims:spawn/pattern/sentry
按装饰材质生成
装饰材质指令会生成 25 个箱子:每个护甲物品一个箱子。每个箱子包含该单一装饰材质在所有 18 种装饰图案上的效果。
可用的装饰材质指令:
/function gallery_of_trims:spawn/material/quartz
/function gallery_of_trims:spawn/material/iron
/function gallery_of_trims:spawn/material/netherite
/function gallery_of_trims:spawn/material/redstone
/function gallery_of_trims:spawn/material/copper
/function gallery_of_trims:spawn/material/gold
/function gallery_of_trims:spawn/material/emerald
/function gallery_of_trims:spawn/material/diamond
/function gallery_of_trims:spawn/material/lapis
/function gallery_of_trims:spawn/material/amethyst
示例:
/function gallery_of_trims:spawn/material/gold
盔甲架视图
盔甲架视图指令会生成视觉装饰预览,而不是箱子。每种护甲基础视图会创建 180 个盔甲架:18 种装饰图案乘以 10 种装饰材质。布局向正 X 轴和正 Z 轴扩展。乌龟仅使用头盔盔甲架。
在聊天中列出盔甲架指令:
/function gallery_of_trims:spawn/stand
生成盔甲架视图:
/function gallery_of_trims:spawn/stand/leather
/function gallery_of_trims:spawn/stand/chainmail
/function gallery_of_trims:spawn/stand/iron
/function gallery_of_trims:spawn/stand/gold
/function gallery_of_trims:spawn/stand/diamond
/function gallery_of_trims:spawn/stand/netherite
/function gallery_of_trims:spawn/stand/turtle
示例:
/function gallery_of_trims:spawn/stand/leather
/function gallery_of_trims:spawn/stand/netherite
没有 spawn/stand/all 指令。一次性生成所有护甲基础视图将创建 1260 个盔甲架。
染色皮革盔甲架
皮革盔甲颜色使用十进制 RGB 值。只有皮革盔甲可以被染色。普通的箱子画廊会将皮革盔甲保持为默认的皮革颜色。
生成一个无装饰的染色皮革盔甲架:
/function gallery_of_trims:spawn/stand/leather_color {color:16711680}
生成一个带有特定装饰的染色皮革盔甲架:
/function gallery_of_trims:spawn/stand/leather_color_trim {color:16711680,trim_material:"gold",pattern:"sentry"}
生成所有 180 个具有单一染料颜色的皮革装饰盔甲架:
/function gallery_of_trims:spawn/stand/leather_color_all {color:16711680}
常用颜色值:
| 颜色 |
十进制 RGB |
| 黑色 |
0 |
| 蓝色 |
255 |
| 绿色 |
65280 |
| 青色 |
65535 |
| 紫色 |
8388736 |
| 红色 |
16711680 |
| 橙色 |
16753920 |
| 白色 |
16777215 |
十进制 RGB 公式:
color = red * 65536 + green * 256 + blue
RGB 255, 80, 20 的示例:
255 * 65536 + 80 * 256 + 20 = 16732180
用法如下:
/function gallery_of_trims:spawn/stand/leather_color_all {color:16732180}
清除指令
安全清除是默认选项。它仅移除箱子画廊的预期箱子/告示牌位置,以及盔甲架视图的已标记盔甲架。
清除所有跟踪的生成项:
/function gallery_of_trims:teardown/clear
清除最近生成的跟踪画廊/视图:
/function gallery_of_trims:teardown/clear_last
清除最近的跟踪画廊/视图:
/function gallery_of_trims:teardown/clear_nearest
从当前位置清除:
/function gallery_of_trims:teardown/clear_here
当旧的资源包没有原点标记时,请使用 clear_here。在运行命令前请站在原始出生点位置。
快速清除:
/function gallery_of_trims:teardown/fast_clear
fast_clear 使用宽泛的 fill ... replace minecraft:chest 和 fill ... replace minecraft:oak_sign 命令来覆盖每个已追踪的画廊足迹。它速度更快,但可能会移除该足迹内无关的箱子或橡木告示牌。对于盔甲架视图,它仍然会移除带有 Gallery of Trims 标签的盔甲架。
数量统计
| 物品 |
数量 |
| 护甲物品 |
25 |
| 纹饰图案 |
18 |
| 纹饰材料 |
10 |
| 每件护甲的组合数 |
180 |
| 每件护甲的默认箱子数 |
7 |
| 完整画廊的默认箱子总数 |
175 |
| 完整画廊的默认告示牌总数 |
175 |
| 完整画廊的纹饰物品堆叠总数 |
4500 |
| 按图案筛选的生成 |
25 个箱子,250 个纹饰物品堆叠 |
| 按材料筛选的生成 |
25 个箱子,450 个纹饰物品堆叠 |
| 每种基础护甲的盔甲架视图 |
180 个盔甲架 |
| 彩色皮革全纹饰视图 |
180 个盔甲架 |
Gallery of Trims
Organized chest galleries and armor stand previews for every vanilla armor trim.
Gallery of Trims is a Minecraft Java datapack that spawns organized armor trim galleries. It can create chest galleries for every vanilla trim combination, smaller filtered galleries, and armor stand preview grids.
Minecraft target: 1.21 and 1.21.1
Data pack format: 48
Namespace: gallery_of_trims
Installation
Datapack install:
- Put
gallery-of-trims-datapack-1.0.0.zip in a world's datapacks folder.
- Run
/reload.
- Run
/function gallery_of_trims:help.
Modloader install:
- Put the loader-specific JAR in the
mods folder:
- Fabric:
gallery-of-trims-fabric-1.0.0.jar
- Quilt:
gallery-of-trims-quilt-1.0.0.jar
- Forge:
gallery-of-trims-forge-1.0.0.jar
- NeoForge:
gallery-of-trims-neoforge-1.0.0.jar
- Remove any older
gallery-of-trims-modloader-1.0.0.jar from the mods folder.
- Start the game or server with the matching loader.
- Run
/reload.
- Run
/function gallery_of_trims:help.
The modloader JARs are no-code mods. Each one contains the datapack plus metadata for one loader. Fabric requires Fabric API's resource loader module. Quilt requires Quilt Standard Libraries' resource loader module unless Fabric API compatibility provides fabric-resource-loader-v0. Forge and NeoForge use lowcodefml.
Permissions
All commands use /function, so they require cheats in singleplayer or operator permission on a server. The modloader JAR only loads the datapack; it does not let non-operator players run these commands.
Quick Start
Spawn the full chest gallery:
/function gallery_of_trims:spawn
Spawn the compact full gallery:
/function gallery_of_trims:spawn/compact
Show armor stand preview commands:
/function gallery_of_trims:spawn/stand
Clear the nearest spawned gallery:
/function gallery_of_trims:teardown/clear_nearest
The default layouts expand toward positive X and positive Z from the command position. Chests are spaced two blocks apart so they stay single chests. Spawn commands create an invisible origin marker so clear commands can be run later from anywhere.
Public Commands
These are the commands intended for players/admins. Functions under gallery_of_trims:z_internal/... are generated internals and should not be run directly.
| Command |
What It Does |
/function gallery_of_trims:help |
Prints the main command list in chat. |
/function gallery_of_trims:info |
Prints compatibility, layout counts, and clearing notes. |
/function gallery_of_trims:spawn |
Spawns the full chest gallery with signs. |
/function gallery_of_trims:spawn/compact |
Spawns the full chest gallery in a staggered compact layout. |
/function gallery_of_trims:spawn/no_signs |
Spawns the full chest gallery, then removes its signs. |
/function gallery_of_trims:spawn/stand |
Prints armor stand view commands in chat. |
/function gallery_of_trims:teardown/clear |
Safely clears all tracked Gallery of Trims spawns. |
/function gallery_of_trims:teardown/clear_last |
Safely clears the most recently spawned tracked gallery/view. |
/function gallery_of_trims:teardown/clear_nearest |
Safely clears the nearest tracked gallery/view. |
/function gallery_of_trims:teardown/clear_here |
Clears from your current position as if it were the original spawn origin. |
/function gallery_of_trims:teardown/fast_clear |
Clears all tracked spawns with broad fill commands for chest/sign areas. |
Chest Gallery Commands
Full Gallery
/function gallery_of_trims:spawn
Spawns every vanilla armor trim pattern/material combination in chest rows. The default full gallery contains 175 chests, 175 signs, and 4500 trim item stacks.
Each chest is named and has a sign above it showing the armor piece and trim range inside that chest. Leather armor items explicitly remove the dyed-color component so they use the default leather appearance.
Compact Gallery
/function gallery_of_trims:spawn/compact
Spawns the same full gallery, but rows are staggered closer together. This uses the same chest contents as the normal full gallery.
Full Gallery Without Signs
/function gallery_of_trims:spawn/no_signs
Spawns the full chest gallery and removes the generated signs afterward. Chest contents and chest names are unchanged.
Spawn By Armor Slot
These commands spawn rows for a specific armor slot across all armor base materials that support that slot. Each row still contains every trim pattern/material combination for that armor item.
| Command |
What It Spawns |
/function gallery_of_trims:spawn/helmets |
Helmet rows for leather, chainmail, iron, gold, diamond, netherite, and turtle. |
/function gallery_of_trims:spawn/chestplates |
Chestplate rows for leather, chainmail, iron, gold, diamond, and netherite. |
/function gallery_of_trims:spawn/leggings |
Legging rows for leather, chainmail, iron, gold, diamond, and netherite. |
/function gallery_of_trims:spawn/boots |
Boot rows for leather, chainmail, iron, gold, diamond, and netherite. |
Example:
/function gallery_of_trims:spawn/helmets
Spawn By Armor Base Material
These commands spawn the full trim rows for one armor base material.
| Command |
What It Spawns |
/function gallery_of_trims:spawn/leather |
Leather helmet, chestplate, leggings, and boots. |
/function gallery_of_trims:spawn/chainmail |
Chainmail helmet, chestplate, leggings, and boots. |
/function gallery_of_trims:spawn/iron |
Iron helmet, chestplate, leggings, and boots. |
/function gallery_of_trims:spawn/gold |
Golden helmet, chestplate, leggings, and boots. |
/function gallery_of_trims:spawn/diamond |
Diamond helmet, chestplate, leggings, and boots. |
/function gallery_of_trims:spawn/netherite |
Netherite helmet, chestplate, leggings, and boots. |
/function gallery_of_trims:spawn/turtle |
Turtle helmet only. |
Example:
/function gallery_of_trims:spawn/diamond
Spawn By Trim Pattern
Pattern commands spawn 25 chests: one chest for each armor item. Each chest contains that one trim pattern across all 10 trim materials.
Available pattern commands:
/function gallery_of_trims:spawn/pattern/sentry
/function gallery_of_trims:spawn/pattern/dune
/function gallery_of_trims:spawn/pattern/coast
/function gallery_of_trims:spawn/pattern/wild
/function gallery_of_trims:spawn/pattern/ward
/function gallery_of_trims:spawn/pattern/eye
/function gallery_of_trims:spawn/pattern/vex
/function gallery_of_trims:spawn/pattern/tide
/function gallery_of_trims:spawn/pattern/snout
/function gallery_of_trims:spawn/pattern/rib
/function gallery_of_trims:spawn/pattern/spire
/function gallery_of_trims:spawn/pattern/wayfinder
/function gallery_of_trims:spawn/pattern/shaper
/function gallery_of_trims:spawn/pattern/silence
/function gallery_of_trims:spawn/pattern/raiser
/function gallery_of_trims:spawn/pattern/host
/function gallery_of_trims:spawn/pattern/flow
/function gallery_of_trims:spawn/pattern/bolt
Example:
/function gallery_of_trims:spawn/pattern/sentry
Spawn By Trim Material
Trim material commands spawn 25 chests: one chest for each armor item. Each chest contains that one trim material across all 18 trim patterns.
Available trim material commands:
/function gallery_of_trims:spawn/material/quartz
/function gallery_of_trims:spawn/material/iron
/function gallery_of_trims:spawn/material/netherite
/function gallery_of_trims:spawn/material/redstone
/function gallery_of_trims:spawn/material/copper
/function gallery_of_trims:spawn/material/gold
/function gallery_of_trims:spawn/material/emerald
/function gallery_of_trims:spawn/material/diamond
/function gallery_of_trims:spawn/material/lapis
/function gallery_of_trims:spawn/material/amethyst
Example:
/function gallery_of_trims:spawn/material/gold
Armor Stand Views
Armor stand view commands spawn visual trim previews instead of chests. Each armor base view creates 180 armor stands: 18 trim patterns times 10 trim materials. The layout expands toward positive X and positive Z. Turtle uses helmet-only stands.
List armor stand commands in chat:
/function gallery_of_trims:spawn/stand
Spawn armor stand views:
/function gallery_of_trims:spawn/stand/leather
/function gallery_of_trims:spawn/stand/chainmail
/function gallery_of_trims:spawn/stand/iron
/function gallery_of_trims:spawn/stand/gold
/function gallery_of_trims:spawn/stand/diamond
/function gallery_of_trims:spawn/stand/netherite
/function gallery_of_trims:spawn/stand/turtle
Examples:
/function gallery_of_trims:spawn/stand/leather
/function gallery_of_trims:spawn/stand/netherite
There is no spawn/stand/all command. Spawning every armor base view at once would create 1260 armor stands.
Colored Leather Armor Stands
Leather armor colors use decimal RGB values. Only leather armor can be dyed. The normal chest galleries keep leather armor at the default leather color.
Spawn one dyed leather armor stand with no trim:
/function gallery_of_trims:spawn/stand/leather_color {color:16711680}
Spawn one dyed leather armor stand with a specific trim:
/function gallery_of_trims:spawn/stand/leather_color_trim {color:16711680,trim_material:"gold",pattern:"sentry"}
Spawn all 180 leather trim armor stands with one dye color:
/function gallery_of_trims:spawn/stand/leather_color_all {color:16711680}
Common color values:
| Color |
Decimal RGB |
| Black |
0 |
| Blue |
255 |
| Green |
65280 |
| Cyan |
65535 |
| Purple |
8388736 |
| Red |
16711680 |
| Orange |
16753920 |
| White |
16777215 |
Decimal RGB formula:
color = red * 65536 + green * 256 + blue
Example for RGB 255, 80, 20:
255 * 65536 + 80 * 256 + 20 = 16732180
Use it like this:
/function gallery_of_trims:spawn/stand/leather_color_all {color:16732180}
Clearing Commands
Safe clear is the default. It removes only expected chest/sign positions for chest galleries and tagged armor stands for armor stand views.
Clear all tracked spawns:
/function gallery_of_trims:teardown/clear
Clear the most recently spawned tracked gallery/view:
/function gallery_of_trims:teardown/clear_last
Clear the nearest tracked gallery/view:
/function gallery_of_trims:teardown/clear_nearest
Clear from the current position:
/function gallery_of_trims:teardown/clear_here
Use clear_here when an old gallery has no origin marker. Stand at the original spawn position before running it.
Fast clear:
/function gallery_of_trims:teardown/fast_clear
fast_clear uses broad fill ... replace minecraft:chest and fill ... replace minecraft:oak_sign commands over each tracked chest gallery footprint. It is faster, but it can remove unrelated chests or oak signs inside that footprint. For armor stand views, it still removes tagged Gallery of Trims armor stands.
Counts
| Item |
Count |
| Armor items |
25 |
| Trim patterns |
18 |
| Trim materials |
10 |
| Combinations per armor item |
180 |
| Default chests per armor item |
7 |
| Default full gallery chests |
175 |
| Default full gallery signs |
175 |
| Default full gallery trim item stacks |
4500 |
| Pattern-filtered spawn |
25 chests, 250 trim item stacks |
| Material-filtered spawn |
25 chests, 450 trim item stacks |
| Armor stand view per armor base |
180 stands |
| Colored leather all-trims view |
180 stands |
评论 0
登录后参与评分
还没有评论,来抢沙发吧