{
  "id": "light-switch",
  "name_zh": "開關",
  "name_en": "Light Switch",
  "tag": "de_light_switch",
  "category": "electronics",
  "mount": "wall",
  "large": false,
  "sittable": false,
  "size": [
    0.46,
    0.64,
    0.11
  ],
  "blocks": [],
  "parts": [
    {
      "type": "block_display",
      "block": "minecraft:light_gray_concrete",
      "translation": [
        -0.23,
        1.12,
        -0.5
      ],
      "scale": [
        0.46,
        0.64,
        0.035
      ],
      "note": "wall flush plate shadow",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:white_terracotta",
      "translation": [
        -0.215,
        1.135,
        -0.465
      ],
      "scale": [
        0.43,
        0.61,
        0.025
      ],
      "note": "eased ivory faceplate",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:gray_concrete",
      "translation": [
        -0.15,
        1.205,
        -0.44
      ],
      "scale": [
        0.3,
        0.135,
        0.012
      ],
      "note": "rocker recess",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:white_concrete",
      "translation": [
        -0.134,
        1.215,
        -0.428
      ],
      "scale": [
        0.268,
        0.11,
        0.037
      ],
      "note": "raised rocker",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:light_gray_concrete",
      "translation": [
        -0.119,
        1.249,
        -0.391
      ],
      "scale": [
        0.238,
        0.009,
        0.004
      ],
      "note": "rocker hinge line",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:gray_concrete",
      "translation": [
        -0.15,
        1.37,
        -0.44
      ],
      "scale": [
        0.3,
        0.135,
        0.012
      ],
      "note": "rocker recess",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:white_concrete",
      "translation": [
        -0.134,
        1.38,
        -0.428
      ],
      "scale": [
        0.268,
        0.11,
        0.037
      ],
      "note": "raised rocker",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:light_gray_concrete",
      "translation": [
        -0.119,
        1.414,
        -0.391
      ],
      "scale": [
        0.238,
        0.009,
        0.004
      ],
      "note": "rocker hinge line",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:gray_concrete",
      "translation": [
        -0.15,
        1.535,
        -0.44
      ],
      "scale": [
        0.3,
        0.135,
        0.012
      ],
      "note": "rocker recess",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:white_concrete",
      "translation": [
        -0.134,
        1.545,
        -0.428
      ],
      "scale": [
        0.268,
        0.11,
        0.037
      ],
      "note": "raised rocker",
      "group": "rocker"
    },
    {
      "type": "block_display",
      "block": "minecraft:light_gray_concrete",
      "translation": [
        -0.119,
        1.579,
        -0.391
      ],
      "scale": [
        0.238,
        0.009,
        0.004
      ],
      "note": "rocker hinge line",
      "group": "indicator",
      "brightness": {
        "block": 15,
        "sky": 15
      }
    },
    {
      "type": "block_display",
      "block": "minecraft:iron_block",
      "translation": [
        -0.012,
        1.166,
        -0.44
      ],
      "scale": [
        0.024,
        0.016,
        0.007
      ],
      "note": "plate fixing screw",
      "group": "body"
    },
    {
      "type": "block_display",
      "block": "minecraft:iron_block",
      "translation": [
        -0.012,
        1.703,
        -0.44
      ],
      "scale": [
        0.024,
        0.016,
        0.007
      ],
      "note": "plate fixing screw",
      "group": "body"
    }
  ],
  "behavior": {
    "actions_schema": "1.7.0",
    "lights": [],
    "collision": {
      "mode": "none",
      "cells_by_state": {
        "closed": [],
        "open": []
      },
      "reason": "other: 維持可穿越；沒有達 50% 實心核心門檻的未覆蓋格位。",
      "policy": "1.8.0"
    },
    "parts": [
      {
        "id": "body",
        "model_origin": [
          0,
          0,
          0
        ]
      },
      {
        "id": "rocker",
        "model_origin": [
          0,
          1.6,
          -0.4095
        ]
      },
      {
        "id": "indicator",
        "model_origin": [
          0,
          1.6,
          -0.4095
        ]
      }
    ],
    "actions": [
      {
        "id": "toggle_light",
        "kind": "toggle_light",
        "label": "開燈／關燈",
        "label_on": "關燈",
        "label_off": "開燈",
        "groups": [],
        "sounds": {
          "toggle_light": {
            "id": "minecraft:block.lever.click",
            "volume": 0.15,
            "pitch": 1
          }
        },
        "sound_events": {
          "light_on": {
            "id": "minecraft:block.lever.click",
            "volume": 0.15,
            "pitch": 1.2
          },
          "light_off": {
            "id": "minecraft:block.lever.click",
            "volume": 0.15,
            "pitch": 0.8
          }
        }
      }
    ],
    "interactions": [
      {
        "id": "switch",
        "part_id": "body",
        "center": [
          0,
          1.45,
          -0.37
        ],
        "width": 0.32,
        "height": 0.3,
        "response": true,
        "action": "toggle_light"
      }
    ],
    "light_toggle": {
      "default": "on",
      "off_block_states": {},
      "remove_brightness": true
    },
    "default_action": "toggle_light",
    "sounds": {
      "toggle_light": {
        "id": "minecraft:block.lever.click",
        "volume": 0.15,
        "pitch": 1
      }
    },
    "particles": {},
    "action_labels": {
      "toggle_light": "開燈／關燈"
    }
  }
}
