{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.silverlabs_nat.light": {
      "states": {
        "default": {
          "on_entry": [
            "@s silverlabs_nat:reset_all"
          ],
          "transitions": [
            {
              "reset": "q.is_shaking"
            },
            {
              "on": "!q.is_shaking"
            }
          ]
        },
        "on": {
          "on_entry": [
            "/tag @s add silverlabs_nat:light_source",
            "/function sf/nba/lighting/setup"
          ],
          "transitions": [
            {
              "default": "query.property('silverlabs_nat:furniture_variant') == 1"
            },
            {
              "reset": "q.is_shaking"
            }
          ]
        },
        "reset": {
          "on_entry": [
            "/function sf/nba/lighting/remove",
            "/tag @s remove silverlabs_nat:light_source"
          ]
        }
      }
    },
    "controller.animation.silverlabs_nat.furniture_moved": {
      "initial_state": "not_moving",
      "states": {
        "not_moving": {
          "transitions": [
            {
              "moving": "math.abs(q.position_delta(0)) > 0.01 || math.abs(q.position_delta(1)) > 0.01 || math.abs(q.position_delta(2)) > 0.01 || q.is_in_lava"
            }
          ]
        },
        "moving": {
          "on_entry": [
            "@s silverlabs_nat:drop_egg"
          ]
        }
      }
    },
    "controller.animation.silverlabs_nat.furniture_hit": {
      "initial_state": "not_hit",
      "states": {
        "not_hit": {
          "transitions": [
            {
              "hit": "query.property('silverlabs_nat:furniture_hit')"
            },
            {
              "destroy": "query.is_shaking"
            }
          ]
        },
        "hit": {
          "on_entry": [
            "@s silverlabs_nat:furniture_not_hit",
            "/playsound dig.stone @a[r=16] ~ ~ ~ 0.75 1.45"
          ],
          "transitions": [
            {
              "destroy": "query.is_shaking"
            },
            {
              "not_hit": "1"
            }
          ]
        },
        "destroy": {}
      }
    },
    "controller.animation.silverlabs_nat.furniture_spawn": {
      "states": {
        "default": {
          "transitions": [
            {
              "just_spawned": "query.property('silverlabs_nat:just_spawned')"
            }
          ]
        },
        "just_spawned": {
          "on_entry": [
            "@s silverlabs_nat:finish_spawned",
            "/playsound dig.stone @a[r=16] ~ ~ ~ 0.75 1.45"
          ]
        }
      }
    },
    "controller.animation.silverlabs_nat.firefly_jar.furniture_remove": {
      "initial_state": "default",
      "states": {
        "default": {
          "transitions": [
            {
              "egg_drop": "1"
            }
          ]
        },
        "egg_drop": {
          "on_entry": [
            "/loot spawn ~0.5 ~0.5 ~0.5 loot \"sf/nba/items/firefly_jar.loot\""
          ],
          "transitions": [
            {
              "dropped_egg": "1"
            }
          ]
        },
        "dropped_egg": {
          "on_entry": [
            "@s silverlabs_nat:remove"
          ]
        }
      }
    }
  }
}
