From 3ac5f3c9ec2d37e3d21dc460104698649a1e4936 Mon Sep 17 00:00:00 2001 From: xtex Date: Sun, 30 Jul 2023 20:17:33 +0800 Subject: [PATCH] feat: add advancements --- .../resources/assets/quaedam/lang/en_us.json | 16 +++++++- .../resources/assets/quaedam/lang/zh_cn.json | 16 +++++++- .../assets/quaedam/lang/zh_meme.json | 16 +++++++- .../advancements/causality_anchor.json | 37 +++++++++++++++++++ .../advancements/kill_projected_person.json | 37 +++++++++++++++++++ .../data/quaedam/advancements/projector.json | 37 +++++++++++++++++++ .../quaedam/advancements/reality_stabler.json | 37 +++++++++++++++++++ .../advancements/smart_instrument.json | 36 ++++++++++++++++++ .../advancements/sound_projection.json | 36 ++++++++++++++++++ .../advancements/swarm_projection.json | 37 +++++++++++++++++++ 10 files changed, 302 insertions(+), 3 deletions(-) create mode 100644 common/src/main/resources/data/quaedam/advancements/causality_anchor.json create mode 100644 common/src/main/resources/data/quaedam/advancements/kill_projected_person.json create mode 100644 common/src/main/resources/data/quaedam/advancements/projector.json create mode 100644 common/src/main/resources/data/quaedam/advancements/reality_stabler.json create mode 100644 common/src/main/resources/data/quaedam/advancements/smart_instrument.json create mode 100644 common/src/main/resources/data/quaedam/advancements/sound_projection.json create mode 100644 common/src/main/resources/data/quaedam/advancements/swarm_projection.json diff --git a/common/src/main/resources/assets/quaedam/lang/en_us.json b/common/src/main/resources/assets/quaedam/lang/en_us.json index 1208e6d..50ddc7c 100644 --- a/common/src/main/resources/assets/quaedam/lang/en_us.json +++ b/common/src/main/resources/assets/quaedam/lang/en_us.json @@ -27,5 +27,19 @@ "quaedam.shell.music.volume_factor": "Volume Factor", "quaedam.shell.music.particle": "Particle", "quaedam.shell.music.particle.true": "Display", - "quaedam.shell.music.particle.false": "Hidden" + "quaedam.shell.music.particle.false": "Hidden", + "advancements.quaedam.causality_anchor.title": "Causality", + "advancements.quaedam.causality_anchor.description": "Is there any reason for this?", + "advancements.quaedam.projector.title": "Quaedam", + "advancements.quaedam.projector.description": "Use projectors to project", + "advancements.quaedam.reality_stabler.title": "More Stable", + "advancements.quaedam.reality_stabler.description": "Use reality stabler to stable the reality", + "advancements.quaedam.smart_instrument.title": "Better than Note Block", + "advancements.quaedam.smart_instrument.description": "Use smart instrument", + "advancements.quaedam.sound_projection.title": "Get Noisier", + "advancements.quaedam.sound_projection.description": "Make a sound projection", + "advancements.quaedam.swarm_projection.title": "Too many people", + "advancements.quaedam.swarm_projection.description": "Make a swarm projection", + "advancements.quaedam.kill_projected_person.title": "Go away", + "advancements.quaedam.kill_projected_person.description": "Kill a projection person\n\nWhy are you doing this?\nThis is bad." } \ No newline at end of file diff --git a/common/src/main/resources/assets/quaedam/lang/zh_cn.json b/common/src/main/resources/assets/quaedam/lang/zh_cn.json index 36c9c93..e48a7a3 100644 --- a/common/src/main/resources/assets/quaedam/lang/zh_cn.json +++ b/common/src/main/resources/assets/quaedam/lang/zh_cn.json @@ -27,5 +27,19 @@ "quaedam.shell.music.volume_factor": "响度因子", "quaedam.shell.music.particle": "粒子效果", "quaedam.shell.music.particle.true": "显示", - "quaedam.shell.music.particle.false": "隐藏" + "quaedam.shell.music.particle.false": "隐藏", + "advancements.quaedam.causality_anchor.title": "因果律", + "advancements.quaedam.causality_anchor.description": "这不合理", + "advancements.quaedam.projector.title": "Quaedam", + "advancements.quaedam.projector.description": "使用投影仪进行投影", + "advancements.quaedam.reality_stabler.title": "更加稳定", + "advancements.quaedam.reality_stabler.description": "使用现实稳定器稳定现实", + "advancements.quaedam.smart_instrument.title": "比音符盒更好", + "advancements.quaedam.smart_instrument.description": "使用智能乐器", + "advancements.quaedam.sound_projection.title": "更加吵闹", + "advancements.quaedam.sound_projection.description": "制作声音投影", + "advancements.quaedam.swarm_projection.title": "太多人了", + "advancements.quaedam.swarm_projection.description": "制作人群投影", + "advancements.quaedam.kill_projected_person.title": "走开", + "advancements.quaedam.kill_projected_person.description": "杀死一个投影人\n\n你为什么要这样做呢?\n这是不好的。" } diff --git a/common/src/main/resources/assets/quaedam/lang/zh_meme.json b/common/src/main/resources/assets/quaedam/lang/zh_meme.json index 40ed9db..7e651e1 100644 --- a/common/src/main/resources/assets/quaedam/lang/zh_meme.json +++ b/common/src/main/resources/assets/quaedam/lang/zh_meme.json @@ -27,5 +27,19 @@ "quaedam.shell.music.volume_factor": "振幅大小", "quaedam.shell.music.particle": "会变色的颗粒buff", "quaedam.shell.music.particle.true": "打开", - "quaedam.shell.music.particle.false": "关掉,关掉,一定要关掉" + "quaedam.shell.music.particle.false": "关掉,关掉,一定要关掉", + "advancements.quaedam.causality_anchor.title": "因果律", + "advancements.quaedam.causality_anchor.description": "这不合理", + "advancements.quaedam.projector.title": "有些事", + "advancements.quaedam.projector.description": "你是黑魔法(指着 JVMTI)师吗?", + "advancements.quaedam.reality_stabler.title": "水滴", + "advancements.quaedam.reality_stabler.description": "tql,这是强互作用力做的吗", + "advancements.quaedam.smart_instrument.title": "SMART(消歧义)", + "advancements.quaedam.smart_instrument.description": "音乐盘?不需要的", + "advancements.quaedam.sound_projection.title": "不要偷偷摸摸", + "advancements.quaedam.sound_projection.description": "又没有幽(yóu)匿分贝仪、幽(yóu)匿尖叫体或大聪明,怕什么", + "advancements.quaedam.swarm_projection.title": "多来点,爱看", + "advancements.quaedam.swarm_projection.description": "", + "advancements.quaedam.kill_projected_person.title": "失败", + "advancements.quaedam.kill_projected_person.description": "投影人这么可爱,为什么要失败投影人\n\n你干嘛~~\n坏,太坏了,你不能这样。" } diff --git a/common/src/main/resources/data/quaedam/advancements/causality_anchor.json b/common/src/main/resources/data/quaedam/advancements/causality_anchor.json new file mode 100644 index 0000000..35242e2 --- /dev/null +++ b/common/src/main/resources/data/quaedam/advancements/causality_anchor.json @@ -0,0 +1,37 @@ +{ + "display": { + "icon": { + "item": "quaedam:causality_anchor" + }, + "title": { + "translate": "advancements.quaedam.causality_anchor.title" + }, + "description": { + "translate": "advancements.quaedam.causality_anchor.description" + }, + "frame": "goal" + }, + "parent": "quaedam:projector", + "criteria": { + "causality_anchor": { + "trigger": "minecraft:placed_block", + "conditions": { + "location": [ + { + "condition": "minecraft:block_state_property", + "block": "quaedam:causality_anchor", + "properties": {} + } + ] + } + } + }, + "requirements": [ + [ + "causality_anchor" + ] + ], + "rewards": { + "experience": 30 + } +} diff --git a/common/src/main/resources/data/quaedam/advancements/kill_projected_person.json b/common/src/main/resources/data/quaedam/advancements/kill_projected_person.json new file mode 100644 index 0000000..414dbeb --- /dev/null +++ b/common/src/main/resources/data/quaedam/advancements/kill_projected_person.json @@ -0,0 +1,37 @@ +{ + "display": { + "icon": { + "item": "quaedam:swarm_projection" + }, + "title": { + "translate": "advancements.quaedam.kill_projected_person.title" + }, + "description": { + "translate": "advancements.quaedam.kill_projected_person.description" + }, + "hidden": true + }, + "parent": "quaedam:swarm_projection", + "criteria": { + "kill_projected_person": { + "trigger": "minecraft:player_killed_entity", + "conditions": { + "entity": [ + { + "condition": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "type": "quaedam:projected_person" + } + } + ] + } + } + }, + "requirements": [ + [ + "kill_projected_person" + ] + ], + "rewards": {} +} diff --git a/common/src/main/resources/data/quaedam/advancements/projector.json b/common/src/main/resources/data/quaedam/advancements/projector.json new file mode 100644 index 0000000..b50dbb8 --- /dev/null +++ b/common/src/main/resources/data/quaedam/advancements/projector.json @@ -0,0 +1,37 @@ +{ + "display": { + "icon": { + "item": "quaedam:projector" + }, + "title": { + "translate": "advancements.quaedam.projector.title" + }, + "description": { + "translate": "advancements.quaedam.projector.description" + }, + "background": "minecraft:textures/gui/advancements/backgrounds/husbandry.png", + "frame": "task" + }, + "criteria": { + "projector": { + "trigger": "minecraft:placed_block", + "conditions": { + "location": [ + { + "condition": "minecraft:block_state_property", + "block": "quaedam:projector", + "properties": {} + } + ] + } + } + }, + "requirements": [ + [ + "projector" + ] + ], + "rewards": { + "experience": 15 + } +} diff --git a/common/src/main/resources/data/quaedam/advancements/reality_stabler.json b/common/src/main/resources/data/quaedam/advancements/reality_stabler.json new file mode 100644 index 0000000..acfe8bb --- /dev/null +++ b/common/src/main/resources/data/quaedam/advancements/reality_stabler.json @@ -0,0 +1,37 @@ +{ + "display": { + "icon": { + "item": "quaedam:reality_stabler" + }, + "title": { + "translate": "advancements.quaedam.reality_stabler.title" + }, + "description": { + "translate": "advancements.quaedam.reality_stabler.description" + }, + "frame": "goal" + }, + "parent": "quaedam:projector", + "criteria": { + "reality_stabler": { + "trigger": "minecraft:placed_block", + "conditions": { + "location": [ + { + "condition": "minecraft:block_state_property", + "block": "quaedam:reality_stabler", + "properties": {} + } + ] + } + } + }, + "requirements": [ + [ + "reality_stabler" + ] + ], + "rewards": { + "experience": 30 + } +} diff --git a/common/src/main/resources/data/quaedam/advancements/smart_instrument.json b/common/src/main/resources/data/quaedam/advancements/smart_instrument.json new file mode 100644 index 0000000..60e11b2 --- /dev/null +++ b/common/src/main/resources/data/quaedam/advancements/smart_instrument.json @@ -0,0 +1,36 @@ +{ + "display": { + "icon": { + "item": "quaedam:smart_instrument" + }, + "title": { + "translate": "advancements.quaedam.smart_instrument.title" + }, + "description": { + "translate": "advancements.quaedam.smart_instrument.description" + } + }, + "parent": "quaedam:projector", + "criteria": { + "smart_instrument": { + "trigger": "minecraft:placed_block", + "conditions": { + "location": [ + { + "condition": "minecraft:block_state_property", + "block": "quaedam:smart_instrument", + "properties": {} + } + ] + } + } + }, + "requirements": [ + [ + "smart_instrument" + ] + ], + "rewards": { + "experience": 15 + } +} diff --git a/common/src/main/resources/data/quaedam/advancements/sound_projection.json b/common/src/main/resources/data/quaedam/advancements/sound_projection.json new file mode 100644 index 0000000..b86d73c --- /dev/null +++ b/common/src/main/resources/data/quaedam/advancements/sound_projection.json @@ -0,0 +1,36 @@ +{ + "display": { + "icon": { + "item": "quaedam:sound_projection" + }, + "title": { + "translate": "advancements.quaedam.sound_projection.title" + }, + "description": { + "translate": "advancements.quaedam.sound_projection.description" + } + }, + "parent": "quaedam:swarm_projection", + "criteria": { + "sound_projection": { + "trigger": "minecraft:placed_block", + "conditions": { + "location": [ + { + "condition": "minecraft:block_state_property", + "block": "quaedam:sound_projection", + "properties": {} + } + ] + } + } + }, + "requirements": [ + [ + "sound_projection" + ] + ], + "rewards": { + "experience": 15 + } +} diff --git a/common/src/main/resources/data/quaedam/advancements/swarm_projection.json b/common/src/main/resources/data/quaedam/advancements/swarm_projection.json new file mode 100644 index 0000000..08d4c34 --- /dev/null +++ b/common/src/main/resources/data/quaedam/advancements/swarm_projection.json @@ -0,0 +1,37 @@ +{ + "display": { + "icon": { + "item": "quaedam:swarm_projection" + }, + "title": { + "translate": "advancements.quaedam.swarm_projection.title" + }, + "description": { + "translate": "advancements.quaedam.swarm_projection.description" + }, + "frame": "goal" + }, + "parent": "quaedam:projector", + "criteria": { + "swarm_projection": { + "trigger": "minecraft:placed_block", + "conditions": { + "location": [ + { + "condition": "minecraft:block_state_property", + "block": "quaedam:swarm_projection", + "properties": {} + } + ] + } + } + }, + "requirements": [ + [ + "swarm_projection" + ] + ], + "rewards": { + "experience": 30 + } +}