Skip to content

Commit 21c0d65

Browse files
committed
Add dialog generator
1 parent 8fdb387 commit 21c0d65

File tree

6 files changed

+100
-90
lines changed

6 files changed

+100
-90
lines changed

package-lock.json

Lines changed: 82 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"license": "MIT",
1717
"dependencies": {
1818
"@giscus/react": "^2.2.3",
19-
"@spyglassmc/core": "^0.4.27",
20-
"@spyglassmc/java-edition": "^0.3.36",
21-
"@spyglassmc/json": "^0.3.31",
22-
"@spyglassmc/locales": "^0.3.13",
23-
"@spyglassmc/mcdoc": "^0.3.31",
24-
"@spyglassmc/nbt": "^0.3.32",
19+
"@spyglassmc/core": "^0.4.31",
20+
"@spyglassmc/java-edition": "^0.3.41",
21+
"@spyglassmc/json": "^0.3.35",
22+
"@spyglassmc/locales": "^0.3.16",
23+
"@spyglassmc/mcdoc": "^0.3.35",
24+
"@spyglassmc/nbt": "^0.3.36",
2525
"@zip.js/zip.js": "^2.4.5",
2626
"brace": "^0.11.1",
2727
"buffer": "^6.0.3",

src/app/components/generator/McdocHelpers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ const selectRegistries = new Set([
326326
'creative_mode_tab',
327327
'data_component_predicate_type',
328328
'data_component_type',
329+
'dialog_body_type',
330+
'dialog_type',
329331
'enchantment_effect_component_type',
330332
'enchantment_entity_effect_type',
331333
'enchantment_level_based_value_type',
@@ -336,6 +338,7 @@ const selectRegistries = new Set([
336338
'float_provider_type',
337339
'frog_variant',
338340
'height_provider_type',
341+
'input_control_type',
339342
'int_provider_type',
340343
'item_sub_predicate_type',
341344
'loot_condition_type',
@@ -357,6 +360,7 @@ const selectRegistries = new Set([
357360
'slot_display',
358361
'spawn_condition_type',
359362
'stat_type',
363+
'submit_method_type',
360364
'test_instance_type',
361365
'test_environment_definition_type',
362366
'trigger_type',

src/app/services/Spyglass.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ const initialize: core.ProjectInitializer = async (ctx) => {
409409

410410
registerAttributes(meta, release, versions)
411411

412-
json.initialize(ctx)
412+
json.getInitializer()(ctx)
413413
je.json.initialize(ctx)
414414
je.mcf.initialize(ctx, summary.commands, release)
415415
nbt.initialize(ctx)

src/config.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
"id": "1.21.6",
184184
"dynamic": true,
185185
"name": "1.21.6",
186-
"pack_format": 72,
186+
"pack_format": 77,
187187
"show": true
188188
}
189189
],
@@ -305,6 +305,11 @@
305305
"url": "cow-variant",
306306
"minVersion": "1.21.5"
307307
},
308+
{
309+
"id": "dialog",
310+
"url": "dialog",
311+
"minVersion": "1.21.6"
312+
},
308313
{
309314
"id": "test_instance",
310315
"url": "test-instance",

src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"generator.chat_type": "Chat Type",
7171
"generator.cow_variant": "Cow Variant",
7272
"generator.damage_type": "Damage Type",
73+
"generator.dialog": "Dialog",
7374
"generator.dimension": "Dimension",
7475
"generator.dimension_type": "Dimension Type",
7576
"generator.enchantment": "Enchantment",

0 commit comments

Comments
 (0)