{
  "format_version": "1.20.50",
  "minecraft:block": {
    "description": {
      "identifier": "rc:basin",
      "menu_category": {
        "group": "itemGroup.name.create",
        "category": "Items"
      },
      "states": {
        "rc:andesite": [  0, 1 ],
        "rc:iron": [  0, 1 ],
        "rc:zinc_nugget": [  0, 1 ],
        "rc:zinc": [  0, 1 ],
        "rc:copper": [  0, 1 ],
        "rc:working": [  0, 1 ]
      }
    },
    "components": {
      "minecraft:selection_box": {
        "origin": [ -8, 0, -8],
        "size": [ 16, 16, 16 ]
    },
    "minecraft:collision_box": {
      "origin": [ -8, 0, -8],
      "size": [ 16, 16, 16 ]
    },
      "minecraft:on_interact":{
        "event":"interacting"
      },
      "minecraft:material_instances": {
        "*": {
          "texture": "basin",
          "render_method": "alpha_test"
        }
      },
      "minecraft:geometry": { 
        "identifier": "geometry.basin",
        "bone_visibility": {
          "bone": "query.block_state('rc:andesite') == 1",
          "bone2": "query.block_state('rc:iron') == 1",
          "bone3": "query.block_state('rc:copper') == 1",
          "bone4": "query.block_state('rc:zinc') == 1",
          "bone5": "query.block_state('rc:zinc_nugget') == 1"
        }
       },
       "minecraft:queued_ticking": {
         "interval_range": [
           1,
           1
         ],
         "looping": true,
         "on_tick": {
           "event": "ticking"
         }
       },
      "minecraft:destructible_by_mining": {
        "seconds_to_destroy": 0.3
      }
    },
    "events": {
      "ticking": {
        "run_command":{
          "command":[
            "scriptevent rc:basin_ticked"
          ]
        }
      },
      "interacting": {
        "run_command":{
          "command":[
            "execute as @a at @p run scriptevent rc:basin"
          ]
        }
      }
    }
  }
}