Skip to content

Commit 820f5e1

Browse files
authored
Merge pull request #418 from nageih/Astral-Experimental
Update Contributing guide and translation keys
2 parents dbf3d30 + c3973b0 commit 820f5e1

File tree

4 files changed

+40
-9
lines changed

4 files changed

+40
-9
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ Does not include mods, or most configs, only pack specific files which are used
1212

1313
## Contributing
1414

15+
For developers: If you just want to edit the text, do it in this [file](resources\createastral\lang\en_us.json) (Ponders are in this [file](kubejs\assets\ponderjs_generated\lang\en_us.json)), editing the text in other files will NOT work! If you want to add items, blocks, fluids, tooltips and everything else that contains text, please use the translation key and the [lang file](resources\createastral\lang\en_us.json).
16+
17+
Here's an [example](https://github.com/Laskyyy/Create-Astral/pull/389) of changing the added tooltip and some other text to a translation key. For adding a new item/block/fluid, the naming of the key in the language file needs to follow these rules.
18+
19+
To name keys in the [lang file](resources\createastral\lang\en_us.json) correctly, you need use the **prefix** (`item/block/fluid`) + the **namespace** of mod (such as `kubejs`,`create_astral`) + the **id** of item/block/fluid. For vaules, it's the **displayed name** instead of translation keys. There is a example.
20+
21+
```json
22+
{
23+
"item.createastral.crushed_raw_desh": "Crushed Raw Desh",
24+
"block.kubejs.fragile_sheet_block": "Fragile Sheet Block",
25+
"fluid.kubejs.molten_calorite": "Calorite",
26+
}
27+
```
28+
29+
For other texts in javascript, you should use [Text Components](https://wiki.latvian.dev/books/kubejs-legacy/page/components-kubejs-and-you). There is a [example](kubejs/startup_scripts/item_tooltip.js#L402C2-L407C7).
30+
31+
---
32+
1533
This repository uses [packwiz](https://github.com/packwiz/packwiz), which allows a lightweight repository such as this to be built into a full modpack by downloading mods from Modrinth or CurseForge.
1634

1735
The following instructions are a simplified version of the [packwiz installer tutorial](https://packwiz.infra.link/tutorials/installing/packwiz-installer/), so if you run into any issues, you should check there.

kubejs/assets/ponderjs_generated/lang/en_us.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,24 @@
1717
"kubejs.ponder.melter.text_4": "Finally, faucets are placed on the sides, which can be used to pour the liquid into a casting basin or table",
1818
"kubejs.ponder.melter.text_5": "Create fluid pipes can be used to transfer the liquid to something like a Spout",
1919
"kubejs.ponder.set_replace_modify_tutorial.header": "Ultrapure Carbon",
20-
"kubejs.ponder.set_replace_modify_tutorial.text_1": "Polished Andesite",
21-
"kubejs.ponder.set_replace_modify_tutorial.text_2": "Lava in the middle",
22-
"kubejs.ponder.set_replace_modify_tutorial.text_3": "This is the Stone Growth Chamber",
23-
"kubejs.ponder.set_replace_modify_tutorial.text_4": "Use an Andesite Funnel on the front or a Hopper on the bottom to output Andesite",
24-
"kubejs.ponder.set_replace_modify_tutorial.text_5": "When built using different Polished Stone, the Stone Growth Chamber will generate different types of cobblestone",
25-
"kubejs.ponder.set_replace_modify_tutorial.text_6": "This currently works with Andesite, and any default stone from each planet, like Moon Stone and Mars Stone.",
20+
"kubejs.ponder.set_replace_modify_tutorial.text_1": "This is the Desizer",
21+
"kubejs.ponder.set_replace_modify_tutorial.text_2": "The casings don\u0027t have to be accurate. This also works",
22+
"kubejs.ponder.set_replace_modify_tutorial.text_3": "The Desizer will shrink a 3x3x3 cube of blocks down into a single item",
23+
"kubejs.ponder.set_replace_modify_tutorial.text_4": "It\u0027s powered by Redstone. Place a button on the back of the Desizer Controller",
24+
"kubejs.ponder.set_replace_modify_tutorial.text_5": "If it doesn\u0027t detect a valid recipe, it will just break the blocks",
2625
"kubejs.ponder.shimmer_refinery.header": "How to create a Shimmer Refinery",
2726
"kubejs.ponder.shimmering_stone.header": "How to create the Moon Portal",
2827
"kubejs.ponder.shimmering_stone.text_1": "In this pack, the nether is disabled. Instead, items are spread throughout the different planets.",
29-
"kubejs.ponder.shimmering_stone.text_2": "There is a new portal added, which takes you to the moon!"
28+
"kubejs.ponder.shimmering_stone.text_2": "There is a new portal added, which takes you to the moon!",
29+
"kubejs.ponder.stone_growth_chamber.header": "Stone Growth Chamber",
30+
"kubejs.ponder.stone_growth_chamber.text_1": "Stone Growth Chamber",
31+
"kubejs.ponder.stone_growth_chamber.text_10": "Similarly, valid glass blocks can be found by searching \u0027$createastral:stone_growth_chamber/glass_blocks\u0027",
32+
"kubejs.ponder.stone_growth_chamber.text_2": "Polished Andesite",
33+
"kubejs.ponder.stone_growth_chamber.text_3": "Glass",
34+
"kubejs.ponder.stone_growth_chamber.text_4": "Lava in the middle",
35+
"kubejs.ponder.stone_growth_chamber.text_5": "This is a completed Stone Growth Chamber",
36+
"kubejs.ponder.stone_growth_chamber.text_6": "Use an Andesite Funnel on the front or a Hopper on the bottom to output Andesite",
37+
"kubejs.ponder.stone_growth_chamber.text_7": "When built using different Stones, the Stone Growth Chamber will generate different types of cobblestone",
38+
"kubejs.ponder.stone_growth_chamber.text_8": "This currently works with Stone, Andesite and any default stone from each planet, like Moon Stone and Mars Stone",
39+
"kubejs.ponder.stone_growth_chamber.text_9": "A list of valid stone blocks can be found by searching \u0027$createastral:stone_growth_chamber/building_blocks\u0027 in REI"
3040
}

kubejs/startup_scripts/item_tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ onEvent("item.tooltip", (e) => {
311311
},
312312
{
313313
item: "astralfoods:dipped_potato",
314-
tooltip: "Beloved food of the piglins! Suggested by TheRobbie72",
314+
tooltip: "tooltip.astralfoods.dipped_potato",
315315
},
316316
{
317317
item: "createbigcannons:steel_screw_breech",

resources/createastral/lang/en_us.json

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

145145
"tooltip.astralfoods.shimmered_rabbit_stew": "Suggested by NikWas!",
146146
"tooltip.astralfoods.astral_sauce": "The bowl comes from the recipe :blehh:",
147+
"tooltip.astralfoods.dipped_potato": "Beloved food of the piglins! Suggested by TheRobbie72",
147148

148149
"tooltip.createbigcannons.steel_screw_breech": "Wrenchable",
149150
"tooltip.createbigcannons.incomplete_steel_screw_breech": "Wrenchable",
@@ -341,7 +342,8 @@
341342
"item.astralfoods.shimmered_apple": "Shimmered Apple",
342343
"item.astralfoods.compressed_onion": "Compressed Onion",
343344
"item.astralfoods.food_amalgamation": "Food Amalgamation",
344-
"item.astralfoods:bulbas_tea":"Bulba's Tea",
345+
"item.astralfoods.bulbas_tea": "Bulba's Tea",
346+
"item.astralfoods.astralfoods.dipped_potato": "Dipped Potato",
345347

346348
"block.kubejs.fragile_sheet_block": "Fragile Sheet Block",
347349
"block.kubejs.broken_fragile_sheet_block": "Broken Fragile Sheet Block",
@@ -389,6 +391,7 @@
389391
"block.createastral.synthetic_slime_block": "Synthetic Slime Block",
390392
"block.createastral.swift_andesite": "Swift Andesite",
391393
"block.createastral.rocket_casing": "Rocket Casing",
394+
"block.createastral.moonset_stone": "Moonset Stone",
392395

393396
"block.doodads.asphalt_slab": "Asphalt Slab",
394397
"block.doodads.asphalt_stair": "Asphalt Stair",

0 commit comments

Comments
 (0)