#Custom geo with flipbook

1 messages · Page 1 of 1 (latest)

hollow scroll
#

Hi all, is it possible to create a block with custom geometry and a flipbook?

I have this which appears but does not flip through the texture.

flipbook_textures.json

[
  {
    "flipbook_texture": "textures/blocks/plasma_ball",
    "atlas_tile": "plasma_ball",
    "frames": [0, 1, 2, 3],
    "ticks_per_frame": 3
  }
]

terrain_texture.json

{
    "texture_name": "atlas.terrain",
    "resource_pack_name": "minere",
    "padding": 8,
    "num_mip_levels": 4,
    "texture_data": {
      "plasma_ball": {
        "textures": "textures/blocks/plasma_ball"
      }
    }
  }

block behavior.json

{
    "format_version": "1.20.60",
    "minecraft:block": {
      "description": {
        "identifier": "minere:plasma_ball",
        "menu_category": {
          "category": "construction",
          "is_hidden_in_commands": false
        }
      },
      "components": {
        "minecraft:destructible_by_mining": {
          "seconds_to_destroy": 1
        },
        "minecraft:material_instances": {
          "*": {
            "texture": "plasma_ball",
            "ambient_occlusion": false,
            "face_dimming": false,
            "render_method": "blend"
          }
        },
        "minecraft:geometry": {
          "identifier": "geometry.plasma_ball"
        },
        "minecraft:destructible_by_explosion": {
          "explosion_resistance": 1
        },
        "minecraft:friction": 0.01,
        "minecraft:map_color": "#ffffff",
        "minecraft:light_dampening": 0
      }
    }
  }

The block appears normal but only is displayed with the first texture and does not flip through the textures

naive sage
#

I've found that the blocks texture needs to be a square for flipbook animations to work, so try adding some empty space to the texture to make it a square (fo this for each frame)

hollow scroll
#

That was the issue, thanks!