Shulker Palette
Shulker Palette 将潜影盒变为一个方块调色板。在盒子中装入你想要用来建造的方块,手持该盒子,每次右键点击即可放置其中一个方块。你可以随机选择方块、手动指定,或按行逐行以渐变方式抽取。我制作它的初衷是为了建造由多种方块混合而成的墙壁、地板和小径,而在原版游戏中,这意味每放置一个方块都需要切换一次快捷栏槽位。
客户端和服务器端都需要安装此模组。单人游戏和局域网世界可直接使用,无需额外配置。
功能特性
四种选择下一个方块的方式
- 随机(Random):根据数量比例抽取,因此盒子里数量越多的方块出现的频率越高。例如,盒子里有 48 个石子和 16 个安山岩,那么石子有 3/4 的概率被选中。
- 等概率随机(Equal random):无论每种方块的数量多少,每种方块被选中的概率均相同。
- 指定(Pick):每次点击都放置你指定的那一种方块。
- 渐变(Gradient):将盒子的每一行视为一个步骤。你选择目标行后,每次点击都会从该行中抽取方块。
一键式手持菜单
- 手持潜影盒时按下 V 键即可打开调色板菜单。它可以在不打开盒子的情况下启用/禁用调色板、更改模式以及保存或加载预设。
支持生存模式
- 每次放置的方块都会从盒子中扣除。在创造模式下,不会消耗任何方块。
- 工具、食物及其他非方块物品会保留在盒子内,永远不会被放置。
- 方块的放置遵循游戏的正常机制,因此它们的方向正确且会发出正常的放置音效。
预览下一个方块
- 调色板盒子会在你的物品栏、快捷栏和手持位置显示即将放置的方块,仿佛它就开放在盒子内部一样。
- 缓慢循环的彩虹色轮廓线标记着处于随机模式的预设。
- 半透明的下一个方块预览可以显示右键点击时的放置位置(默认关闭)。
- 按住 V 键并滚动鼠标滚轮,可在快捷栏上方查看盒子的内容及其当前选定的状态。
预设随盒子绑定
- 调色板的设置保存在潜影盒本体上,因此当你放置、破坏或将其交给他人时,设置依然保留。
- 每个盒子拥有独立的预设,因此同一个箱子中的两个盒子可以设置为不同的预设。
预设库
- 为盒子的预设命名并保存,可选择仅保存于当前世界或所有世界,之后可加载到任意盒子中。
- 在创造模式下,加载操作会自动填满盒子。在生存模式下,它会显示每个槽位应放入的内容,以便你用真实方块填充盒子。
- 预设以纯文本文件形式保存,可读、可编辑、可分享,并且预设库支持通过剪贴板进行复制和粘贴。
自动适配形状(仅限创造模式)
- 调色板可以将方块放置为其对应的楼梯、台阶、墙、栅栏以及其他游戏生成的衍生形状。例如,装有石子和安山岩的盒子可以分别建造出石质和安山岩材质的楼梯。
重绘功能(仅限创造模式)
- 重绘会将你正对着的方块替换为调色板的下一个方块,而不是在旁边放置新方块。
- 它适用于任何内部为空且无数据的方块,新生成的方块会保留原方块的方向属性,因此楼梯仍然是楼梯。
- 半透明预览会在你点击前显示方块将变成的样子。
依赖项
- Fabric API。
- MenuKit 7.5.0 或更高版本,低于 8.0.0。用于绘制调色板菜单、预设库以及快捷栏上方的盒子视图。
- SlotKit 2.2.0 或更高版本,低于 3.0.0。用于布局潜影盒的槽位,包括额外的行。
- Keybindery 1.4.1 或更高版本。允许将按键设置为组合键,并为“形状”按键提供默认的 V + Left Shift 绑定。
YACL 已内置,无需单独安装。
搭配推荐
- Mod Menu 或 Mod Hub,可从模组列表直接打开设置界面。
- Open Anywhere 1.0.0 或更高版本,是我开发的另一个模组,允许从物品栏或打开的箱子中开启潜影盒。以这种方式打开的调色板盒子会显示所有行,并在启用该模组的相应设置后,在其旁边显示调色板按钮。
兼容性
- Minecraft 26.3 及 Fabric 平台。
- 需要在客户端和服务器端同时安装。
- 1.0.0 版本适用于 Minecraft 1.21.11。1.0.0 版本的预设无法迁移至 2.0.0。盒子内部的方块位置保持不变,重新启用调色板后,盒子即可恢复为调色板功能。
使用方法
调色板菜单
在主手持有任意潜影盒的情况下,按下调色板按键(V)。单击是指按下后立即松开,中间不进行滚动操作。调色板菜单将在不打开盒子的情况下弹出,无论调色板处于开启还是关闭状态均可使用,因此普通的潜影盒也可以在此处转换为调色板。
每一行对应其所修改的设置。当调色板处于关闭状态时,除“Palette: On / Off”之外的所有选项均为灰色不可用状态。
- Palette: On / Off:开启或关闭调色板,菜单保持打开状态。关闭后,盒子恢复为普通储物箱,其内的方块保留原位。
- Mode:显示当前模式,每次点击切换到下一种模式(参见“选择模式”)。调色板关闭时此项为灰色不可用。
- Repaint: On / Off:仅在创造模式下显示,且在调色板关闭时为灰色不可用(参见“重绘”)。
- Save to library 和 Load from library:详见“保存和加载预设”。
- Clear cheat sheet:当盒子包含 cheatsheet(作弊提示表)时显示,并将其移除。
- Manage library:打开预设库。
按下 V、E 或 Escape 键可关闭菜单。如果潜影盒离开主手,菜单也会自动关闭。
Toggle palette 按键(默认未绑定)可在不打开任何界面的情况下,为主手中的潜影盒开启或关闭调色板。动作栏会显示“Palette on”或“Palette off”。
放置方块
- 在主手持有调色盒时,右键点击一个方块。调色盒的下一个方块会以与从快捷栏放置方块相同的方式紧贴该方块放置。
- 在生存模式中,放置的方块会从盒子中取出。在创造模式中,不会消耗任何物品。
- 仅放置方块类物品。盒子中的工具、食物和其他物品会被忽略,绝不会被使用。
- 如果盒子中没有可放置的方块,点击将不放置任何东西并播放失败音效。
- 潜行不会改变调色盒的行为,因此你可以在放置方块时像对待普通方块一样潜行。
- 处于开启状态的调色盒会持续从盒子中放置方块,且其自身不会被放置。若要放置潜影盒,请先在菜单中或通过“切换调色板”按键关闭其调色盒功能。
- 下一个方块的半透明预览会显示右键点击时将放置的位置,并朝向其实际放置的方向。它仅显示方块能够实际放置的位置。默认情况下此预览是关闭的,放置预览设置可将其开启。
选择模式
调色盒菜单中的模式行按以下顺序循环切换:随机(Random)、等概率随机(Equal random)、选取(Pick)、渐变(Gradient),然后回到随机(Random)。其工具提示会描述当前模式。
| 模式 |
每次右键点击放置的内容 |
| 随机 (Random) |
从盒子中的所有方块中根据数量加权抽取一个方块。盒子中的每个方块都是一张抽奖券。 |
| 等概率随机 (Equal random) |
随机抽取一种类型的方块,每种类型拥有相同的几率,无论各自的数量多少。 |
| 选取 (Pick) |
始终放置你选定的那种方块。当盒子中该类型的方块耗尽后,选取目标会自动切换到下一种类型。 |
| 渐变 (Gradient) |
仅从当前行中根据数量加权抽取一个方块。 |
选取和渐变模式使用调色盒按键来选择方块或行,详见下文。
调色盒按键
默认情况下,调色盒按键为 V。在主手持有关键调色盒时按住该键并滚动滚轮以更改选择。按住该键滚动不会改变你的快捷栏槽位,且选择会在两端循环包裹。
- 在选取模式下,它会移动到上一个或下一个类型的方块。操作栏会显示方块名称以及盒子中剩余的数量。
- 在渐变模式下,它会移动到上一行或下一行,跳过没有方块的行。操作栏会显示行号,例如“第 2 行,共 3 行”。
- 在随机模式和等概率随机模式下,没有可供选择的对象,因此滚动只会打开盒子视图。
如果你按住 V 键时滚动滚轮,松开按键不会打开菜单。当屏幕界面打开时,调色盒按键无效。
盒子视图
按住调色盒按键并滚动滚轮会在当前所在的快捷栏槽位上方显示一个小型的盒子视图。松开按键即可关闭该视图。
- 标题会显示模式名称,即随机(Random)、等概率随机(Equal random)、物品(Item,用于选取模式)或渐变层级及行号。
- 视图中会为每种类型的方块显示一个堆叠图标及其总数。空槽位和非方块类物品会被省略。在等概率随机模式下,由于数量无关紧要,每种类型仅显示单个物品图标。
- 边框标记了点击可以放置的内容。在随机和等概率随机模式下,这是所有类型的方块;在选取模式下,是被选定的类型;在渐变模式下,是当前行,盒子的每一行在视图中各占一行。
- 更改形状(创造模式)会显示对应的形状图标,标题为当前形状,例如“形状:楼梯”。盒子中方块所具有的每种形状都有一个对应图标,当前选中的形状会有边框标记。
- 滚动时显示盒子视图设置可关闭此视图。滚动仍然会更改选取目标或行号,且操作栏仍会显示其名称。
调色盒的外观
- 在你的物品栏和快捷栏中,调色盒显示为打开状态,盒盖移除,内部有一个较小的下一个方块图标。没有方块的调色盒显示为一个打开的空盒子。
- 在你手中(第一人称和第三人称视角下),它的绘制方式相同。如果手中显示打开的盒子设置关闭,你的手中仅显示下一个方块。
- 在随机、等概率随机和渐变模式下,下一个方块周围有缓慢循环的彩虹色轮廓。选取模式始终放置同一种方块,因此没有轮廓。彩虹轮廓设置可将其关闭。
- 当调色盒关闭时,盒子看起来像一个普通的潜影盒。
保存和加载调色板
保存和加载功能作用于你手中的潜影盒,前提是调色盒处于开启状态,并从调色盒菜单中进行操作。
保存到库需要输入名称以及选择保存位置。
- 如果盒子已被重命名,名称将默认为盒子的名字;否则默认为下一个可用的“Palette 1”、“Palette 2”等。
- 名称下方的按钮可在保存到:本世界和保存到:所有世界之间切换。
- 如果该名称的调色板已存在于所选位置,替换前会弹出二次确认询问。
- 保存成功后,保存行的工具提示会短暂显示保存位置。空盒子无法保存,工具提示也会相应提示。
从库加载会打开你已保存的调色板列表,首先列出“本世界”,然后是“所有世界”。每个调色板会显示其方块条带和名称。文件存在错误的条目会以红色列出,并在工具提示中说明问题,且不可选中。管理库可打开库管理器,取消或 Esc 键可关闭列表。
点击某个调色板会将其加载到盒子中,并将盒子的模式设置为该调色板的模式。
- 在创造模式中,它会用保存的方块替换盒子中的所有物品,并且盒子的行数会调整为匹配保存的调色板(最多 16 行)。
- 在生存模式中,它会保留盒子现有的内容并添加一张 cheatsheet(参考表/备忘单)。盒子保持其原有的行数(通常为三行,除非在创造模式下已扩展出更多行),超出部分将被忽略。
当盒子被打开(通过放置或使用“任意处打开”功能)时,备忘单上的每个空槽位都会显示该位置应放物品的淡化副本及其数量。悬停在该槽位上也会显示相同信息。当你放置、破坏或携带盒子时,备忘单会随之移动。在调色盒菜单中选择清除备忘单可移除它。
调色板库
调色板库可通过调色盒菜单中的管理库、加载列表中的管理库,或设置中的打开调色板库来访问。它包含两个选项卡。
- 当前世界 保存你所在世界的调色板。在单人游戏中,它们存储在世界存档文件夹内,因此随世界副本一起移动。在服务器上,它们按服务器地址分别存储。若未打开任何世界,该选项卡会提示你先打开一个。
- 所有世界 保存
config/shulkerpalette/palettes 中每个世界的调色板。
每个调色板都会显示其方块、名称、模式和行数。点击其中一个可选中它,并展示你可以对其进行的操作。
- 重命名 用于编辑其名称。
- 移至所有世界 或 移至当前世界 可将其移动到另一个选项卡,除非目标位置已存在同名调色板。
- 复制 将其以文本形式放入剪贴板。
- 删除按钮会在询问后将其删除。
列表上方有 从剪贴板粘贴,可将剪贴板中的调色板添加到当前选项卡。如果名称已被占用,会自动添加数字后缀,以防止覆盖。如果剪贴板中没有调色板或文本有误,按钮旁边的行会指出哪一行出错及原因。打开文件夹 会打开该选项卡的文件夹,其中每个调色板都是一个 .txt 文件,你可以手动编辑。
调色板的文本格式如下:
shulker_palette name="Concrete fade" mode=gradient rows=3
row 1: white_concrete 30, white_wool 4
row 3: -, -, gray_concrete 30
- 第一行提供名称(可选,含空格时用双引号包裹)、模式(random、equal、pick 或 gradient)以及行数。
- 每一行的行数据从左到右列出该行的槽位,用逗号分隔。槽位是带有可选数量的物品 ID,或是
- 表示空槽位。
- 物品使用与
/give 命令相同的语法,因此也可以编写带有组件的物品。
- 可以省略行末的空槽位和空行。空白行和以
# 开头的行会被忽略。
形状(仅创造模式)
调色板除了包含方块外,还包含形状信息。当箱子中有石头且选择楼梯时,它会放置石制楼梯。
- 按住 形状键(默认为 V + 左 Shift)并滚动鼠标滚轮可更改形状。操作栏会显示其名称,例如“形状:台阶”,箱子视图也会展示这些形状。
- 上一个形状 和 下一个形状 键(默认未绑定)可在不滚动的情况下切换形状。每次切换后,箱子视图会停留片刻。
- 形状包括:完整方块、楼梯、台阶、墙、栅栏、栅栏门、地毯、坐垫、压力板、按钮、陷阱门和门。仅当箱子中至少有一个方块属于所选形状时,才会提供相应形状,并按上述顺序排列,列表在两端循环。
- 不属于所选形状的方块会被跳过,其余方块保持其通常的概率。在 Pick 模式下,如果选中的方块不具备该形状,则点击不会放置任何东西。
- 箱子中具有形状的方块视为其所属方块,例如箱子中的橡木楼梯可以放置橡木台阶。
- 如果箱子中不再包含具有所选形状的方块,调色板将放置完整方块。
- 在生存模式中,形状不适用,调色板会如常放置箱子中的物品。
重绘(仅创造模式)
调色板菜单中的重绘行用于开启或关闭手中调色板的重绘功能。切换重绘 键(默认未绑定)可在不打开菜单的情况下执行相同操作。操作栏会显示“重绘开启”或“重绘关闭”。
- 开启重绘后,右键点击会将你注视的方块替换为调色板的下一个方块(采用调色板的形状),而不是在其旁边放置新方块。
- 新方块会保留旧方块的朝向、半高、楼梯形状、台阶类型等属性(如果有的话),因此橡木楼梯重绘为石制楼梯时,朝向保持不变。
- 原本通常会使用的方块(如箱子、拉杆和工作台)会被重绘,而不是被打开或使用。
- 持有物品的方块不会被重绘,例如装有物品的容器、写有文字的告示牌或放有书的讲稿架。液体和两格高的方块(如门)也会被跳过。点击此类物体会播放失败音效。
- 附着在重绘方块上的物体(如火把)会保持在原位。
- 右键点击时潜行会以常规方式在目标方块旁放置方块,而非进行重绘。
- 在你注视的方块上会有一个半透明的预览层,显示它将变成什么样子,并面向它将朝向的方向。重绘预览 设置可关闭此效果。
额外行(仅创造模式)
一个潜影盒最多可容纳 16 行。
- 在创造模式下,已放置的潜影盒屏幕下方有 − 行 和 + 行 按钮。+ 行 添加一行,最多可达 16 行。− 行 移除最后一行,但仅当该行空着时才允许移除,且行数绝不会低于三行。
- 只要窗口空间足够,箱子会显示所有存在的行;空间不足时才会滚动。
- 无论调色板是否开启,这些行均可作为存储空间使用,且在生存模式中它们依然保留,带有额外行的箱子会显示所有行。
配合 Open Anywhere 使用
安装 Open Anywhere 后,设置中会出现 Open Anywhere 组,其中包含 在打开箱子时显示调色板面板 设置,默认关闭。开启此设置后,通过 Open Anywhere 打开的潜影盒左侧会显示一列小型调色板按钮,用于控制电源、模式、重绘、保存、加载和清除快捷说明表。
- 模式和重绘仅在调色板开启时显示,且重绘仅在创造模式下可见。重绘按钮在开启时会呈现绿色色调。
- 清除快捷说明表仅在箱子中存在快捷说明表时显示。
- 无论设置是否开启,通过 Open Anywhere 打开的箱子都会显示其快捷说明表。
按键
所有六个按键均在 Minecraft 的按键绑定下的 Shulker Palette 分类中列出,并在设置屏幕上显示。
| 按键 |
默认值 |
功能说明 |
| 调色板快捷键 |
V |
在主手持有潜影盒时点击,打开调色板菜单。在主手持调色板并滚动鼠标滚轮时按住,切换选取或渐变行。 |
| 形状滚动键 |
V + 左 Shift |
在主手持调色板并滚动鼠标滚轮时按住,切换形状。仅限创造模式。 |
| 上一个形状 |
未绑定 |
将手中的调色板切换到上一个形状。仅限创造模式。 |
| 下一个形状 |
未绑定 |
将手中的调色板切换到下一个形状。仅限创造模式。 |
| 切换调色板 |
未绑定 |
开启或关闭主手中潜影盒的调色板功能。 |
| 切换重绘 |
未绑定 |
开启或关闭主手中调色板的重新上色功能。仅限创造模式。 |
设置
设置界面可从 Mod Menu 或 Mod Hub 打开。
按键。 所有六个按键均可在此处设置,包括组合键。
调色板库。 打开调色板库 可打开库界面。
外观。 这些设置均为开/关选项。放置预览默认关闭,其余四项默认开启。它们仅影响视觉效果。
| 设置项 |
功能说明 |
| 彩虹轮廓 |
在随机选取模式中,显示环绕下一个方块的循环轮廓。 |
| 滚动时显示盒子视图 |
当按住调色板快捷键并滚动鼠标滚轮时,在快捷栏上方显示盒子视图。 |
| 手中显示打开的盒子 |
在手中显示已打开且内部包含下一个方块的盒子。若关闭,手中仅显示下一个方块。 |
| 放置预览 |
在右键放置位置显示下一个方块的半透明预览。 |
| 重绘预览 |
当重绘功能开启时,显示当前注视方块的重绘效果。 |
Open Anywhere。 此组仅在安装 Open Anywhere 时显示。打开盒子时显示调色板面板 默认关闭,具体描述见“与 Open Anywhere 配合使用”部分。
许可证
MIT。
Shulker Palette
Shulker Palette turns a shulker box into a block palette. Fill a box with the blocks you want to build with, hold it, and each right-click places one of them. The block can be chosen at random, picked by you, or drawn row by row as a gradient. I made it for walls, floors, and paths that mix several kinds of block, which in vanilla means switching hotbar slots for nearly every block you place.
It's needed on both the client and the server. Singleplayer and LAN worlds work as they are.
Features
Four ways to choose the next block
- Random draws by count, so the block you have more of comes up more often. With 48 stone and 16 andesite in the box, stone comes up three times out of four.
- Equal random gives every kind of block the same chance, however many of each the box holds.
- Pick places the one kind of block you choose on every click.
- Gradient treats each row of the box as one step. You choose the row, and each click draws from that row.
One menu for the box in your hand
- Tap V with a shulker box in your hand to open the palette menu. It turns the palette on or off, changes the mode, and saves or loads palettes, without opening the box.
Works in survival
- Each block you place comes out of the box. In creative, nothing is used up.
- Tools, food, and anything else that isn't a block stay in the box and are never placed.
- Blocks go down through the game's normal placement, so they face the right way and make their usual sounds.
See what comes next
- A palette box shows the block it will place next, sitting inside the open box, in your inventory, your hotbar, and your hand.
- A slowly cycling rainbow outline marks the modes that choose at random.
- A see-through preview of the next block can show where a right-click will place it. It's off by default.
- Holding V and scrolling shows a view of the box above your hotbar, with what's inside and what's selected.
The palette stays with the box
- The palette's settings are stored on the shulker box itself, so the box keeps them when you place it, break it, or hand it to someone else.
- Each box has its own palette, so two boxes in one chest can be set up differently.
A library of palettes
- Save a box's palette under a name, for this world or for all your worlds, and load it into any box later.
- In creative, loading fills the box. In survival, it shows what goes in each slot, so you can fill the box with real blocks.
- Palettes are saved as plain text files you can read, edit, and share, and the library copies them to and from your clipboard.
Shapes, in creative
- The palette can place its blocks as stairs, slabs, walls, fences, and the other shapes the game makes from them, so a box of stone and andesite can build stone and andesite stairs.
Repaint, in creative
- Repaint replaces the block you're looking at with the palette's next block, instead of placing a new block beside it.
- It works on any block that holds nothing, and the new block keeps the old one's facing, so a staircase stays a staircase.
- A see-through preview shows what the block will become before you click.
Requirements
- Fabric API.
- MenuKit 7.5.0 or newer, below 8.0.0. It draws the palette menu, the palette library, and the box view above the hotbar.
- SlotKit 2.2.0 or newer, below 3.0.0. It lays out the shulker box's slots, including the extra rows.
- Keybindery 1.4.1 or newer. It lets the keys be set as key combinations, and gives the shape key its V + Left Shift default.
YACL comes bundled, so it doesn't need a separate install.
Pairs well with
- Mod Menu or Mod Hub, which open the settings screen from the mod list.
- Open Anywhere 1.0.0 or newer, my mod for opening shulker boxes from your inventory or an open chest. A palette box opened that way shows all its rows, and with this mod's setting turned on, the palette's buttons beside it.
Compatibility
- Minecraft 26.3 with Fabric.
- Needed on both the client and the server.
- Version 1.0.0 was for Minecraft 1.21.11. Palettes from 1.0.0 don't carry over to 2.0.0. The blocks inside stay where they are, and turning the palette back on makes the box a palette again.
How to use
The palette menu
Hold any shulker box in your main hand and tap the palette key (V). A tap means pressing and letting go without scrolling in between. The palette menu opens without opening the box, and it works whether the palette is on or off, so a plain shulker box can be made into a palette here.
Each row names the setting it changes. While the palette is off, every row but Palette: On / Off is grayed out.
- Palette: On / Off turns the palette on or off, and the menu stays open. Turning it off makes the box plain storage again, with its blocks left in place.
- Mode shows the current mode, and each click moves to the next one (see Choosing a mode). It's grayed out while the palette is off.
- Repaint: On / Off shows only in creative, and is grayed out while the palette is off (see Repaint).
- Save to library and Load from library are described in Saving and loading palettes.
- Clear cheat sheet shows when the box has a cheat sheet, and removes it.
- Manage library opens the palette library.
V, E, and Escape close the menu. It also closes if the shulker box leaves your main hand.
The Toggle palette key (unbound by default) turns the palette on or off for the shulker box in your main hand without opening anything. The action bar shows "Palette on" or "Palette off".
Placing blocks
- Hold a palette box in your main hand and right-click a block. The palette's next block is placed against it, the same way a block from your hotbar would be.
- In survival, the placed block is taken out of the box. In creative, nothing is used up.
- Only block items are placed. Tools, food, and other items in the box are ignored and never used.
- If the box has no block to place, the click places nothing and plays a failure click.
- Sneaking doesn't change what the palette does, so you can sneak while placing as you would with any block.
- A palette that's on always places blocks from the box and is never placed itself. To place the shulker box, turn its palette off first, in the menu or with the Toggle palette key.
- A see-through copy of the next block shows where a right-click will place it, facing the way it will be placed. It only shows where the block can actually go. It's off by default, and the Placement preview setting turns it on.
Choosing a mode
The Mode row in the palette menu cycles the modes in the order Random, Equal random, Pick, Gradient, and then back to Random. Its tooltip describes the current mode.
| Mode |
What each right-click places |
| Random |
A block drawn from everything in the box, weighted by count. Every block in the box is one ticket. |
| Equal random |
A kind of block drawn at random, every kind with the same chance, whatever the counts. |
| Pick |
The kind of block you picked, every time. When the box runs out of it, the pick moves on to the next kind. |
| Gradient |
A block drawn from the current row only, weighted by count. |
Pick and Gradient use the palette key to choose the block or row, described next.
The palette key
The palette key is V by default. Hold it with a palette box in your main hand and scroll to change the selection. Scrolling with it held doesn't change your hotbar slot, and the selection wraps around at both ends.
- In Pick, it moves to the next or previous kind of block. The action bar names the block and how many the box holds.
- In Gradient, it moves to the next or previous row, skipping rows with no blocks. The action bar shows the row, such as "Row 2 of 3".
- In Random and Equal random there is nothing to select, so scrolling only opens the box view.
If you scroll while holding V, letting go doesn't open the menu. The palette key does nothing while a screen is open.
The box view
Holding the palette key and scrolling opens a small view of the box above the hotbar slot it's in. Letting go of the key closes it.
- The title names the mode as Random, Equal random, Item (for Pick), or Gradient level and the row number.
- The view shows one stack for each kind of block with its total. Empty slots and items that aren't blocks are left out. Equal random shows a single item of each kind, since counts don't matter there.
- Frames mark what a click can place. That's every kind of block in Random and Equal random, the picked kind in Pick, and the current row in Gradient, where each row of the box gets its own line.
- Changing the shape (creative) shows the shapes instead, titled with the current shape, such as "Shape: Stairs". There's one item for each shape the box's blocks come in, and the current shape is framed.
- The Box view while scrolling setting turns the view off. Scrolling still changes the pick or row, and the action bar still names it.
How a palette box looks
- In your inventory and hotbar, a palette box is drawn open, with its lid off and its next block small inside. A palette with no blocks is drawn as an open, empty box.
- In your hand, in first and third person, it's drawn the same way. With the Open box in hand setting off, your hand shows only the next block.
- In Random, Equal random, and Gradient, the next block has a slowly cycling rainbow outline. Pick, which always places the same block, has none. The Rainbow outline setting turns it off.
- With the palette off, the box looks like a normal shulker box.
Saving and loading palettes
Save and Load work on the shulker box in your hand from the palette menu, while its palette is on.
Save to library asks for a name and where to keep the palette.
- The name starts as the box's own name if it has been renamed, or the next free "Palette 1", "Palette 2", and so on.
- The button below the name switches between Save to: This world and Save to: All worlds.
- If a palette with that name is already saved there, a second question asks before replacing it.
- After saving, the Save row's tooltip briefly says where it went. An empty box saves nothing, and the tooltip says so.
Load from library opens a list of your saved palettes, with This world first and All worlds below. Each palette shows a strip of its blocks and its name. A file with a mistake in it is listed in red, with the problem in its tooltip, and can't be picked. Manage library opens the library, and Cancel or Escape closes the list.
Clicking a palette loads it into the box and sets the box to its mode.
- In creative, it replaces everything in the box with the saved blocks, and the box's row count changes to match the saved palette (up to 16 rows).
- In survival, it leaves the box's contents alone and adds a cheat sheet. The box keeps its own row count, normally three unless it already has more rows added in creative, and anything listed past that is left out.
When the box is opened (placed, or through Open Anywhere), each empty slot on the cheat sheet shows a faded copy of the item that belongs there, with how many go there. Hovering over it says the same. The cheat sheet stays with the box when you place it, break it, or carry it. Clear cheat sheet in the palette menu removes it.
The palette library
The library opens from Manage library in the palette menu or the Load list, and from Open the palette library in the settings. It has two tabs.
- This world holds palettes for the world you're in. In singleplayer they're stored inside the world's save folder, so they travel with a copy of the world. On a server they're stored per server address. With no world open, the tab says to open one.
- All worlds holds palettes for every world, in
config/shulkerpalette/palettes.
Each palette shows its blocks, its name, its mode, and its number of rows. Clicking one selects it and shows what you can do with it.
- Rename edits its name.
- Move to All worlds or Move to This world moves it to the other tab, unless a palette with the same name is already there.
- Copy puts it on your clipboard as text.
- The remove button deletes it, after asking.
Above the list, Paste from clipboard adds the palette on your clipboard to the tab. A name that's already taken gets a number added, so nothing is overwritten. If the clipboard doesn't hold a palette, or the text has a mistake, the line next to the buttons says which line is wrong and why. Open folder opens the tab's folder, where each palette is a .txt file you can edit by hand.
A palette's text looks like this:
shulker_palette name="Concrete fade" mode=gradient rows=3
row 1: white_concrete 30, white_wool 4
row 3: -, -, gray_concrete 30
- The first line gives the name (optional, in double quotes when it has spaces), the mode (random, equal, pick, or gradient), and the number of rows.
- Each row line lists that row's slots from left to right, separated by commas. A slot is an item ID with an optional count, or
- for an empty slot.
- Items use the same syntax as the
/give command, so items with components can be written too.
- Empty slots at the end of a row, and empty rows, can be left out. Blank lines and lines starting with
# are ignored.
Shapes (creative only)
A palette has a shape as well as its blocks. With stone in the box and Stairs chosen, it places stone stairs.
- Hold the shape key (V + Left Shift by default) and scroll to change the shape. The action bar names it, such as "Shape: Slab", and the box view shows the shapes.
- The Previous shape and Next shape keys (unbound by default) step through the shapes without scrolling. The box view stays up for a moment after each step.
- The shapes are Full block, Stairs, Slab, Wall, Fence, Fence gate, Carpet, Cushion, Pressure plate, Button, Trapdoor, and Door. Only the shapes at least one block in the box comes in are offered, in that order, and the list wraps around at both ends.
- Blocks that don't come in the chosen shape are skipped, and the rest keep their usual chances. In Pick, if the picked block doesn't come in the shape, the click places nothing.
- A shaped block in the box counts as its block, so oak stairs in the box can place oak slabs.
- If the box no longer has a block that comes in the chosen shape, the palette places full blocks.
- In survival the shape doesn't apply, and the palette places the items in the box as they are.
Repaint (creative only)
The Repaint row in the palette menu turns repaint on or off for the palette in your hand. The Toggle repaint key (unbound by default) does the same without opening the menu. The action bar shows "Repaint on" or "Repaint off".
- With repaint on, right-clicking replaces the block you're looking at with the palette's next block, in the palette's shape, instead of placing one beside it.
- The new block keeps the old block's facing, half, stair shape, slab type, and similar properties wherever it has them, so oak stairs repainted as stone stairs face the same way.
- Blocks you'd normally use, like chests, levers, and crafting tables, are repainted instead of opened or used.
- A block that holds something isn't repainted, such as a container with items in it, a sign with writing, or a lectern with a book. Liquids and two-block-tall blocks like doors are skipped too. Clicking one plays a failure click.
- Anything attached to the repainted block, like a torch, stays in place.
- Sneaking while you right-click places a block beside the target as usual instead of repainting.
- A see-through preview sits over the block you're looking at, showing what it will become, facing the way it will face. The Repaint preview setting turns it off.
Extra rows (creative only)
A shulker box can hold up to 16 rows.
- In creative, a placed shulker box's screen has a − Row and a + Row button under the box. + Row adds a row, up to 16. − Row takes away the last row, but only when that row is empty, and never below three.
- The box shows every row it has while the window has room for them, and scrolls only when it doesn't.
- The rows work as storage whether the palette is on or off, and they stay in survival, where a box with extra rows shows them all.
With Open Anywhere
With Open Anywhere installed, the settings have an Open Anywhere group with the Palette panel on opened boxes setting, off by default. With it on, a shulker box opened through Open Anywhere shows a column of small palette buttons on its left for power, mode, repaint, save, load, and clear cheat sheet.
- Mode and repaint show only while the palette is on, and repaint only in creative. The repaint button is tinted green while repaint is on.
- Clear cheat sheet shows only when the box has one.
- A box opened through Open Anywhere shows its cheat sheet whether the setting is on or off.
Keys
All six keys are listed under Shulker Palette in Minecraft's key binds, and on the settings screen.
| Key |
Default |
What it does |
| Palette key |
V |
Tapped with a shulker box in your main hand, opens the palette menu. Held with a palette in hand while scrolling, changes the pick or gradient row. |
| Shape scroll key |
V + Left Shift |
Held with a palette in hand while scrolling, changes the shape. Creative only. |
| Previous shape |
Unbound |
Steps the palette in your hand to the previous shape. Creative only. |
| Next shape |
Unbound |
Steps the palette in your hand to the next shape. Creative only. |
| Toggle palette |
Unbound |
Turns the palette on or off for the shulker box in your main hand. |
| Toggle repaint |
Unbound |
Turns repaint on or off for the palette in your main hand. Creative only. |
Settings
The settings screen opens from Mod Menu or Mod Hub.
Keys. All six keys can be set here, including as key combinations.
Palette library. Open the palette library opens the library.
Look. Each of these settings is on or off. Placement preview is off by default, and the other four are on. They only change what you see.
| Setting |
What it does |
| Rainbow outline |
Shows the cycling outline around the next block in the modes that pick at random. |
| Box view while scrolling |
Shows the box view above your hotbar while you hold the palette key and scroll. |
| Open box in hand |
Shows the open box with the next block inside it in your hand. Off, your hand shows only the next block. |
| Placement preview |
Shows a see-through copy of the next block where a right-click would place it. |
| Repaint preview |
Shows what the block you're looking at would become, while repaint is on. |
Open Anywhere. This group shows only when Open Anywhere is installed. Palette panel on opened boxes, off by default, is described in With Open Anywhere.
License
MIT.
评论 0
登录后参与评分
还没有评论,来抢沙发吧