Skip to content

Commit 12a0215

Browse files
[change] Level extension of Infinite is set to 0 according to its effect.
[datagen][spotless] 2.1.3
1 parent 7a2b433 commit 12a0215

File tree

9 files changed

+37
-45
lines changed

9 files changed

+37
-45
lines changed

CHANGELOG.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
### Create: Enchantment Industry 2.1.2
2-
3-
Require Create: Dragons Plus 1.5.0
1+
### Create: Enchantment Industry 2.1.3
42

53
#### Update
6-
* Now you can throw item to Mechanical Grindstone to process it
7-
* Improve English grammar. clarity, and consistency (by @Zain)
8-
* More goggle tooltips has been added to Blaze Forger & Blaze Enchanter to indicate why it's not working
9-
* Added a few more explanation on ponder
4+
* Update Russian Translation by @Korben
5+
* Update Japanese Translation by @YukkuriOfuton
106

117
#### Change
12-
* Removed dye buckets and fluid hatch from C:EI creative tab since they already exist in C:DP own creative tab
13-
14-
#### Fix
15-
* Fixed Blaze Enchanter accept Super Enchanter Template no matter it's in Super Enchanting mode or not
8+
* Level extension of `Infinite` is set to 0 according to its effect.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mod_id = create_enchantment_industry
1717
mod_artifact_id = create-enchantment-industry
1818
mod_name = Create: Enchantment Industry
1919
mod_license = LGPL-3.0-or-later
20-
mod_version = 2.1.2
20+
mod_version = 2.1.3
2121
mod_group_id = plus.dragons.createenchantmentindustry
2222
mod_authors = DragonsPlus
2323
mod_description = Automatic Enchanting with Create.

src/generated/resources/assets/create_enchantment_industry/lang/ja_jp.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"_comment.unlocalized": "Remove this line after finishing localization.",
32
"advancement.create_enchantment_industry.a_shower_experience": "シャワーを \"経験\"",
43
"advancement.create_enchantment_industry.a_shower_experience.desc": "液体パイプをから流れ出した経験値を浴びる\n§7(隠し進捗)",
54
"advancement.create_enchantment_industry.assembly_aesthetics": "組み立ての美学",
@@ -74,17 +73,17 @@
7473
"create_enchantment_industry.gui.experience_hatch.all": "全て",
7574
"create_enchantment_industry.gui.experience_hatch.exchange": "経験値交換量の設定",
7675
"create_enchantment_industry.gui.experience_hatch.points": "経験値ポイント",
77-
"create_enchantment_industry.gui.goggles.enchanting.completed": "Enchanting Completed!",
76+
"create_enchantment_industry.gui.goggles.enchanting.completed": "エンチャント完了!",
7877
"create_enchantment_industry.gui.goggles.enchanting.cost": "消費する液体経験値: %1$s",
79-
"create_enchantment_industry.gui.goggles.enchanting.invalid_item": "Invalid enchanting item!",
78+
"create_enchantment_industry.gui.goggles.enchanting.invalid_item": "無効なエンチャントアイテムです!",
8079
"create_enchantment_industry.gui.goggles.enchanting.level": "エンチャントレベル: %1$s",
81-
"create_enchantment_industry.gui.goggles.enchanting.level.not_set": "Enchanting level not set!",
80+
"create_enchantment_industry.gui.goggles.enchanting.level.not_set": "エンチャントレベルが設定されていません!",
8281
"create_enchantment_industry.gui.goggles.enchanting.template": "テンプレートにエンチャント中:",
83-
"create_enchantment_industry.gui.goggles.forging.completed": "Forging Completed!",
82+
"create_enchantment_industry.gui.goggles.forging.completed": "鍛造完了!",
8483
"create_enchantment_industry.gui.goggles.forging.cost": "消費する液体経験値: %1$s",
85-
"create_enchantment_industry.gui.goggles.forging.invalid_items": "Invalid forging item combination!",
86-
"create_enchantment_industry.gui.goggles.forging.invalid_template_type.normal": "Normal Enchanting Template can't be used in Super Enchanting mode!",
87-
"create_enchantment_industry.gui.goggles.forging.invalid_template_type.special": "Super Enchanting Template requires Super Enchanting mode to use!",
84+
"create_enchantment_industry.gui.goggles.forging.invalid_items": "無効な鍛造アイテムの組み合わせです!",
85+
"create_enchantment_industry.gui.goggles.forging.invalid_template_type.normal": "通常のエンチャントテンプレートは、スーパーエンチャントモードでは使用できません。",
86+
"create_enchantment_industry.gui.goggles.forging.invalid_template_type.special": "スーパーエンチャントテンプレートを使用するには、スーパーエンチャントモードに移行する必要があります。",
8887
"create_enchantment_industry.gui.goggles.forging.result": "鍛造の成果物:",
8988
"create_enchantment_industry.gui.goggles.printing": "印刷:",
9089
"create_enchantment_industry.gui.goggles.printing.address": "アドレスの印刷:",
@@ -95,8 +94,8 @@
9594
"create_enchantment_industry.gui.goggles.printing.pattern": "小包の見た目変更",
9695
"create_enchantment_industry.gui.goggles.printing.template": "テンプレートを使用した印刷:",
9796
"create_enchantment_industry.gui.printer.copy.invalid": "このアイテムにはコピーできるものはありません。",
98-
"create_enchantment_industry.gui.printer.enchanted_book.all_denied": "This book has no copiable enchantments.",
99-
"create_enchantment_industry.gui.printer.enchanted_book.denied": "This book contains an uncopiable enchantment.",
97+
"create_enchantment_industry.gui.printer.enchanted_book.all_denied": "この本にはコピー可能なエンチャントがありません。",
98+
"create_enchantment_industry.gui.printer.enchanted_book.denied": "この本にはコピーできないエンチャントが含まれています。",
10099
"create_enchantment_industry.gui.printer.enchanted_book.invalid": "この本にはコピーできるエンチャントはありません。",
101100
"create_enchantment_industry.gui.printer.written_book.invalid": "この本にはコピーできる内容はありません。",
102101
"create_enchantment_industry.ponder.blaze_enchanter.automate.header": "メカニカルアームによる自動化",
@@ -119,7 +118,7 @@
119118
"create_enchantment_industry.ponder.blaze_enchanter.super_enchant.header": "ブレイズエンチャンターによるスーパーエンチャント",
120119
"create_enchantment_industry.ponder.blaze_enchanter.super_enchant.text_1": "ブレイズエンチャンターには、 \"液体スロット\"が二つあります。エンチャントケーキをあげましょう。",
121120
"create_enchantment_industry.ponder.blaze_enchanter.super_enchant.text_2": "…すると、更に高温で燃え始めます。この状態はスーパーエンチャントモードと呼ばれます",
122-
"create_enchantment_industry.ponder.blaze_enchanter.super_enchant.text_3": "The second tank of Blaze Enchanter can not be piped in for Liquid Experience. An eligible Super Experience item, such as Cake o' Enchanting, must be used",
121+
"create_enchantment_industry.ponder.blaze_enchanter.super_enchant.text_3": "ブレイズエンチャンターの2つ目のタンクは、液体経験値を供給するためのパイプで注入できません。エンチャントケーキなどの、スーパー経験値アイテムを使用する必要があります。",
123122
"create_enchantment_industry.ponder.blaze_enchanter.super_enchant.text_4": "スーパーエンチャントモード中は、エンチャントレベルの上限が大幅に増加します。さらに、エンチャンターはトレジャーエンチャントを生成できるようになりました。",
124123
"create_enchantment_industry.ponder.blaze_enchanter.super_enchant.text_5": "スーパーエンチャントモードのブレイズエンチャンターは、スーパーエンチャントテンプレート使用し、エンチャントを付与します。",
125124
"create_enchantment_industry.ponder.blaze_enchanter.super_enchant.text_6": "近くに避雷針を設置しましょう",
@@ -141,7 +140,7 @@
141140
"create_enchantment_industry.ponder.blaze_forger.super_enchant.header": "ブレイズフォージャーによるスーパーエンチャント",
142141
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_1": "ブレイズフォージャーには、 \"液体スロット\"が二つあります。エンチャントケーキをあげましょう...",
143142
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_2": "…すると、更に高温で燃え始め、スーパーエンチャントモードに移行します。",
144-
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_3": "The second tank of Blaze Forger can not be piped in for Liquid Experience. An eligible Super Experience item, such as Cake o' Enchanting, must be used",
143+
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_3": "ブレイズフォージャーの2つ目のタンクは、液体経験値を供給するためのパイプで注入できません。エンチャントケーキなどの、スーパー経験値アイテムを使用する必要があります。",
145144
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_4": "スーパーエンチャントモード中のブレイズフォージャーは、エンチャントを合成する際にバニラのエンチャントレベル上限を超えることができます。また、競合するエンチャントを合成することもできます。",
146145
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_5": "スーパーエンチャントモードのブレイズフォージャーは、スーパーエンチャントテンプレートのみを使用してエンチャントを付与します。",
147146
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_6": "近くに避雷針を設置しましょう",

src/generated/resources/assets/create_enchantment_industry/lang/ru_ru.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"_comment.unlocalized": "Remove this line after finishing localization.",
32
"advancement.create_enchantment_industry.a_shower_experience": "Нахлынувшие воспоминания",
43
"advancement.create_enchantment_industry.a_shower_experience.desc": "Сломайте жидкостную трубу и верните себе пролившийся опыт\n§7(Скрытое достижение)",
54
"advancement.create_enchantment_industry.assembly_aesthetics": "Эстетика сборки",
@@ -74,17 +73,17 @@
7473
"create_enchantment_industry.gui.experience_hatch.all": "Всё",
7574
"create_enchantment_industry.gui.experience_hatch.exchange": "Обмен опытом",
7675
"create_enchantment_industry.gui.experience_hatch.points": "Очки",
77-
"create_enchantment_industry.gui.goggles.enchanting.completed": "Enchanting Completed!",
76+
"create_enchantment_industry.gui.goggles.enchanting.completed": "Зачаровывание завершено!",
7877
"create_enchantment_industry.gui.goggles.enchanting.cost": "Зачаровывание потребляет: %1$s",
79-
"create_enchantment_industry.gui.goggles.enchanting.invalid_item": "Invalid enchanting item!",
78+
"create_enchantment_industry.gui.goggles.enchanting.invalid_item": "Недопустимый зачаровывающий предмет!",
8079
"create_enchantment_industry.gui.goggles.enchanting.level": "Зачаровывание на уровне: %1$s",
81-
"create_enchantment_industry.gui.goggles.enchanting.level.not_set": "Enchanting level not set!",
80+
"create_enchantment_industry.gui.goggles.enchanting.level.not_set": "Уровень зачаровывания не установлен!",
8281
"create_enchantment_industry.gui.goggles.enchanting.template": "Зачаровывание с шаблоном:",
8382
"create_enchantment_industry.gui.goggles.forging.completed": "Forging Completed!",
8483
"create_enchantment_industry.gui.goggles.forging.cost": "Ковка потребляет: %1$s",
85-
"create_enchantment_industry.gui.goggles.forging.invalid_items": "Invalid forging item combination!",
86-
"create_enchantment_industry.gui.goggles.forging.invalid_template_type.normal": "Normal Enchanting Template can't be used in Super Enchanting mode!",
87-
"create_enchantment_industry.gui.goggles.forging.invalid_template_type.special": "Super Enchanting Template requires Super Enchanting mode to use!",
84+
"create_enchantment_industry.gui.goggles.forging.invalid_items": "Недопустимая комбинация предметов ковки!",
85+
"create_enchantment_industry.gui.goggles.forging.invalid_template_type.normal": "Обычный шаблон зачарования не может быть использован в режиме супер-зачаровывания!",
86+
"create_enchantment_industry.gui.goggles.forging.invalid_template_type.special": "Для использования шаблона супер-зачарования требуется режим супер-зачаровывания!",
8887
"create_enchantment_industry.gui.goggles.forging.result": "Результат ковки:",
8988
"create_enchantment_industry.gui.goggles.printing": "Печать:",
9089
"create_enchantment_industry.gui.goggles.printing.address": "Адрес печати:",
@@ -95,9 +94,9 @@
9594
"create_enchantment_industry.gui.goggles.printing.pattern": "Изменение рисунка коробки",
9695
"create_enchantment_industry.gui.goggles.printing.template": "Печать по шаблону:",
9796
"create_enchantment_industry.gui.printer.copy.invalid": "Содержимое этого предмета не подлежит копированию.",
98-
"create_enchantment_industry.gui.printer.enchanted_book.all_denied": "This book has no copiable enchantments.",
99-
"create_enchantment_industry.gui.printer.enchanted_book.denied": "This book contains an uncopiable enchantment.",
100-
"create_enchantment_industry.gui.printer.enchanted_book.invalid": "Никаких чар для копирования из этой книги.",
97+
"create_enchantment_industry.gui.printer.enchanted_book.all_denied": "В этой книге нет копируемых чар.",
98+
"create_enchantment_industry.gui.printer.enchanted_book.denied": "Эта книга содержит некопируемые чары.",
99+
"create_enchantment_industry.gui.printer.enchanted_book.invalid": "Нет чар для копирования из этой книги.",
101100
"create_enchantment_industry.gui.printer.written_book.invalid": "Нет содержимого для копирования из этой книги.",
102101
"create_enchantment_industry.ponder.blaze_enchanter.automate.header": "Автоматизацией механической рукой",
103102
"create_enchantment_industry.ponder.blaze_enchanter.automate.text_1": "Всполоха-чародея можно автоматизировать с помощью механической руки",
@@ -141,7 +140,7 @@
141140
"create_enchantment_industry.ponder.blaze_forger.super_enchant.header": "Супер-зачаровыванием с всполохом-кузнецом",
142141
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_1": "У всполоха-кузнеца два 'желудка'. Накормите его тортом опыта...",
143142
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_2": "...и он начнёт бурлить, войдя в режим супер-зачаровывания",
144-
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_3": "The second tank of Blaze Forger can not be piped in for Liquid Experience. An eligible Super Experience item, such as Cake o' Enchanting, must be used",
143+
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_3": "Второй бак всполоха-кузнеца нельзя использовать для получения жидкого опыта. Необходимо использовать подходящий предмет для получения супер-опыта, например, торт-опыта.",
145144
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_4": "В режиме супер-зачаровывания всполох-кузнец может превысить ванильный предел по уровню чар при их объединении. Конфликтующие чары также могут быть объединены",
146145
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_5": "Всполох-кузнец в режиме супер-зачаровывания принимает только шаблоны супер-зачарования",
147146
"create_enchantment_industry.ponder.blaze_forger.super_enchant.text_6": "Обязательно установите рядом громоотвод",
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"values": {
3+
"minecraft:infinity": 0,
34
"minecraft:mending": 0
45
}
56
}

src/main/java/plus/dragons/createenchantmentindustry/common/processing/enchanter/EnchanterBehaviour.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ public boolean addToGoggleTooltip(List<Component> tooltip, boolean isPlayerSneak
205205
.forGoggles(tooltip);
206206
added = true;
207207
}
208-
if (!enchanter.heldItem.isEmpty() && enchanter.processingTime == -1){
209-
if(!EnchantmentHelper.getEnchantmentsForCrafting(enchanter.heldItem).isEmpty())
208+
if (!enchanter.heldItem.isEmpty() && enchanter.processingTime == -1) {
209+
if (!EnchantmentHelper.getEnchantmentsForCrafting(enchanter.heldItem).isEmpty())
210210
CEILang.translate("gui.goggles.enchanting.completed").style(ChatFormatting.GREEN).forGoggles(tooltip);
211211
else CEILang.translate("gui.goggles.enchanting.invalid_item").style(ChatFormatting.RED).forGoggles(tooltip);
212212
}

src/main/java/plus/dragons/createenchantmentindustry/common/processing/forger/BlazeForgerBlockEntity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,11 @@ public boolean addToGoggleTooltip(List<Component> tooltip, boolean isPlayerSneak
252252
TooltipFlag.NORMAL);
253253
}
254254
} else {
255-
if(inventory.forgingCompleted())
255+
if (inventory.forgingCompleted())
256256
CEILang.translate("gui.goggles.forging.completed").style(ChatFormatting.GREEN).forGoggles(tooltip);
257-
else if(!inventory.notEnoughItemToForge()){
258-
if(inventory.incompatibleEnchantingTemplateType())
259-
CEILang.translate("gui.goggles.forging.invalid_template_type." + (special ? "normal": "special")).style(ChatFormatting.RED).forGoggles(tooltip);
257+
else if (!inventory.notEnoughItemToForge()) {
258+
if (inventory.incompatibleEnchantingTemplateType())
259+
CEILang.translate("gui.goggles.forging.invalid_template_type." + (special ? "normal" : "special")).style(ChatFormatting.RED).forGoggles(tooltip);
260260
else CEILang.translate("gui.goggles.forging.invalid_items").style(ChatFormatting.RED).forGoggles(tooltip);
261261
}
262262
}

src/main/java/plus/dragons/createenchantmentindustry/common/registry/CEICreativeModeTabs.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import static com.simibubi.create.AllBlocks.EXPERIENCE_BLOCK;
2222
import static com.simibubi.create.AllItems.EXP_NUGGET;
23-
import static plus.dragons.createdragonsplus.common.registry.CDPBlocks.FLUID_HATCH;
2423
import static plus.dragons.createdragonsplus.common.registry.CDPItems.BLAZE_UPGRADE_SMITHING_TEMPLATE;
2524
import static plus.dragons.createenchantmentindustry.common.registry.CEIBlocks.*;
2625
import static plus.dragons.createenchantmentindustry.common.registry.CEIItems.*;
@@ -33,8 +32,6 @@
3332
import net.minecraft.world.item.CreativeModeTab.TabVisibility;
3433
import net.neoforged.bus.api.IEventBus;
3534
import net.neoforged.neoforge.registries.DeferredRegister;
36-
import plus.dragons.createdragonsplus.common.fluids.dye.DyeColors;
37-
import plus.dragons.createdragonsplus.common.registry.CDPFluids;
3835
import plus.dragons.createenchantmentindustry.common.CEICommon;
3936
import plus.dragons.createenchantmentindustry.util.CEILang;
4037

src/main/java/plus/dragons/createenchantmentindustry/common/registry/CEIDataMaps.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
package plus.dragons.createenchantmentindustry.common.registry;
2020

21+
import static net.minecraft.world.item.enchantment.Enchantments.INFINITY;
2122
import static net.minecraft.world.item.enchantment.Enchantments.MENDING;
2223
import static plus.dragons.createenchantmentindustry.common.CEICommon.REGISTRATE;
2324

@@ -198,6 +199,8 @@ public static void generate(RegistrateDataMapProvider provider) {
198199
provider.builder(FORGING_COST_MULTIPLIER);
199200
provider.builder(SPLITTING_COST_MULTIPLIER);
200201
provider.builder(SUPER_ENCHANTING_LEVEL_EXTENSION)
201-
.add(MENDING, 0, false);
202+
.add(MENDING, 0, false)
203+
.add(INFINITY, 0, false);
204+
;
202205
}
203206
}

0 commit comments

Comments
 (0)