golden_carrot.json 578 B

1234567891011121314151617181920212223242526272829303132
  1. {
  2. "parent": "minecraft:recipes/root",
  3. "rewards": {
  4. "recipes": [
  5. "minecraft:golden_carrot"
  6. ]
  7. },
  8. "criteria": {
  9. "has_gold_nugget": {
  10. "trigger": "minecraft:inventory_changed",
  11. "conditions": {
  12. "items": [
  13. {
  14. "item": "minecraft:gold_nugget"
  15. }
  16. ]
  17. }
  18. },
  19. "has_the_recipe": {
  20. "trigger": "minecraft:recipe_unlocked",
  21. "conditions": {
  22. "recipe": "minecraft:golden_carrot"
  23. }
  24. }
  25. },
  26. "requirements": [
  27. [
  28. "has_gold_nugget",
  29. "has_the_recipe"
  30. ]
  31. ]
  32. }