Fusion (Connected Textures)

Fusion (Connected Textures)

40M Downloads

[Bug] Block Overlay not affecting all surrounding blocks

MetalKnight56 opened this issue ยท 2 comments

commented

Version Info

  • Minecraft: 1.20.1
  • Fusion: 1.1.1
  • Forge: 47.3.12

Are you using OptiFine: No

Description of the Bug
The issue itself consists of block overlays not affecting all targeted blocks that are surrounding it. So for example, the overlay of a dirt block on top of stone blocks, only affects a few specific stone blocks that surround the dirt block.

Look at the image for example:
image
As you may note, the blocks without colors on top of them are not affected by the overlay as i expected.

This is the texture file i made to be able to reference each block side:
image

The red blob is working just fine as it's not supposed to be affected by any overlays, but there are a few random blocks that are just not affected at all, which's really odd

Steps to Reproduce

  1. download the textures:
    dirt_overlay
  2. Apply this to the dirt_overlay.png.mcmeta
{
   "fusion": {
      "type": "connecting",
      "layout": "full",
      "render_type": "cutout"
   }
}
  1. add the textures to the texture atlas
  2. add this to the stone model json
{
   "loader": "fusion:model",
   "type": "connecting",
   "parent": "block/block",
   "textures": {
      "particle": "#all",
      "all": "minecraft:block/stone",
      "dirt_overlay": "minecraft:block/ct/dirt_overlay"
   },
   "connections": {
      "dirt_overlay": [
         {
            "type": "match_block",
            "block": "minecraft:dirt"
         }
      ]
   },
   "elements": [
      {
         "from": [ 0, 0, 0 ],
         "to": [ 16, 16, 16 ],
         "faces": {
            "down":  { "texture": "#all", "cullface": "down" },
            "up":   { "texture": "#all", "cullface": "up" },
            "north": { "texture": "#all", "cullface": "north" },
            "south": { "texture": "#all", "cullface": "south" },
            "west":  { "texture": "#all", "cullface": "west" },
            "east":  { "texture": "#all", "cullface": "east" }
         }
      },
      {
         "from": [ 0, 0, 0 ],
         "to": [ 16, 16, 16 ],
         "faces": {
            "up":   { "texture": "#dirt_overlay", "cullface": "up" }
         }
      }
   ]
}

Screenshots

image
Blocks without color blob are glitched

image

commented

I just realized that the blocks have some weird generation pattern simmilar to the flower patches...
image

commented

As discussed on Discord, the blockstate file for stone uses two models, minecraft:block/stone and minecraft:block/stone_mirrored, which are randomly rotated 180 degrees.

{
  "variants": {
    "": [
      {
        "model": "minecraft:block/stone"
      },
      {
        "model": "minecraft:block/stone_mirrored"
      },
      {
        "model": "minecraft:block/stone",
        "y": 180
      },
      {
        "model": "minecraft:block/stone_mirrored",
        "y": 180
      }
    ]
  }
}

As only the minecraft:block/stone model was changed and not minecraft:block/stone_mirrored, only those stone blocks which randomly got assigned the minecraft:block/stone model showed the overlay.