Skip to content

Commit

Permalink
Scrape camera preset identifiers from game files
Browse files Browse the repository at this point in the history
  • Loading branch information
ExDrill committed Oct 24, 2024
1 parent d90b820 commit c9d140b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"type": "string",
"anyOf": [
{
"enum": ["minecraft:free", "free"]
"$ref": "../vanilla/identifiers.json#/definitions/camera_preset_identifiers"
},
{
"$ref": "../../cameraPreset/dynamic/identifierEnum.json"
Expand Down
11 changes: 11 additions & 0 deletions packages/minecraftBedrock/schema/general/vanilla/identifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -6614,6 +6614,17 @@
"warped_forest"
]
},
"camera_preset_identifiers": {
"type": "string",
"enum": [
"minecraft:first_person",
"minecraft:fixed_boom",
"minecraft:follow_orbit",
"minecraft:free",
"minecraft:third_person",
"minecraft:third_person_front"
]
},
"fog_identifiers": {
"type": "string",
"enum": [
Expand Down
7 changes: 7 additions & 0 deletions scripts/vanillaData/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ export const toScrape: { documentation: DocTarget[]; game: GameTarget[] } = {
packType: 'definitions',
content: 'minecraft:biome/components/minecraft:tags/tags',
},
{
id: 'camera_preset_identifiers',
path: 'cameras/presets',
packType: 'behaviorPack',
content: 'minecraft:camera_preset/identifier'
},
{
id: 'family',
path: 'entities',
Expand Down Expand Up @@ -216,6 +222,7 @@ export const exportRaw: ExportTarget[] = [
'unprefixed_entity_identifiers.json',
'particle_identifiers.json',
'biome_identifiers.json',
'camera_preset_identifiers.json',
'fog_identifiers.json',
'feature_identifiers.json',
'feature_rule_identifiers.json',
Expand Down

0 comments on commit c9d140b

Please sign in to comment.