画廊展示了该模组实际的效果。请先去那里看看。
工具
工具与实用(Tools & Utilities)创造模式标签页中有三件物品。
画笔。 右键点击方块表面以打开绘画编辑器。如果你想让画布跨越多个方块,先按住 Shift 键并右键点击两个角。右键点击已放置的贴花可重新打开进行编辑。
印章。 右键点击一个贴花以复制它,然后右键点击任意表面将其粘贴到该处。
橡皮擦。 右键点击一个贴花以删除它。按住 Shift 键右键点击会一次性清除该表面上所有的贴花,且无需确认。
编辑器
包含铅笔、画笔、橡皮擦、填充和直线工具,每种工具都有各自的大小和不透明度设置。工具可以绑定到不同的鼠标按键,撤销/重做功能覆盖所有操作。
画布后方有一个实时底层图像,采样自真实的方块纹理,包括已经堆叠在上面的任何贴花。取色器可以对画布或其下方的方块进行取样。
你可以直接从剪贴板粘贴图片,但你仍需为此支付染料成本。
调色板由你选择的方块构建。投入一个钻石块,它就会提取该纹理中的所有颜色,然后将每种颜色与你添加的其他方块混合显示。
工作原理
贴花数据按区块保存在服务器上,并同步给附近的客户端。客户端将它们合成到一个共享的纹理图集(texture atlas)中,并将它们作为额外的几何体绘制在方块表面上。不会替换任何方块,也不会为每个贴花创建方块实体。
凹入的表面(如楼梯踏板、半砖顶部和栅栏柱)会正确投影,使用与编辑器捕获背景时相同的深度测试体积,因此画作会贴合形状而非悬浮在其包围盒之上。
如果你启用了 3D 浮雕效果,堆叠的图层会根据其堆叠高度向外挤出。此功能不存储额外数据;几何体是通过计算每个纹素上有多少个不透明图层生成的。
兼容性
Create:机械装置上的贴花会随其一起移动和旋转。
Iris:自动检测,当激活光影包时,渲染会自动回退到兼容路径。并非所有光影都支持。BSL 是经过测试的光影。
成本与权限
将完成的画布转化为已放置的贴花需要消耗染料。每个像素都会投票选择其在感知上最接近的原版染料颜色,并按整数单位收取费用。pixelsPerDye 控制着比例。
服务器管理员还可以设置最大画布尺寸、每区块最大贴花数、放置范围、投影深度,以及编辑或删除他人贴花所需的权限等级。参见 ModServerConfig 或生成的 paintcraft-server.toml。
渲染、编辑器及浮雕设置位于客户端配置中,即 paintcraft-client.toml(ModConfig):渲染距离、纹理图集大小、浮雕分辨率和厚度、撤销深度,以及软删除与硬删除选项。
The gallery shows what the mod actually does. Go look at that first.
Tools
Three items in the Tools & Utilities creative tab.
Paint Brush. Right-click a block face to open the painting editor. Shift+right-click two corners first if you want a canvas spanning several blocks. Right-clicking a decal you already placed reopens it for editing.
Stamp. Right-click a decal to copy it, then right-click any face to put the copy there.
Eraser. Right-click a decal to delete it. Shift+right-click wipes every decal on that face at once, with no confirmation.
The editor
Pencil, brush, eraser, fill and line tools, each with its own size and opacity. Tools can be bound per mouse button, and undo/redo covers everything.
Behind the canvas sits a live underlay sampled from the real block texture, including any decals already stacked there. The eyedropper can sample either the canvas or the block underneath it.
You can paste an image straight from the clipboard, though you still pay the dye cost for it.
The palette is built from blocks you choose. Feed it a diamond block and it pulls every color out of that texture, then shows each one blended against the other blocks you added.
How it works
Decals live per-chunk on the server and sync to nearby clients. The client composites them into a shared texture atlas and draws them as extra geometry over the block face. No blocks are replaced, and no block entity is created per decal.
Recessed faces like stair treads, slab tops and fence posts get projected properly, using the same depth-tested volume the editor uses to capture its background, so a painting wraps around the shape rather than floating over its bounding box.
3D relief, if you enable it, extrudes stacked layers outward by their stack height. Nothing extra is stored for this; the geometry comes from counting how many opaque layers sit on each texel.
Compatibility
Create: decals on a contraption move and rotate with it.
Iris: detected automatically, and rendering falls back to a compatible path while a shader pack is active. Not every shader works. BSL is the tested one.
Cost and permissions
Turning a finished canvas into a placed decal costs dye. Every pixel votes for whichever vanilla dye color it is perceptually closest to, and you are charged in whole dyes. pixelsPerDye controls the ratio.
Server admins can also set max canvas size, max decals per chunk, placement range, projection depth, and the permission level needed to edit or erase someone else's decal. See ModServerConfig or the generated paintcraft-server.toml.
Rendering, editor and relief settings are client side, in paintcraft-client.toml (ModConfig): render distance, atlas texture size, relief resolution and thickness, undo depth, and soft versus hard erase.
评论 0
登录后参与评分
还没有评论,来抢沙发吧