{
  "format_version": "1.16.100",
  "minecraft:block": {
    "description": {
      "identifier": "loled:setup_jbl",
      "properties": {
        "loled:face": [
          0,
          1,
          2,
          3
        ],
        "loled:music": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ]
      }
    },
    "components": {
      "minecraft:material_instances": {
        "*": {
          "texture": "jbl",
          "render_method": "opaque"
        }
      },
      "minecraft:pick_collision": {
        "origin": [
          -9,
          0,
          -4
        ],
        "size": [
          18,
          10,
          8
        ]
      },
      "minecraft:creative_category": {
        "group": "itemGroup.name.setup",
        "category": "construction"
      },
      "minecraft:loot": "loot_tables/setup/setup_jbl.json",
      "minecraft:geometry": "geometry.jbl",
      "minecraft:destroy_time": 2,
      "minecraft:block_light_absorption": 0,
      "minecraft:entity_collision": {
        "origin": [
          -9,
          0,
          -4
        ],
        "size": [
          18,
          10,
          8
        ]
      },
      "minecraft:friction": 0.6,
      "minecraft:map_color": "#00ff00",
      "minecraft:flammable": {
        "flame_odds": 0,
        "burn_odds": 0
      },
      "minecraft:on_interact": {
        "event": "loled:music1"
      },
      "minecraft:on_player_placing": {
        "event": "loled:face"
      }
    },
    "permutations": [
      {
        "condition": "query.block_property('loled:face') == 0",
        "components": {
          "minecraft:rotation": [
            0,
            180,
            0
          ]
        }
      },
      {
        "condition": "query.block_property('loled:face') == 1",
        "components": {
          "minecraft:rotation": [
            0,
            0,
            0
          ]
        }
      },
      {
        "condition": "query.block_property('loled:face') == 2",
        "components": {
          "minecraft:rotation": [
            0,
            270,
            0
          ]
        }
      },
      {
        "condition": "query.block_property('loled:face') == 3",
        "components": {
          "minecraft:rotation": [
            0,
            90,
            0
          ]
        }
      },
      {
        "condition": "query.block_property('loled:music') == 1",
        "components": {
          "minecraft:on_interact": {
            "event": "loled:music2"
          }
        }
      },
      {
        "condition": "query.block_property('loled:music') == 2",
        "components": {
          "minecraft:on_interact": {
            "event": "loled:music3"
          }
        }
      },
      {
        "condition": "query.block_property('loled:music') == 3",
        "components": {
          "minecraft:on_interact": {
            "event": "loled:music4"
          }
        }
      },
      {
        "condition": "query.block_property('loled:music') == 4",
        "components": {
          "minecraft:on_interact": {
            "event": "loled:music5"
          }
        }
      },
      {
        "condition": "query.block_property('loled:music') == 5",
        "components": {
          "minecraft:on_interact": {
            "event": "loled:music6"
          }
        }
      },
      {
        "condition": "query.block_property('loled:music') == 6",
        "components": {
          "minecraft:on_interact": {
            "event": "loled:stopsound"
          }
        }
      }
    ],
    "events": {
      "loled:face": {
        "set_block_property": {
          "loled:face": "query.cardinal_facing_2d-2"
        }
      },
      "loled:music1": {
        "set_block_property": {
          "loled:music": 1
        },
        "run_command": {
          "command": [
            "playsound music1.sound @a ~~~ 1 1",
            "title @p actionbar §l§fPlaying now:§1PewDiePie - Congratulations"
          ]
        }
      },
      "loled:music2": {
        "set_block_property": {
          "loled:music": 2
        },
        "run_command": {
          "command": [
            "playsound music2.sound @a ~~~ 1 1",
            "title @p actionbar §l§fPlaying now:§2Astronomia",
            "stopsound @a"
          ]
        }
      },
      "loled:music3": {
        "set_block_property": {
          "loled:music": 3
        },
        "run_command": {
          "command": [
            "playsound music3.sound @a ~~~ 1 1",
            "title @p actionbar §l§fPlaying now:§3Smash Mouth - All Star",
            "stopsound @a"
          ]
        }
      },
      "loled:music4": {
        "set_block_property": {
          "loled:music": 4
        },
        "run_command": {
          "command": [
            "playsound music4.sound @a ~~~ 1 1",
            "title @p actionbar §l§fPlaying now:§4Wellerman Sea Shanty",
            "stopsound @a"
          ]
        }
      },
      "loled:music5": {
        "set_block_property": {
          "loled:music": 5
        },
        "run_command": {
          "command": [
            "playsound music5.sound @a ~~~ 1 1",
            "title @p actionbar §l§fPlaying now:§5Wide Steve walk",
            "stopsound @a"
          ]
        }
      },
      "loled:music6": {
        "set_block_property": {
          "loled:music": 6
        },
        "run_command": {
          "command": [
            "playsound music6.sound @a ~~~ 1 1",
            "title @p actionbar §l§fPlaying now:§6We Are Number One",
            "stopsound @a"
          ]
        }
      },
      "loled:stopsound": {
        "set_block_property": {
          "loled:music": 0
        },
        "run_command": {
          "command": "stopsound @a"
        }
      }
    }
  }
}