{
  "multipart": [
    {
      "when": {
        "shape": "ascending_east",
        "powered": "false"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/raised",
        "y": 270
      }
    },
    {
      "when": {
        "shape": "ascending_north",
        "powered": "false"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/raised",
        "y": 180
      }
    },
    {
      "when": {
        "shape": "ascending_south",
        "powered": "false"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/raised"
      }
    },
    {
      "when": {
        "shape": "ascending_west",
        "powered": "false"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/raised",
        "y": 90
      }
    },
    {
      "when": {
        "shape": "east_west",
        "powered": "false"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/straight",
        "y": 90
      }
    },
    {
      "when": {
        "shape": "north_south",
        "powered": "false"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/straight"
      }
    },
    {
      "when": {
        "shape": "ascending_east",
        "powered": "true"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/raised_active",
        "y": 270
      }
    },
    {
      "when": {
        "shape": "ascending_north",
        "powered": "true"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/raised_active",
        "y": 180
      }
    },
    {
      "when": {
        "shape": "ascending_south",
        "powered": "true"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/raised_active"
      }
    },
    {
      "when": {
        "shape": "ascending_west",
        "powered": "true"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/raised_active",
        "y": 90
      }
    },
    {
      "when": {
        "shape": "east_west",
        "powered": "true"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/straight_active",
        "y": 90
      }
    },
    {
      "when": {
        "shape": "north_south",
        "powered": "true"
      },
      "apply": {
        "model": "minecraft:custom/rail/detector/straight_active"
      }
    }
  ]
}