From 01772b9141dc62faacaa94cafa54951181c87527 Mon Sep 17 00:00:00 2001 From: Casper233 Date: Thu, 29 Dec 2022 13:31:34 +0800 Subject: [PATCH] Added the advancements --- build.gradle | 2 +- readme.md | 5 +++ readme_en.md | 5 +++ .../resources/assets/aciday/lang/en_us.json | 10 +++++- .../resources/assets/aciday/lang/zh_cn.json | 10 +++++- .../aciday/textures/gui/advancements.png | Bin 0 -> 5605 bytes .../data/aciday/advancements/bronze_get.json | 29 ++++++++++++++++++ .../data/aciday/advancements/root.json | 29 ++++++++++++++++++ .../advancements/smooth_debris_block.json | 29 ++++++++++++++++++ 9 files changed, 116 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/assets/aciday/textures/gui/advancements.png create mode 100644 src/main/resources/data/aciday/advancements/bronze_get.json create mode 100644 src/main/resources/data/aciday/advancements/root.json create mode 100644 src/main/resources/data/aciday/advancements/smooth_debris_block.json diff --git a/build.gradle b/build.gradle index 7b69635..8cc8f02 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { id 'net.minecraftforge.gradle' version '5.1.+' } -version = '1.19.2-0.0.1.3' +version = '1.19.2-0.0.1.4' group = 'com.Casper233.aciday' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'aciday' diff --git a/readme.md b/readme.md index 617fa2d..b9f96db 100644 --- a/readme.md +++ b/readme.md @@ -15,8 +15,13 @@ 本Mod若要联机游玩,需要在服务端和客户端同时安装 +*** + ## 更新日志 +**2022-12-29-1** +#### 添加了成就/进度 + **2022-12-27-2** #### 添加了以下物品/方块,并添加了与其有关的合成表: - 平滑碎片块 diff --git a/readme_en.md b/readme_en.md index bae1d61..fe43609 100644 --- a/readme_en.md +++ b/readme_en.md @@ -18,8 +18,13 @@ The debris are now deeply under the soil. This mod needs to put in both client and server side. +*** + ## Update log +**2022-12-29-1** +#### Added the advancements + **2022-12-27-2** #### Added following items/blocks and it's recipes: - Smooth Debris Block diff --git a/src/main/resources/assets/aciday/lang/en_us.json b/src/main/resources/assets/aciday/lang/en_us.json index a7c3b74..64e1931 100644 --- a/src/main/resources/assets/aciday/lang/en_us.json +++ b/src/main/resources/assets/aciday/lang/en_us.json @@ -1,6 +1,7 @@ { "item.aciday.debris": "Debris", "item.aciday.bronze_ingot": "Bronze Ingot", + "block.aciday.debris_ore": "Debris Ore", "block.aciday.bronze_ore": "Bronze Ore", "block.aciday.debris_block": "Debris Block", @@ -8,5 +9,12 @@ "block.aciday.deepslate_debris_ore": "Deepslate Debris Ore", "block.aciday.deepslate_bronze_ore": "Deepslate Bronze Ore", "block.aciday.smooth_debris_block": "Smooth Debris Block", - "itemGroup.aciday": "Ancient Days" + + "itemGroup.aciday": "Ancient Days", + + "advancements.aciday.debris.description": "Get a Debris", + "advancements.aciday.bronze": "This is Bronze~", + "advancements.aciday.bronze.description": "Get a Bronze Ingot", + "advancements.aciday.smooth_debris_block": "This looks fine, like metal!", + "advancements.aciday.smooth_debris_block.description": "Get one Smooth debris block" } \ No newline at end of file diff --git a/src/main/resources/assets/aciday/lang/zh_cn.json b/src/main/resources/assets/aciday/lang/zh_cn.json index 412ca8a..665ef85 100644 --- a/src/main/resources/assets/aciday/lang/zh_cn.json +++ b/src/main/resources/assets/aciday/lang/zh_cn.json @@ -1,6 +1,7 @@ { "item.aciday.debris": "碎片", "item.aciday.bronze_ingot": "青铜锭", + "block.aciday.debris_ore": "碎片矿石", "block.aciday.bronze_ore": "青铜矿石", "block.aciday.debris_block": "碎片块", @@ -8,5 +9,12 @@ "block.aciday.deepslate_debris_ore": "深层碎片矿石", "block.aciday.deepslate_bronze_ore": "深层青铜矿石", "block.aciday.smooth_debris_block": "平滑碎片块", - "itemGroup.aciday": "古之生活" + + "itemGroup.aciday": "古之生活", + + "advancements.aciday.debris.description": "获得碎片", + "advancements.aciday.bronze": "这是 这是青铜?", + "advancements.aciday.bronze.description": "获得青铜锭", + "advancements.aciday.smooth_debris_block": "看着不错,铁块亲戚?", + "advancements.aciday.smooth_debris_block.description": "获得平滑碎片块" } \ No newline at end of file diff --git a/src/main/resources/assets/aciday/textures/gui/advancements.png b/src/main/resources/assets/aciday/textures/gui/advancements.png new file mode 100644 index 0000000000000000000000000000000000000000..d98187d80eae7187b0d9af76f0f06e108ddc48e5 GIT binary patch literal 5605 zcmeHLc~leU7LQa#*~En^RwV`z6|zhgl8h_@fh1UvuqcW?m?RU3ki{gB07?Y}5oHl9 z0-~ZVTEQS%6cJe}h)a>hQY^)VC*oRAM1%^+n*`j>v+q66dHv7i%p`Nadw<`(zq?E( zJ3Kv@hI(`LP$-lko5k=#K8-cU6dmN8wmaAcg_uT2Ej3zZY09t#HJ7@$gFRFaOy4#=ga#Qb(?k*)N z(gk8>O){?!+{3&w+GPlKV%e=@2gCbd|dsC10E>ijIE9}|SJk5&7XzUXR ze(tScEKVDFX!gMH(V{eHdlj}^l{%=5F5J6}XZfPtKV(P$E>jNw!GzOQagPt>njdcu zJe-{}`PF$tmC3RTZ8O#}RzGFMbCu|Sz3NQBwbvx*Wwrq}#PkIf;&AO^a8UIvr z!8CU=GccKPCBv{jX37dz<30ZbcXk>Yq%E6GyW&wBx9{>b@|lU?-c!UQhW9!3)!UNx zqQugxD>CIt!&7mX?WdAJ-~PGejo1IUxctQJp$>mey<;rNF>czz+BBz>85>$2@)Cg~ zSu-sin_KRAvw-|Pq)la3W_?5DK&d0&e=y{|QYWI~AI$2v=I5j5vG zWV5X(b{)OB&U8u*)+x}Ite4hwllJ58+|Ii7o%M@bsGNk1-)UAYbH0e{LASc?UtTl& zyX3Obi~FYbY^T0HQJ?L4%Zyn1{AKMr;fom^!=OPP)N8r{(OC8@c9x23NLNhYU?@s+ue#tEG1WjwD-@DNDcG zeC*Md)U82|0|Bn+i(f}Q%r~oyJ`)b-N4;ovD7Uf375zrk7pGP>^{h-u!QKf}6nFC^ zE0{swmM3m8lis+$yrgRqvqpl#K~2@iBnv{#C)C$IzS;-Ytg^XA3fJ##S3bAvIuOCC zB(Az_?FeO^I-Hdv=r(;~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ysn2tsN=D1w4u zyi^>d-9tk%=;+C|!w_+VcM{J~NFhKBkj4>;`4Xl4-I9+`1bZtW4TpdYl}Myfs5T^k zMy8H$rA1r~%j8G_Yfu3KjzrX&YmxyX;UIKEn({^fv~q-3&{+mU3W>}|A_=v_XduuU z%eTw!NEh-U1;l_9Fak;-5;BTH8w?#2X7i4u!*ft)B?i*b*-o5(mM^&>1h%H*(=e zih)a^(0Nok9myL6VaXIO7t5sp1T0@bfnc(LKqt`XAEL`80)-Ni!Hz))j|f*tQ)szD zFBwnO(hv2O!LTL|2xVA+h<%ST41PRVyk^Y2iPjeX?|h6?#DHZ&Bv@COM5Lucu0UEG zZ5_#^6pZ9tc zd1johf#5?87(Q=(CNI44)g?w=pxj^_K6XvkxLF zznu;w>w4FRswWjaT<2Tk=gT3TNQg;XLgHj+-`rmXc;A_^oiYqzd&E76@~{Mx)QyKLx(sTNH-LJar8ym2XUJ2GqGO-#>#eoA8EFlw9iy$))j7)BUFv0XeEMNWaS{{rc^hLivR literal 0 HcmV?d00001 diff --git a/src/main/resources/data/aciday/advancements/bronze_get.json b/src/main/resources/data/aciday/advancements/bronze_get.json new file mode 100644 index 0000000..5277e7c --- /dev/null +++ b/src/main/resources/data/aciday/advancements/bronze_get.json @@ -0,0 +1,29 @@ +{ + "display": { + "icon": { + "item": "aciday:bronze_ingot" + }, + "title": { + "bold": false, + "translate": "advancements.aciday.bronze" + }, + "description": { + "translate": "advancements.aciday.bronze.description" + } + }, + "parent": "aciday:root", + "criteria": { + "bronze_in_inventory": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "aciday:bronze_ingot" + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/src/main/resources/data/aciday/advancements/root.json b/src/main/resources/data/aciday/advancements/root.json new file mode 100644 index 0000000..02762e8 --- /dev/null +++ b/src/main/resources/data/aciday/advancements/root.json @@ -0,0 +1,29 @@ +{ + "display": { + "icon": { + "item": "aciday:debris" + }, + "title": { + "bold": true, + "translate": "itemGroup.aciday" + }, + "description": { + "translate": "advancements.aciday.debris.description" + }, + "background": "aciday:textures/gui/advancements.png" + }, + "criteria": { + "debris_in_inventory": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "aciday:debris" + ] + } + ] + } + } + } +} \ No newline at end of file diff --git a/src/main/resources/data/aciday/advancements/smooth_debris_block.json b/src/main/resources/data/aciday/advancements/smooth_debris_block.json new file mode 100644 index 0000000..04aa2f0 --- /dev/null +++ b/src/main/resources/data/aciday/advancements/smooth_debris_block.json @@ -0,0 +1,29 @@ +{ + "display": { + "icon": { + "item": "aciday:smooth_debris_block" + }, + "title": { + "bold": false, + "translate": "advancements.aciday.smooth_debris_block" + }, + "description": { + "translate": "advancements.aciday.smooth_debris_block.description" + } + }, + "parent": "aciday:root", + "criteria": { + "bronze_in_inventory": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "aciday:smooth_debris_block" + ] + } + ] + } + } + } +} \ No newline at end of file