Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Latest commit

 

History

History
44 lines (40 loc) · 1.2 KB

File metadata and controls

44 lines (40 loc) · 1.2 KB

Создание достижения

Перейдём по пути:

└── src    
    └── main
        └── resources
            └── assets
                └── tut
                    └── advancements
                        └── craft

Создадим файл key_achievement.json.

{
    "display": {
        "icon": {
            "item": "minecraft:wool",
            "data": 6
        },
        "title": {
            "translate": "advancements.tutorial.key.title"
        },
        "description": {
            "translate": "advancements.tutorial.key.description"
        },
        "frame": "goal"
    },
    "parent": "tut:craft/root",
    "criteria": {
        "recipe_unlocked": {
            "trigger": "minecraft:recipe_unlocked",
            "conditions": {
                "recipe": "tut:key"
            }
        }
    }
}
  • frame - это рамка самого достижения, существует всего два вида рамок (если не считать обычную): goal и challenge

В данном случае достижение будет получено, если мы откроем рецепт.