{
  "parent": "twilightforest:alt/root",
  "criteria": {
    "beans": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [{ "item": "twilightforest:magic_beans" }]}},
    "used": { "trigger": "twilightforest:has_advancement", "conditions": { "advancement": "twilightforest:alt/treasures/magic_beanstalk" }}
  },
  "requirements": [
    [ "beans", "used" ]
  ]
}