Adjacent node dependent tiles / Connected textures #15203
Labels
@ Client rendering
Concept approved
Approved by a core dev: PRs welcomed!
Feature request
Issues that request the addition or enhancement of a feature
@ Script API
Textures
Problem
It's not possible to have custom node tiling, when nodes of the same kind are next to each other.
It would also be great to be able to specify different kinds of connections to different kinds of nodes, but I would be very happy to at least have it for one type, like it is the case for connected nodeboxes.
Related:
#2748
#5369
#8334
#11546
All of those should be solvable by this feature.
Solutions
A solution could work similar to connected nodeboxes, but per tile (a node usually has 6 tiles). It should be able to be connected to all sides, including corners, and maybe also nodes above and below.
We already have
glasslike_framed
, so I guess it is doable without performance problems.It does not need
param2
so no new drawtype is needed, instead it would be part of the tile definition likeanimation
andalign_style
.For the API I think it could look like this, or similar:
{name = "image1.png", connection = {Tile Connection definition}}
, where image.png is the base image{Tile modifier, Tile modifier, Tile modifier, ...}
"image1.png^image2.png"
.It's a flexible and easy to use solution, but if this doesn't work performance wise, the condition could use bools per side to only support one kind of connected node.
Note that you can't do it like connected nodeboxes, since the order of overlaid textures matters, and fixed textures would mean that you have to manually specify about 2^6 textures even for a very simple connected glass with corners use case.
Alternatives
Additional context
This is how it could look like for some MTG things, e.g. the Stone Block texture.
The text was updated successfully, but these errors were encountered: