{
  "format_version": "1.20.80",
  "minecraft:block": {
    "description": {
      "identifier": "fluffyalien_energistics:gas_canister",
      "menu_category": {
        "category": "items"
      },
      "states": {
        "fluffyalien_energistics:stage": [0, 1, 2, 3],
        "fluffyalien_energistics:type": [
          "none",
          "ammonia",
          "carbon",
          "hydrogen",
          "nitrogen",
          "oxygen"
        ]
      }
    },
    "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.gas_canister",
        "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.gas_canister.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:gas_canister",
              "render_method": "alpha_test"
            }
          }
        }
      },
      {
        "condition": "q.block_state('fluffyalien_energistics:type') == 'ammonia'",
        "components": {
          "tag:fluffyalien_energisticscore:io.type.ammonia": {},
          "tag:fluffyalien_energisticscore:consumer.type.ammonia": {},

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

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

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

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

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