{
  "multipart": [

    {"apply": {"model": "minecraft:block/chiseled_bookshelf","y": 0},
      "when": {"facing": "north"}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left1","y": 0,"weight": 10},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left2","y": 0,"weight": 11},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left3","y": 0,"weight": 12},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left4","y": 0,"weight": 13},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left5","y": 0,"weight": 14},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left6","y": 0,"weight": 15},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left7","y": 0,"weight": 16},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left8","y": 0,"weight": 17},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left9","y": 0,"weight": 18},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left10","y": 0,"weight": 19}],
      "when": {"AND": [  {"facing": "north"} , {"slot_0_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid1","y": 0,"weight": 20},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid2","y": 0,"weight": 21},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid3","y": 0,"weight": 22},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid4","y": 0,"weight": 23},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid5","y": 0,"weight": 24},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid6","y": 0,"weight": 25},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid7","y": 0,"weight": 26},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid8","y": 0,"weight": 27},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid9","y": 0,"weight": 28},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid10","y": 0,"weight": 29}],
      "when": {"AND": [  {"facing": "north"} , {"slot_1_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right1","y": 0,"weight": 30},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right2","y": 0,"weight": 31},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right3","y": 0,"weight": 32},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right4","y": 0,"weight": 33},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right5","y": 0,"weight": 34},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right6","y": 0,"weight": 35},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right7","y": 0,"weight": 36},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right8","y": 0,"weight": 37},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right9","y": 0,"weight": 38},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right10","y": 0,"weight": 39}],
      "when": {"AND": [  {"facing": "north"} , {"slot_2_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left1","y": 0,"weight": 40},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left2","y": 0,"weight": 41},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left3","y": 0,"weight": 42},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left4","y": 0,"weight": 43},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left5","y": 0,"weight": 44},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left6","y": 0,"weight": 45},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left7","y": 0,"weight": 46},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left8","y": 0,"weight": 47},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left9","y": 0,"weight": 48},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left10","y": 0,"weight": 49}],
      "when": {"AND": [  {"facing": "north"} , {"slot_3_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid1","y": 0,"weight": 50},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid2","y": 0,"weight": 51},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid3","y": 0,"weight": 52},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid4","y": 0,"weight": 53},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid5","y": 0,"weight": 54},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid6","y": 0,"weight": 55},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid7","y": 0,"weight": 56},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid8","y": 0,"weight": 57},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid9","y": 0,"weight": 58},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid10","y": 0,"weight": 59}],
      "when": {"AND": [  {"facing": "north"} , {"slot_4_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right1","y": 0,"weight": 60},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right2","y": 0,"weight": 61},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right3","y": 0,"weight": 62},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right4","y": 0,"weight": 63},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right5","y": 0,"weight": 64},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right6","y": 0,"weight": 65},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right7","y": 0,"weight": 66},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right8","y": 0,"weight": 67},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right9","y": 0,"weight": 68},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right10","y": 0,"weight": 69}],
      "when": {"AND": [  {"facing": "north"} , {"slot_5_occupied": "true"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_left","y": 0},
      "when": {"AND": [  {"facing": "north"} , {"slot_0_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_mid","y": 0},
      "when": {"AND": [  {"facing": "north"} , {"slot_1_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_right","y": 0},
      "when": {"AND": [  {"facing": "north"} , {"slot_2_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_left","y": 0},
      "when": {"AND": [  {"facing": "north"} , {"slot_3_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_mid","y": 0},
      "when": {"AND": [  {"facing": "north"} , {"slot_4_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_right","y": 0},
      "when": {"AND": [  {"facing": "north"} , {"slot_5_occupied": "false"}]}},




    {"apply": {"model": "minecraft:block/chiseled_bookshelf","y": 180},
      "when": {"facing": "south"}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left1","y": 180,"weight": 10},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left2","y": 180,"weight": 11},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left3","y": 180,"weight": 12},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left4","y": 180,"weight": 13},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left5","y": 180,"weight": 14},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left6","y": 180,"weight": 15},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left7","y": 180,"weight": 16},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left8","y": 180,"weight": 17},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left9","y": 180,"weight": 18},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left10","y": 180,"weight": 19}],
      "when": {"AND": [  {"facing": "south"} , {"slot_0_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid1","y": 180,"weight": 20},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid2","y": 180,"weight": 21},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid3","y": 180,"weight": 22},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid4","y": 180,"weight": 23},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid5","y": 180,"weight": 24},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid6","y": 180,"weight": 25},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid7","y": 180,"weight": 26},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid8","y": 180,"weight": 27},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid9","y": 180,"weight": 28},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid10","y": 180,"weight": 29}],
      "when": {"AND": [  {"facing": "south"} , {"slot_1_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right1","y": 180,"weight": 30},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right2","y": 180,"weight": 31},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right3","y": 180,"weight": 32},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right4","y": 180,"weight": 33},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right5","y": 180,"weight": 34},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right6","y": 180,"weight": 35},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right7","y": 180,"weight": 36},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right8","y": 180,"weight": 37},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right9","y": 180,"weight": 38},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right10","y": 180,"weight": 39}],
      "when": {"AND": [  {"facing": "south"} , {"slot_2_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left1","y": 180,"weight": 40},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left2","y": 180,"weight": 41},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left3","y": 180,"weight": 42},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left4","y": 180,"weight": 43},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left5","y": 180,"weight": 44},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left6","y": 180,"weight": 45},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left7","y": 180,"weight": 46},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left8","y": 180,"weight": 47},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left9","y": 180,"weight": 48},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left10","y": 180,"weight": 49}],
      "when": {"AND": [  {"facing": "south"} , {"slot_3_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid1","y": 180,"weight": 50},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid2","y": 180,"weight": 51},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid3","y": 180,"weight": 52},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid4","y": 180,"weight": 53},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid5","y": 180,"weight": 54},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid6","y": 180,"weight": 55},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid7","y": 180,"weight": 56},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid8","y": 180,"weight": 57},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid9","y": 180,"weight": 58},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid10","y": 180,"weight": 59}],
      "when": {"AND": [  {"facing": "south"} , {"slot_4_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right1","y": 180,"weight": 60},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right2","y": 180,"weight": 61},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right3","y": 180,"weight": 62},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right4","y": 180,"weight": 63},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right5","y": 180,"weight": 64},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right6","y": 180,"weight": 65},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right7","y": 180,"weight": 66},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right8","y": 180,"weight": 67},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right9","y": 180,"weight": 68},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right10","y": 180,"weight": 69}],
      "when": {"AND": [  {"facing": "south"} , {"slot_5_occupied": "true"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_left","y": 180},
      "when": {"AND": [  {"facing": "south"} , {"slot_0_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_mid","y": 180},
      "when": {"AND": [  {"facing": "south"} , {"slot_1_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_right","y": 180},
      "when": {"AND": [  {"facing": "south"} , {"slot_2_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_left","y": 180},
      "when": {"AND": [  {"facing": "south"} , {"slot_3_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_mid","y": 180},
      "when": {"AND": [  {"facing": "south"} , {"slot_4_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_right","y": 180},
      "when": {"AND": [  {"facing": "south"} , {"slot_5_occupied": "false"}]}},




    {"apply": {"model": "minecraft:block/chiseled_bookshelf","y": 270},
      "when": {"facing": "west"}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left1","y": 270,"weight": 10},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left2","y": 270,"weight": 11},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left3","y": 270,"weight": 12},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left4","y": 270,"weight": 13},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left5","y": 270,"weight": 14},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left6","y": 270,"weight": 15},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left7","y": 270,"weight": 16},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left8","y": 270,"weight": 17},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left9","y": 270,"weight": 18},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left10","y": 270,"weight": 19}],
      "when": {"AND": [  {"facing": "west"} , {"slot_0_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid1","y": 270,"weight": 20},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid2","y": 270,"weight": 21},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid3","y": 270,"weight": 22},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid4","y": 270,"weight": 23},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid5","y": 270,"weight": 24},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid6","y": 270,"weight": 25},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid7","y": 270,"weight": 26},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid8","y": 270,"weight": 27},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid9","y": 270,"weight": 28},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid10","y": 270,"weight": 29}],
      "when": {"AND": [  {"facing": "west"} , {"slot_1_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right1","y": 270,"weight": 30},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right2","y": 270,"weight": 31},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right3","y": 270,"weight": 32},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right4","y": 270,"weight": 33},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right5","y": 270,"weight": 34},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right6","y": 270,"weight": 35},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right7","y": 270,"weight": 36},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right8","y": 270,"weight": 37},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right9","y": 270,"weight": 38},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right10","y": 270,"weight": 39}],
      "when": {"AND": [  {"facing": "west"} , {"slot_2_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left1","y": 270,"weight": 40},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left2","y": 270,"weight": 41},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left3","y": 270,"weight": 42},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left4","y": 270,"weight": 43},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left5","y": 270,"weight": 44},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left6","y": 270,"weight": 45},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left7","y": 270,"weight": 46},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left8","y": 270,"weight": 47},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left9","y": 270,"weight": 48},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left10","y": 270,"weight": 49}],
      "when": {"AND": [  {"facing": "west"} , {"slot_3_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid1","y": 270,"weight": 50},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid2","y": 270,"weight": 51},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid3","y": 270,"weight": 52},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid4","y": 270,"weight": 53},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid5","y": 270,"weight": 54},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid6","y": 270,"weight": 55},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid7","y": 270,"weight": 56},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid8","y": 270,"weight": 57},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid9","y": 270,"weight": 58},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid10","y": 270,"weight": 59}],
      "when": {"AND": [  {"facing": "west"} , {"slot_4_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right1","y": 270,"weight": 60},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right2","y": 270,"weight": 61},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right3","y": 270,"weight": 62},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right4","y": 270,"weight": 63},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right5","y": 270,"weight": 64},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right6","y": 270,"weight": 65},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right7","y": 270,"weight": 66},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right8","y": 270,"weight": 67},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right9","y": 270,"weight": 68},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right10","y": 270,"weight": 69}],
      "when": {"AND": [  {"facing": "west"} , {"slot_5_occupied": "true"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_left","y": 270},
      "when": {"AND": [  {"facing": "west"} , {"slot_0_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_mid","y": 270},
      "when": {"AND": [  {"facing": "west"} , {"slot_1_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_right","y": 270},
      "when": {"AND": [  {"facing": "west"} , {"slot_2_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_left","y": 270},
      "when": {"AND": [  {"facing": "west"} , {"slot_3_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_mid","y": 270},
      "when": {"AND": [  {"facing": "west"} , {"slot_4_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_right","y": 270},
      "when": {"AND": [  {"facing": "west"} , {"slot_5_occupied": "false"}]}},




    {"apply": {"model": "minecraft:block/chiseled_bookshelf","y": 90},
      "when": {"facing": "east"}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left1","y": 90,"weight": 10},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left2","y": 90,"weight": 11},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left3","y": 90,"weight": 12},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left4","y": 90,"weight": 13},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left5","y": 90,"weight": 14},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left6","y": 90,"weight": 15},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left7","y": 90,"weight": 16},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left8","y": 90,"weight": 17},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left9","y": 90,"weight": 18},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_left10","y": 90,"weight": 19}],
      "when": {"AND": [  {"facing": "east"} , {"slot_0_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid1","y": 90,"weight": 20},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid2","y": 90,"weight": 21},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid3","y": 90,"weight": 22},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid4","y": 90,"weight": 23},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid5","y": 90,"weight": 24},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid6","y": 90,"weight": 25},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid7","y": 90,"weight": 26},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid8","y": 90,"weight": 27},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid9","y": 90,"weight": 28},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_mid10","y": 90,"weight": 29}],
      "when": {"AND": [  {"facing": "east"} , {"slot_1_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right1","y": 90,"weight": 30},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right2","y": 90,"weight": 31},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right3","y": 90,"weight": 32},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right4","y": 90,"weight": 33},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right5","y": 90,"weight": 34},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right6","y": 90,"weight": 35},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right7","y": 90,"weight": 36},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right8","y": 90,"weight": 37},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right9","y": 90,"weight": 38},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_top_right10","y": 90,"weight": 39}],
      "when": {"AND": [  {"facing": "east"} , {"slot_2_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left1","y": 90,"weight": 40},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left2","y": 90,"weight": 41},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left3","y": 90,"weight": 42},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left4","y": 90,"weight": 43},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left5","y": 90,"weight": 44},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left6","y": 90,"weight": 45},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left7","y": 90,"weight": 46},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left8","y": 90,"weight": 47},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left9","y": 90,"weight": 48},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_left10","y": 90,"weight": 49}],
      "when": {"AND": [  {"facing": "east"} , {"slot_3_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid1","y": 90,"weight": 50},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid2","y": 90,"weight": 51},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid3","y": 90,"weight": 52},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid4","y": 90,"weight": 53},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid5","y": 90,"weight": 54},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid6","y": 90,"weight": 55},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid7","y": 90,"weight": 56},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid8","y": 90,"weight": 57},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid9","y": 90,"weight": 58},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_mid10","y": 90,"weight": 59}],
      "when": {"AND": [  {"facing": "east"} , {"slot_4_occupied": "true"}]}},

    {"apply": [{"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right1","y": 90,"weight": 60},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right2","y": 90,"weight": 61},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right3","y": 90,"weight": 62},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right4","y": 90,"weight": 63},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right5","y": 90,"weight": 64},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right6","y": 90,"weight": 65},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right7","y": 90,"weight": 66},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right8","y": 90,"weight": 67},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right9","y": 90,"weight": 68},
               {"model": "minecraft:block/chiseled_bookshelf_occupied_slot_bottom_right10","y": 90,"weight": 69}],
      "when": {"AND": [  {"facing": "east"} , {"slot_5_occupied": "true"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_left","y": 90},
      "when": {"AND": [  {"facing": "east"} , {"slot_0_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_mid","y": 90},
      "when": {"AND": [  {"facing": "east"} , {"slot_1_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_top_right","y": 90},
      "when": {"AND": [  {"facing": "east"} , {"slot_2_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_left","y": 90},
      "when": {"AND": [  {"facing": "east"} , {"slot_3_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_mid","y": 90},
      "when": {"AND": [  {"facing": "east"} , {"slot_4_occupied": "false"}]}},

    {"apply": {"model": "minecraft:block/chiseled_bookshelf_empty_slot_bottom_right","y": 90},
      "when": {"AND": [  {"facing": "east"} , {"slot_5_occupied": "false"}]}}

  ]
}