Skip to content

Commit

Permalink
item lore and unlock recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
lullaby6 committed Feb 13, 2025
1 parent a938383 commit a537522
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions data/experience_bottle/advancement/recipe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"criteria": {
"requirement": {
"trigger": "minecraft:player_killed_entity"
}
},
"rewards": {
"recipes": ["experience_bottle:empty"]
}
}
3 changes: 2 additions & 1 deletion data/experience_bottle/loot_table/empty.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"cooldown_group": "experience_bottle:cooldown"
},
"minecraft:item_model": "minecraft:glass_bottle",
"minecraft:custom_name": "{\"text\":\"Experience Bottle\",\"italic\": false}"
"minecraft:custom_name": "{\"text\":\"Experience Bottle\",\"italic\": false}",
"minecraft:lore": ["{\"text\":\"Store 30 experience levels\",\"italic\": false,\"color\":\"gray\"}"]
}
}
]
Expand Down
1 change: 1 addition & 0 deletions data/experience_bottle/loot_table/filled.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"cooldown_group": "experience_bottle:cooldown"
},
"minecraft:custom_name": "{\"text\":\"Experience Bottle\",\"italic\": false}",
"minecraft:lore": ["{\"text\":\"Restore 30 experience levels\",\"italic\": false,\"color\":\"gray\"}"],
"!minecraft:use_remainder": {}
}
}
Expand Down
3 changes: 2 additions & 1 deletion data/experience_bottle/recipe/empty.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"cooldown_group": "experience_bottle:cooldown"
},
"minecraft:item_model": "minecraft:glass_bottle",
"minecraft:custom_name": "{\"text\":\"Experience Bottle\",\"italic\": false}"
"minecraft:custom_name": "{\"text\":\"Experience Bottle\",\"italic\": false}",
"minecraft:lore": ["{\"text\":\"Store 30 experience levels\",\"italic\": false,\"color\":\"gray\"}"]
}
}
}

0 comments on commit a537522

Please sign in to comment.