Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #5379 #5437

Merged
merged 8 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions kubejs/assets/enigmatica/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@
"desc.immersiveengineering.info.mineral.horodric_digsite": "Horodric Digsite",
"desc.immersiveengineering.info.mineral.naqada": "Naqada",

"desc.enigmatica.ie_multiblock_error": "Invalid structure or missing gamestage. Double check the structure and/or obtain the appropriate Machinery Schematic to be able to form this multiblock.",
"desc.enigmatica.amadron.atum_mineral": "Atum Mineral Survey",
"desc.enigmatica.amadron.atum_mineral.lore": "A collection of minerals from Atum.",
"desc.enigmatica.amadron.undergarden_mineral": "Undergarden Mineral Survey",
"desc.enigmatica.amadron.undergarden_mineral.lore": "A collection of minerals from the Undergarden.",
"desc.enigmatica.amadron.nether_botanical": "Nether Botanical Survey",
"desc.enigmatica.amadron.nether_botanical.lore": "A collection of botanical samples from the Nether.",
"desc.enigmatica.amadron.end_botanical": "End Botanical Survey",
"desc.enigmatica.amadron.end_botanical.lore": "A collection of botanical samples from the End.",
"desc.enigmatica.amadron.end_mineral": "End Mineral Survey",
"desc.enigmatica.amadron.end_mineral.lore": "A collection of minerals from the End.",
"desc.enigmatica.": "",

"ars_nouveau.school.blood": "Blood",

"advancements.enigmatica.husbandry.tame_all_animals.title": "Zoology",
Expand Down
12 changes: 12 additions & 0 deletions kubejs/assets/enigmatica/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@
"desc.immersiveengineering.info.mineral.horodric_digsite": "沙民遗迹",
"desc.immersiveengineering.info.mineral.naqada": "奈布矿脉",
"ars_nouveau.school.blood": "血",
"desc.enigmatica.ie_multiblock_error": "结构无效或者缺少对应游戏阶段。请检查结构是否正确,所需的机械蓝图是否已经获得。",
"desc.enigmatica.amadron.atum_mineral": "阿图姆矿物勘测",
"desc.enigmatica.amadron.atum_mineral.lore": "一批来自阿图姆的矿物。",
"desc.enigmatica.amadron.undergarden_mineral": "深园矿物勘测",
"desc.enigmatica.amadron.undergarden_mineral.lore": "一批来自深园的矿物。",
"desc.enigmatica.amadron.nether_botanical": "下界植物勘测",
"desc.enigmatica.amadron.nether_botanical.lore": "一批来自下界的植物样本。",
"desc.enigmatica.amadron.end_botanical": "末地植物勘测",
"desc.enigmatica.amadron.end_botanical.lore": "一批来自末地的植物样本。",
"desc.enigmatica.amadron.end_mineral": "末地矿物勘测",
"desc.enigmatica.amadron.end_mineral.lore": "一批来自末地的矿物。",
"desc.enigmatica.": "",
"advancements.enigmatica.husbandry.tame_all_animals.title": "动物大师",
"advancements.enigmatica.husbandry.tame_all_animals.description": "驯服所有可驯服的动物!",
"block.naturesaura.infused_iron_block": "灌注耀阳金属块",
Expand Down
3 changes: 3 additions & 0 deletions kubejs/assets/kubejs/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"item.kubejs.scavengers_delight": "Scavenger's Delight",
"item.kubejs.alchemists_delight": "Alchemist's Delight",

"item.kubejs.fisher_foliot": "Fisher Foliot",
"item.kubejs.miner_marid_irradiated": "Irradiated Ore Miner Marid",
"item.kubejs.meat_ingot": "Meat Ingot",
"item.kubejs.altered_recipe_indicator": "Altered Recipe",
"item.kubejs.disabled_recipe_indicator": "Disabled Recipe",
"item.kubejs.observatory_lens": "Observatory Lens",
Expand Down
3 changes: 3 additions & 0 deletions kubejs/assets/kubejs/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"item.kubejs.blacksmiths_delight": "铁匠快乐包",
"item.kubejs.scavengers_delight": "拾荒者快乐包",
"item.kubejs.alchemists_delight": "炼金术师快乐包",
"item.kubejs.fisher_foliot": "渔夫魔精",
"item.kubejs.miner_marid_irradiated": "辐照掘矿者魔王",
"item.kubejs.meat_ingot": "肉锭",
"item.kubejs.altered_recipe_indicator": "已改变的配方",
"item.kubejs.disabled_recipe_indicator": "已禁用的配方",
"item.kubejs.observatory_lens": "观星透镜",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ onEvent('recipes', (event) => {
type: 'ITEM',
id: 'pneumaticcraft:reinforced_chest',
amount: 1,
nbt: `{display:{Name:'[{"text":"Atum Mineral Survey"}]',Lore:['[{"text":"A collection of minerals from Atum.","color":"gold"}]']},BlockEntityTag:{LootTable:"enigmatica:chests/amadron_mineral_survey_atum_combo"}}`
nbt: JSON.stringify({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change 👌

display: {
Name: '[{ "translate": "desc.enigmatica.amadron.atum_mineral" }]',
Lore: ['[{ "translate": "desc.enigmatica.amadron.atum_mineral.lore", "color": "gold" }]']
},
BlockEntityTag: { LootTable: 'enigmatica:chests/amadron_mineral_survey_atum_combo' }
})
},
level: 0,
maxStock: 5,
Expand All @@ -24,7 +30,13 @@ onEvent('recipes', (event) => {
type: 'ITEM',
id: 'pneumaticcraft:reinforced_chest',
amount: 1,
nbt: `{display:{Name:'[{"text":"Undergarden Mineral Survey"}]',Lore:['[{"text":"A collection of minerals from the Undergarden.","color":"gold"}]']},BlockEntityTag:{LootTable:"enigmatica:chests/amadron_mineral_survey_undergarden_combo"}}`
nbt: JSON.stringify({
display: {
Name: '[{ "translate": "desc.enigmatica.amadron.undergarden_mineral" }]',
Lore: ['[{ "translate": "desc.enigmatica.amadron.undergarden_mineral.lore", "color": "gold" }]']
},
BlockEntityTag: { LootTable: 'enigmatica:chests/amadron_mineral_survey_undergarden_combo' }
})
},
level: 0,
maxStock: 5,
Expand All @@ -38,7 +50,13 @@ onEvent('recipes', (event) => {
type: 'ITEM',
id: 'pneumaticcraft:reinforced_chest',
amount: 1,
nbt: `{display:{Name:'[{"text":"Nether Botanical Survey"}]',Lore:['[{"text":"A collection of botanical samples from the Nether.","color":"gold"}]']},BlockEntityTag:{LootTable:"enigmatica:chests/amadron_botanical_survey_nether_combo"}}`
nbt: JSON.stringify({
display: {
Name: '[{ "translate": "desc.enigmatica.amadron.nether_botanical" }]',
Lore: ['[{ "translate": "desc.enigmatica.amadron.nether_botanical.lore", "color": "gold" }]']
},
BlockEntityTag: { LootTable: 'enigmatica:chests/amadron_botanical_survey_nether_combo' }
})
},
level: 0,
maxStock: 5,
Expand All @@ -52,7 +70,13 @@ onEvent('recipes', (event) => {
type: 'ITEM',
id: 'pneumaticcraft:reinforced_chest',
amount: 1,
nbt: `{display:{Name:'[{"text":"End Botanical Survey"}]',Lore:['[{"text":"A collection of botanical samples from the End.","color":"gold"}]']},BlockEntityTag:{LootTable:"enigmatica:chests/amadron_botanical_survey_end_combo"}}`
nbt: JSON.stringify({
display: {
Name: '[{ "translate": "desc.enigmatica.amadron.end_botanical" }]',
Lore: ['[{ "translate": "desc.enigmatica.amadron.end_botanical.lore", "color": "gold" }]']
},
BlockEntityTag: { LootTable: 'enigmatica:chests/amadron_botanical_survey_end_combo' }
})
},
level: 0,
maxStock: 5,
Expand All @@ -66,7 +90,13 @@ onEvent('recipes', (event) => {
type: 'ITEM',
id: 'pneumaticcraft:reinforced_chest',
amount: 1,
nbt: `{display:{Name:'[{"text":"The End Mineral Survey"}]',Lore:['[{"text":"A collection of minerals from the The End.","color":"gold"}]']},BlockEntityTag:{LootTable:"enigmatica:chests/amadron_mineral_survey_the_end_combo"}}`
nbt: JSON.stringify({
display: {
Name: '[{ "translate": "desc.enigmatica.amadron.end_mineral" }]',
Lore: ['[{ "translate": "desc.enigmatica.amadron.end_mineral.lore", "color": "gold" }]']
},
BlockEntityTag: { LootTable: 'enigmatica:chests/amadron_mineral_survey_the_end_combo' }
})
},
level: 0,
maxStock: 5,
Expand Down
9 changes: 3 additions & 6 deletions kubejs/startup_scripts/item_registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,15 +502,13 @@ onEvent('item.registry', (event) => {
.group('KubeJS')
.texture('kubejs:item/magic_lamp')
.maxStackSize(1)
.maxDamage(500)
.displayName('Fisher Foliot');
.maxDamage(500);
event
.create('miner_marid_irradiated')
.group('KubeJS')
.texture('kubejs:item/magic_lamp')
.maxStackSize(1)
.maxDamage(50)
.displayName('Irradiated Ore Miner Marid');
.maxDamage(50);

// Custom Foods
event
Expand All @@ -519,6 +517,5 @@ onEvent('item.registry', (event) => {
.texture('kubejs:item/meat_ingot')
.food((food) => {
food.hunger(8).saturation(0.5).effect('upgrade_aquatic:vibing', 2400, 1, 1.0);
})
.displayName('Meat Ingot');
});
});
2 changes: 1 addition & 1 deletion kubejs/startup_scripts/multiblock_gamestages.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ onEvent('ie.multiblock.form', (event) => {
if (!event.getEntity().stages.has(requiredGameStage.get(name))) {
event.cancel();
if (!event.getEntity().getServer()) {
let error_message = `Invalid structure or missing gamestage. Double check the structure and/or obtain the appropriate Machinery Schematic to be able to form this multiblock.`;
let error_message = Text.translate('desc.enigmatica.ie_multiblock_error');
event.getEntity().tell(error_message);
}
}
Expand Down
Loading