{
  "format_version": "1.20.80",
  "minecraft:block": {
    "description": {
      "identifier": "fluffyalien_energistics:fluid_tank",
      "menu_category": {
        "category": "items"
      },
      "states": {
        "fluffyalien_energistics:stage": [0, 1, 2, 3],
        "fluffyalien_energistics:type": ["none", "lava", "oil", "water"]
      }
    },
    "components": {
      "tag:minecraft:is_pickaxe_item_destructible": {},
"minecraft:custom_components": [
        "fluffyalien_energisticscore:machine",
        "fluffyalien_energistics:generic_storage_type_container"
      ],
      "tag:fluffyalien_energisticscore:machine": {},
      "tag:fluffyalien_energisticscore:low_priority_consumer": {},

      "minecraft:geometry": {
        "identifier": "geometry.fluffyalien_energistics.fluid_tank",
        "bone_visibility": {
          "1": "q.block_state('fluffyalien_energistics:stage') >= 1",
          "2": "q.block_state('fluffyalien_energistics:stage') >= 2",
          "3": "q.block_state('fluffyalien_energistics:stage') >= 3"
        }
      },

      "minecraft:display_name": "%tile.fluffyalien_energistics.fluid_tank.name\n§o§bBedrock §eEnergistics§r",
      "minecraft:destructible_by_explosion": false,
      "minecraft:destructible_by_mining": {
        "seconds_to_destroy": 1
      },
      "minecraft:tick": {
        "interval_range": [10, 10]
      }
    },
    "permutations": [
      {
        "condition": "q.block_state('fluffyalien_energistics:type') == 'none'",
        "components": {
          "minecraft:material_instances": {
            "*": {
              "texture": "fluffyalien_energistics:fluid_tank",
              "render_method": "alpha_test"
            }
          }
        }
      },
      {
        "condition": "q.block_state('fluffyalien_energistics:type') == 'lava'",
        "components": {
          "tag:fluffyalien_energisticscore:io.type.lava": {},
          "tag:fluffyalien_energisticscore:consumer.type.lava": {},

          "minecraft:material_instances": {
            "*": {
              "texture": "fluffyalien_energistics:fluid_tank_lava",
              "render_method": "alpha_test"
            }
          }
        }
      },
      {
        "condition": "q.block_state('fluffyalien_energistics:type') == 'oil'",
        "components": {
          "tag:fluffyalien_energisticscore:io.type.oil": {},
          "tag:fluffyalien_energisticscore:consumer.type.oil": {},

          "minecraft:material_instances": {
            "*": {
              "texture": "fluffyalien_energistics:fluid_tank_oil",
              "render_method": "alpha_test"
            }
          }
        }
      },
      {
        "condition": "q.block_state('fluffyalien_energistics:type') == 'water'",
        "components": {
          "tag:fluffyalien_energisticscore:io.type.water": {},
          "tag:fluffyalien_energisticscore:consumer.type.water": {},

          "minecraft:material_instances": {
            "*": {
              "texture": "fluffyalien_energistics:fluid_tank_water",
              "render_method": "alpha_test"
            }
          }
        }
      }
    ]
  }
}
