Răsfoiți Sursa

添加进度

00ll00 6 ani în urmă
părinte
comite
d7a0ed5833

+ 31 - 0
data/ltw/advancements/eastereggs/author_team.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:eastereggs/root",
+    "display": {
+      "icon": {
+        "item": "minecraft:potion"
+      },
+      "title": {
+        "text": "作者的茶会"
+      },
+      "description": {
+        "text": "与地图作者们饮茶聊天"
+      },
+      "frame": "challenge",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": true
+    },
+    "rewards": {
+      "function": "ltw:advancement/eastereggs/grant_root"
+    },
+    "criteria": {
+      "finish":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "finish"
+      ]
+    ]
+  }

+ 31 - 0
data/ltw/advancements/eastereggs/cave_gate.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:eastereggs/root",
+    "display": {
+      "icon": {
+        "item": "minecraft:crimson_door"
+      },
+      "title": {
+        "text": "神必洞窟"
+      },
+      "description": {
+        "text": "试图窥视洞窟的秘密"
+      },
+      "frame": "task",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": true
+    },
+    "rewards": {
+      "function": "ltw:advancement/eastereggs/grant_root"
+    },
+    "criteria": {
+      "finish":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "finish"
+      ]
+    ]
+  }

+ 31 - 0
data/ltw/advancements/eastereggs/mall_gate.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:eastereggs/root",
+    "display": {
+      "icon": {
+        "item": "minecraft:gold_nugget"
+      },
+      "title": {
+        "text": "超商的观察者"
+      },
+      "description": {
+        "text": "从高处观察繁忙的超商"
+      },
+      "frame": "task",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": true
+    },
+    "rewards": {
+      "function": "ltw:advancement/eastereggs/grant_root"
+    },
+    "criteria": {
+      "finish":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "finish"
+      ]
+    ]
+  }

+ 31 - 0
data/ltw/advancements/eastereggs/parkour_to_outworld.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:eastereggs/root",
+    "display": {
+      "icon": {
+        "item": "minecraft:barrier"
+      },
+      "title": {
+        "text": "跑酷的极限"
+      },
+      "description": {
+        "text": "试图从主城的中心翻越世界围墙"
+      },
+      "frame": "challenge",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": true
+    },
+    "rewards": {
+      "function": "ltw:advancement/eastereggs/grant_root"
+    },
+    "criteria": {
+      "finish":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "finish"
+      ]
+    ]
+  }

+ 28 - 0
data/ltw/advancements/eastereggs/root.json

@@ -0,0 +1,28 @@
+{
+    "display": {
+      "icon": {
+        "item": "minecraft:pufferfish_spawn_egg"
+      },
+      "title": {
+        "text":"彩蛋"
+      },
+      "description": {
+        "text":"仔细探索整个主城吧"
+      },
+      "frame": "task",
+      "show_toast": false,
+      "announce_to_chat": false,
+      "hidden": false,
+      "background": "minecraft:textures/gui/advancements/backgrounds/adventure.png"
+    },
+    "criteria": {
+      "root": {
+        "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+        "root"
+      ]
+    ]
+  }

+ 31 - 0
data/ltw/advancements/parkour/lobby_1.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:parkour/root",
+    "display": {
+      "icon": {
+        "item": "minecraft:chainmail_boots"
+      },
+      "title": {
+        "text": "健步如飞"
+      },
+      "description": {
+        "text": "完成主大厅跑酷"
+      },
+      "frame": "task",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": false
+    },
+    "rewards": {
+      "function": "ltw:advancement/parkour/grant_root"
+    },
+    "criteria": {
+      "finish":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "finish"
+      ]
+    ]
+  }

+ 31 - 0
data/ltw/advancements/parkour/lobby_2.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:parkour/lobby_1",
+    "display": {
+      "icon": {
+        "item": "minecraft:netherite_boots"
+      },
+      "title": {
+        "text": "风驰电掣"
+      },
+      "description": {
+        "text": "完成主大厅隐藏跑酷"
+      },
+      "frame": "challenge",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": false
+    },
+    "rewards": {
+      "function": "ltw:advancement/parkour/grant_root"
+    },
+    "criteria": {
+      "finish":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "finish"
+      ]
+    ]
+  }

+ 31 - 0
data/ltw/advancements/parkour/mini_1.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:parkour/root",
+    "display": {
+      "icon": {
+        "item": "minecraft:iron_boots"
+      },
+      "title": {
+        "text": "跑酷新手"
+      },
+      "description": {
+        "text": "在跑酷游戏中获得 4 分"
+      },
+      "frame": "task",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": false
+    },
+    "rewards": {
+      "function": "ltw:advancement/parkour/grant_root"
+    },
+    "criteria": {
+      "get_score":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "get_score"
+      ]
+    ]
+  }

+ 31 - 0
data/ltw/advancements/parkour/mini_2.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:parkour/mini_1",
+    "display": {
+      "icon": {
+        "item": "minecraft:golden_boots"
+      },
+      "title": {
+        "text": "跑酷熟手"
+      },
+      "description": {
+        "text": "在跑酷游戏中获得 7 分"
+      },
+      "frame": "task",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": false
+    },
+    "rewards": {
+      "function": "ltw:advancement/parkour/grant_root"
+    },
+    "criteria": {
+      "get_score":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "get_score"
+      ]
+    ]
+  }

+ 31 - 0
data/ltw/advancements/parkour/mini_3.json

@@ -0,0 +1,31 @@
+{
+    "parent": "ltw:parkour/mini_2",
+    "display": {
+      "icon": {
+        "item": "minecraft:diamond_boots"
+      },
+      "title": {
+        "text": "跑酷大师"
+      },
+      "description": {
+        "text": "在跑酷游戏中获得 10 分"
+      },
+      "frame": "challenge",
+      "show_toast": true,
+      "announce_to_chat": true,
+      "hidden": false
+    },
+    "rewards": {
+      "function": "ltw:advancement/parkour/grant_root"
+    },
+    "criteria": {
+      "get_score":{
+          "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+          "get_score"
+      ]
+    ]
+  }

+ 28 - 0
data/ltw/advancements/parkour/root.json

@@ -0,0 +1,28 @@
+{
+    "display": {
+      "icon": {
+        "item": "minecraft:leather_boots"
+      },
+      "title": {
+        "text":"跑酷"
+      },
+      "description": {
+        "text":"奔波的时光开始了"
+      },
+      "frame": "task",
+      "show_toast": false,
+      "announce_to_chat": false,
+      "hidden": false,
+      "background": "minecraft:textures/gui/advancements/backgrounds/adventure.png"
+    },
+    "criteria": {
+      "root": {
+        "trigger": "minecraft:impossible"
+      }
+    },
+    "requirements": [
+      [
+        "root"
+      ]
+    ]
+  }

+ 1 - 0
data/ltw/functions/advancement/eastereggs/grant_root.mcfunction

@@ -0,0 +1 @@
+advancement grant @s only ltw:eastereggs/root

+ 1 - 0
data/ltw/functions/advancement/parkour/grant_root.mcfunction

@@ -0,0 +1 @@
+advancement grant @s only ltw:parkour/root

+ 5 - 1
data/mini/functions/parkour/game/test_treasure.mcfunction

@@ -43,4 +43,8 @@ execute positioned 1014.50 19.50 1024.50 as @a[tag=!treasure10,tag=!watcher,tag=
 scoreboard players add @a[tag=get_treasure] treasure 1
 tellraw @a[tag=get_treasure,scores={treasure=..9}] ["",{"text":">> ","color":"green","bold": true},"你已获得 ",{"score": {"objective": "treasure","name": "*"},"color":"green"},{"text": " 份 ","color":"green"},"宝藏!"]
 execute as @a[tag=get_treasure,scores={treasure=10}] run function mini:parkour/player_finished
-execute as @a[tag=get_treasure] at @s run function lib:sounds/levelup
+execute as @a[tag=get_treasure] at @s run function lib:sounds/levelup
+
+execute as @a[tag=get_treasure] if score @s treasure matches 4 run advancement grant @s only ltw:parkour/mini_1
+execute as @a[tag=get_treasure] if score @s treasure matches 7 run advancement grant @s only ltw:parkour/mini_2
+execute as @a[tag=get_treasure] if score @s treasure matches 10 run advancement grant @s only ltw:parkour/mini_3