{
  "type": "origins:active_self",
  "hidden": true,
  "condition": {
    "type": "origins:and",
    "conditions": [
      {
        "type": "origins:equipped_item",
        "equipment_slot": "mainhand",
        "item_condition": {
          "type": "origins:ingredient",
          "ingredient": { "item": "minecraft:bone_meal" }
        }
      },
      {
        "type": "apoli:scoreboard",
        "objective": "skeleton_growth_level",
        "comparison": "<",
        "compare_to": 10
      }
    ]
  },
  "entity_action": {
    "type": "origins:and",
    "actions": [
      {
        "type": "origins:equipped_item_action",
        "equipment_slot": "mainhand",
        "action": { "type": "origins:consume", "amount": 1 }
      },
      {
        "type": "origins:change_resource",
        "resource": "undeadorigins:skeleton/growth_progress_bar",
        "change": 1
      },
      {
        "type": "origins:execute_command",
        "command": "function undeadorigins:skeleton_growth/add_1"
      }
    ]
  },
  "cooldown": 10,
  "key": "key.use"
}
