{
  "format_version": "1.20.10",
  "minecraft:block": {
      "description": {
          "identifier": "rc:mechanical_press_top",
          "states": {
            "rc:lado": [ 0, 1, 2, 3, 4, 5 ]
          }
      },
      "components": {
          "minecraft:material_instances": {
              "*": {
                  "texture": "mechanical_press_top",
                  "render_method": "alpha_test"
              }
          },
          "minecraft:geometry": "geometry.mechanical_press",
          "minecraft:selection_box": {
              "origin": [ -8, 0, -8 ],
              "size": [ 0, 0, 0 ]
          },
          "minecraft:collision_box": {
              "origin": [ -2, 0, -2 ],
              "size": [ 4, 9, 4 ]
          },
          "minecraft:queued_ticking": {
             "looping": true,
             "interval_range": [1, 1],
             "on_tick": {
               "event": "conexao"
             }
           },
            "minecraft:destructible_by_mining": false,
          "minecraft:light_dampening": 0
      },
      "events": {
  "conexao": {
  "run_command":{
            "command":[
              "scriptevent rc:mechanical_press_top"
      ]
    }
  }
},
"permutations": [
  {
    "condition": "query.block_state('rc:lado') == 2 || query.block_state('rc:lado') == 3",
    "components": {    
      "minecraft:transformation": {
        "rotation": [0, 0, 0]
      }
    }
},
{
    "condition": "query.block_state('rc:lado') == 4 || query.block_state('rc:lado') == 5",
    "components": {    
      "minecraft:transformation": {
        "rotation": [0, 90, 0]
      }
    }
}
    ]
  } 
}