Skip to content

Commit a9d4e55

Browse files
committed
feat(web): support 1.18
Add 1.18 advancements. Count deepslate ores while getting ore data.
1 parent 1f065cc commit a9d4e55

File tree

5 files changed

+43
-3
lines changed

5 files changed

+43
-3
lines changed

web/src/assets/advancement-data.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@
105105
"title": "advancements.adventure.bullseye.title",
106106
"description": "advancements.adventure.bullseye.description"
107107
},
108+
"minecraft:adventure/fall_from_world_height": {
109+
"type": "task",
110+
"icon": "minecraft:water_bucket",
111+
"title": "advancements.adventure.fall_from_world_height.title",
112+
"description": "advancements.adventure.fall_from_world_height.description"
113+
},
108114
"minecraft:adventure/hero_of_the_village": {
109115
"type": "challenge",
110116
"icon": "minecraft:white_banner",
@@ -279,6 +285,12 @@
279285
"title": "advancements.adventure.trade.title",
280286
"description": "advancements.adventure.trade.description"
281287
},
288+
"minecraft:adventure/trade_at_world_height": {
289+
"type": "task",
290+
"icon": "minecraft:emerald",
291+
"title": "advancements.adventure.trade_at_world_height.title",
292+
"description": "advancements.adventure.trade_at_world_height.description"
293+
},
282294
"minecraft:adventure/two_birds_one_arrow": {
283295
"type": "challenge",
284296
"icon": "minecraft:crossbow",
@@ -579,6 +591,12 @@
579591
"title": "advancements.husbandry.plant_seed.title",
580592
"description": "advancements.husbandry.plant_seed.description"
581593
},
594+
"minecraft:husbandry/play_jukebox_in_meadows": {
595+
"type": "task",
596+
"icon": "minecraft:note_block",
597+
"title": "advancements.husbandry.play_jukebox_in_meadows.title",
598+
"description": "advancements.husbandry.play_jukebox_in_meadows.description"
599+
},
582600
"minecraft:husbandry/ride_a_boat_with_a_goat": {
583601
"type": "task",
584602
"icon": "minecraft:oak_boat",
@@ -755,6 +773,12 @@
755773
"title": "advancements.nether.ride_strider.title",
756774
"description": "advancements.nether.ride_strider.description"
757775
},
776+
"minecraft:nether/ride_strider_in_overworld_lava": {
777+
"type": "task",
778+
"icon": "minecraft:warped_fungus_on_a_stick",
779+
"title": "advancements.nether.ride_strider_in_overworld_lava.title",
780+
"description": "advancements.nether.ride_strider_in_overworld_lava.description"
781+
},
758782
"minecraft:nether/root": {
759783
"type": "task",
760784
"icon": "minecraft:red_nether_bricks",
File renamed without changes.

web/src/assets/advancements/adventure/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const trade = require('./trade.png');
77
export const honey_block_slide = require('./honey_block_slide.png');
88
export const ol_betsy = require('./ol_betsy.png');
99
export const lightning_rod_with_villager_no_fire = require('./lightning_rod_with_villager_no_fire.png');
10-
export const caves_and_cliffs = require('./caves_and_cliffs.png');
10+
export const fall_from_world_height = require("./fall_from_world_height.png");
1111
export const walk_on_powder_snow_with_leather_boots = require('./walk_on_powder_snow_with_leather_boots.png');
1212
export const sleep_in_bed = require('./sleep_in_bed.png');
1313
export const hero_of_the_village = require('./hero_of_the_village.png');

web/src/assets/lang.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
"advancements.adventure.adventuring_time.description": "Discover every biome",
4141
"advancements.adventure.arbalistic.title": "Arbalistic",
4242
"advancements.adventure.arbalistic.description": "Kill five unique mobs with one crossbow shot",
43+
"advancements.adventure.fall_from_world_height.title": "Caves & Cliffs",
44+
"advancements.adventure.fall_from_world_height.description": "Free fall from the top of the world (build limit) to the bottom of the world and survive",
4345
"advancements.adventure.hero_of_the_village.title": "Hero of the Village",
4446
"advancements.adventure.hero_of_the_village.description": "Successfully defend a village from a raid",
4547
"advancements.adventure.kill_all_mobs.title": "Monsters Hunted",
@@ -62,6 +64,8 @@
6264
"advancements.adventure.totem_of_undying.description": "Use a Totem of Undying to cheat death",
6365
"advancements.adventure.trade.title": "What a Deal!",
6466
"advancements.adventure.trade.description": "Successfully trade with a Villager",
67+
"advancements.adventure.trade_at_world_height.title": "Star Trader",
68+
"advancements.adventure.trade_at_world_height.description": "Trade with a villager at the build height limit",
6569
"advancements.adventure.throw_trident.title": "A Throwaway Joke",
6670
"advancements.adventure.throw_trident.description": "Throw a trident at something.\nNote: Throwing away your only weapon is not a good idea.",
6771
"advancements.adventure.two_birds_one_arrow.title": "Two Birds, One Arrow",
@@ -98,6 +102,8 @@
98102
"advancements.husbandry.tame_an_animal.description": "Tame an animal",
99103
"advancements.husbandry.plant_seed.title": "A Seedy Place",
100104
"advancements.husbandry.plant_seed.description": "Plant a seed and watch it grow",
105+
"advancements.husbandry.play_jukebox_in_meadows.title": "Sound of Music",
106+
"advancements.husbandry.play_jukebox_in_meadows.description": "Make the Meadows come alive with the sound of music from a jukebox",
101107
"advancements.husbandry.break_diamond_hoe.title": "Serious Dedication",
102108
"advancements.husbandry.break_diamond_hoe.description": "Completely use up a diamond hoe, and then reevaluate your life choices",
103109
"advancements.husbandry.balanced_diet.title": "A Balanced Diet",
@@ -174,6 +180,8 @@
174180
"advancements.nether.charge_respawn_anchor.description": "Charge a Respawn Anchor to the maximum",
175181
"advancements.nether.ride_strider.title": "This Boat Has Legs",
176182
"advancements.nether.ride_strider.description": "Ride a Strider with a Warped Fungus on a Stick",
183+
"advancements.nether.ride_strider_in_overworld_lava.title": "Feels like home",
184+
"advancements.nether.ride_strider_in_overworld_lava.description": "Take a Strider for a loooong ride on a lava lake in the Overworld",
177185
"advancements.nether.explore_nether.title": "Hot Tourist Destinations",
178186
"advancements.nether.explore_nether.description": "Explore all Nether biomes",
179187
"advancements.nether.find_bastion.title": "Those Were the Days",
@@ -507,6 +515,8 @@
507515
"advancements.adventure.adventuring_time.title": "探索的时光",
508516
"advancements.adventure.arbalistic.description": "用弩一发击杀五只不同的生物",
509517
"advancements.adventure.arbalistic.title": "劲弩手",
518+
"advancements.adventure.fall_from_world_height.description": "从世界顶部(建筑高度限制处)自由落体,坠至世界底部并存活下来",
519+
"advancements.adventure.fall_from_world_height.title": "上天入地",
510520
"advancements.adventure.hero_of_the_village.description": "成功在袭击中保卫村庄",
511521
"advancements.adventure.hero_of_the_village.title": "村庄英雄",
512522
"advancements.adventure.kill_a_mob.description": "杀死任意敌对性怪物",
@@ -531,6 +541,8 @@
531541
"advancements.adventure.totem_of_undying.title": "超越生死",
532542
"advancements.adventure.trade.description": "成功与一名村民进行交易",
533543
"advancements.adventure.trade.title": "成交!",
544+
"advancements.adventure.trade_at_world_height.description": "在建筑高度限制处与村民交易",
545+
"advancements.adventure.trade_at_world_height.title": "星际商人",
534546
"advancements.adventure.two_birds_one_arrow.description": "用一支穿透箭射杀两只幻翼",
535547
"advancements.adventure.two_birds_one_arrow.title": "一箭双雕",
536548
"advancements.adventure.very_very_frightening.description": "雷击一名村民",
@@ -585,6 +597,8 @@
585597
"advancements.husbandry.fishy_business.title": "腥味十足的生意",
586598
"advancements.husbandry.plant_seed.description": "种下种子,见证它的成长",
587599
"advancements.husbandry.plant_seed.title": "开荒垦地",
600+
"advancements.husbandry.play_jukebox_in_meadows.description": "用唱片机的音乐声为草甸增添生机",
601+
"advancements.husbandry.play_jukebox_in_meadows.title": "音乐之声",
588602
"advancements.husbandry.root.description": "世界无处没有朋友与美食",
589603
"advancements.husbandry.root.title": "农牧业",
590604
"advancements.husbandry.tactical_fishing.description": "不用钓鱼竿抓住一条鱼!",
@@ -653,6 +667,8 @@
653667
"advancements.nether.obtain_crying_obsidian.title": "谁在切洋葱?",
654668
"advancements.nether.ride_strider.description": "手持诡异菌钓竿骑乘炽足兽",
655669
"advancements.nether.ride_strider.title": "画船添足",
670+
"advancements.nether.ride_strider_in_overworld_lava.description": "带炽足兽在主世界的熔岩湖上来一场长——途旅行",
671+
"advancements.nether.ride_strider_in_overworld_lava.title": "温暖如家",
656672
"advancements.nether.use_lodestone.description": "对着磁石使用指南针",
657673
"advancements.nether.use_lodestone.title": "天涯共此石",
658674
"advancements.story.cure_zombie_villager.description": "弱化并治疗一名僵尸村民",

web/src/components/player-ore-graph.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
computed: {
144144
oreData () {
145145
const data = ORES.map(ore => {
146-
const mined = this.player.stats[`minecraft:mined/minecraft:${ore}_ore`] ?? 0
147-
const used = this.player.stats[`minecraft:used/minecraft:${ore}_ore`] ?? 0
146+
const mined = (this.player.stats[`minecraft:mined/minecraft:${ore}_ore`] ?? 0) + (this.player.stats[`minecraft:mined/minecraft:deepslate_${ore}_ore`] ?? 0)
147+
const used = (this.player.stats[`minecraft:used/minecraft:${ore}_ore`] ?? 0) + (this.player.stats[`minecraft:used/minecraft:deepslate_${ore}_ore`] ?? 0)
148148
const net = Math.max(mined - used, 0)
149149
return {
150150
ore,

0 commit comments

Comments
 (0)