-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
170 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "blockception.minecraft.behavior.cameras.preset", | ||
"defaultSnippets": [ | ||
{ | ||
"format_version": "${1:1.20.41}", | ||
"minecraft:npc_dialogue": { | ||
"identifier": "$2", | ||
"inherit_from": "$3", | ||
"pos_x": 30, | ||
"pos_y": 90, | ||
"pos_z": -20, | ||
"rot_x": 10, | ||
"rot_y": 40 | ||
} | ||
} | ||
], | ||
"examples": [ | ||
{ | ||
"format_version": "1.20.41", | ||
"minecraft:npc_dialogue": { | ||
"identifier": "example:custom", | ||
"inherit_from": "minecraft:free", | ||
"pos_x": 30, | ||
"pos_y": 90, | ||
"pos_z": -20, | ||
"rot_x": 10, | ||
"rot_y": 40 | ||
} | ||
} | ||
], | ||
"type": "object", | ||
"title": "Camera Preset", | ||
"description": "A camera preset is a set of values that define a camera's position and rotation. This can be used to quickly set a camera to a specific position and rotation.", | ||
"additionalProperties": false, | ||
"required": ["format_version", "minecraft:camera_preset"], | ||
"properties": { | ||
"format_version": { "$ref": "../../../general/format_version.json" }, | ||
"minecraft:camera_preset": { | ||
"identifier": { | ||
"type": "string", | ||
"description": "The identifier of the camera preset. This is used to reference the camera preset in other components.", | ||
"$ref": "../../../general/cameras/identifier.json" | ||
}, | ||
"inherit_from": { | ||
"type": "string", | ||
"description": "The identifier of the camera preset to inherit from. This will copy the values from the inherited camera preset and then apply the values from this camera preset.", | ||
"$ref": "../../../general/cameras/identifier.json" | ||
}, | ||
"player_effects": { | ||
"type": "boolean", | ||
"description": "If true, the camera will apply player effects such as nausea and blindness.", | ||
"default": false | ||
}, | ||
"listener": { | ||
"type": "string", | ||
"description": "Specifies what / who acts as the ears for the camera.", | ||
"examples": ["player"] | ||
}, | ||
"pos_x": { | ||
"type": "number", | ||
"description": "The x position of the camera.", | ||
"default": 0 | ||
}, | ||
"pos_y": { | ||
"type": "number", | ||
"description": "The y position of the camera.", | ||
"default": 0 | ||
}, | ||
"pos_z": { | ||
"type": "number", | ||
"description": "The z position of the camera.", | ||
"default": 0 | ||
}, | ||
"rot_x": { | ||
"type": "number", | ||
"description": "The pitch of the camera. positive values look down, negative values look up.", | ||
"default": 0, | ||
"examples": [0, 22.5, 45, 67.5, 90, -22.5, -45, -67.5, -90] | ||
}, | ||
"rot_y": { | ||
"type": "number", | ||
"description": "The yaw of the camera. This is the direction the camera is facing.", | ||
"default": 0, | ||
"examples": [0, 90, 180, 270] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,55 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/DaanV2/JsonSchemaValidationCompressor.Net/master/Schema/Compression%20Schema.json", | ||
"Files": [ | ||
{ "Source": "./skinpacks/skins.json", "Destination": "../skinpacks/skins.json" }, | ||
{ "Source": "./language/language_names.json", "Destination": "../language/language_names.json" }, | ||
{ "Source": "./language/languages.json", "Destination": "../language/languages.json" }, | ||
{ "Source": "./behavior/animation_controllers/animation_controller.json", "Destination": "../behavior/animation_controllers/animation_controller.json" }, | ||
{ "Source": "./behavior/animations/animations.json", "Destination": "../behavior/animations/animations.json" }, | ||
{ "Source": "./behavior/biomes/biomes.json", "Destination": "../behavior/biomes/biomes.json" }, | ||
{ "Source": "./behavior/blocks/blocks.json", "Destination": "../behavior/blocks/blocks.json" }, | ||
{ "Source": "./behavior/cameras/presets/cameras.json", "Destination": "../behavior/cameras/presets/cameras.json" }, | ||
{ "Source": "./behavior/dialogue/dialogue.json", "Destination": "../behavior/dialogue/dialogue.json" }, | ||
{ "Source": "./behavior/entities/entities.json", "Destination": "../behavior/entities/entities.json" }, | ||
{ "Source": "./behavior/feature_rules/feature_rules.json", "Destination": "../behavior/feature_rules/feature_rules.json" }, | ||
{ "Source": "./behavior/features/features.json", "Destination": "../behavior/features/features.json" }, | ||
{ "Source": "./behavior/functions/tick.json", "Destination": "../behavior/functions/tick.json" }, | ||
{ "Source": "./behavior/items/items.json", "Destination": "../behavior/items/items.json" }, | ||
{ "Source": "./behavior/loot_tables/loot_tables.json", "Destination": "../behavior/loot_tables/loot_tables.json" }, | ||
{ "Source": "./behavior/recipes/recipes.json", "Destination": "../behavior/recipes/recipes.json" }, | ||
{ "Source": "./behavior/spawn_rules/spawn_rules.json", "Destination": "../behavior/spawn_rules/spawn_rules.json" }, | ||
{ "Source": "./behavior/trading/trading.json", "Destination": "../behavior/trading/trading.json" }, | ||
{ "Source": "./behavior/volumes/volumes.json", "Destination": "../behavior/volumes/volumes.json" }, | ||
|
||
{ "Source": "./general/manifest.json", "Destination": "../general/manifest.json" }, | ||
{ "Source": "./general/world_x_packs.json", "Destination": "../general/world_x_packs.json" }, | ||
|
||
{ "Source": "./language/language_names.json", "Destination": "../language/language_names.json" }, | ||
{ "Source": "./language/languages.json", "Destination": "../language/languages.json" }, | ||
|
||
{ "Source": "./resource//block_culling/block_culling.json", "Destination": "../resource/block_culling/block_culling.json" }, | ||
{ "Source": "./resource/animation_controllers/animation_controller.json", "Destination": "../resource/animation_controllers/animation_controller.json" }, | ||
{ "Source": "./resource/animations/actor_animation.json", "Destination": "../resource/animations/actor_animation.json" }, | ||
{ "Source": "./resource/attachables/attachables.json", "Destination": "../resource/attachables/attachables.json" }, | ||
{ "Source": "./resource/biomes_client.json", "Destination": "../resource/biomes_client.json" }, | ||
{ "Source": "./resource/blocks.json", "Destination": "../resource/blocks.json" }, | ||
{ "Source": "./resource//block_culling/block_culling.json", "Destination": "../resource/block_culling/block_culling.json" }, | ||
{ "Source": "./resource/entity/entity.json", "Destination": "../resource/entity/entity.json" }, | ||
{ "Source": "./resource/fog/fog.json", "Destination": "../resource/fog/fog.json" }, | ||
{ "Source": "./resource/textures/flipbook_textures.json", "Destination": "../resource/textures/flipbook_textures.json" }, | ||
{ "Source": "./resource/textures/item_texture.json", "Destination": "../resource/textures/item_texture.json" }, | ||
{ "Source": "./resource/textures/textures_list.json", "Destination": "../resource/textures/textures_list.json" }, | ||
{ "Source": "./resource/textures/texture_set.json", "Destination": "../resource/textures/texture_set.json" }, | ||
{ "Source": "./resource/items/items.json", "Destination": "../resource/items/items.json" }, | ||
{ "Source": "./resource/models/entity/model_entity.json", "Destination": "../resource/models/entity/model_entity.json" }, | ||
{ "Source": "./resource/materials/materials.json", "Destination": "../resource/materials/materials.json" }, | ||
{ "Source": "./resource/sounds/music_definitions.json", "Destination": "../resource/sounds/music_definitions.json" }, | ||
{ "Source": "./resource/models/entity/model_entity.json", "Destination": "../resource/models/entity/model_entity.json" }, | ||
{ "Source": "./resource/particles/particles.json", "Destination": "../resource/particles/particles.json" }, | ||
{ "Source": "./resource/render_controllers/render_controllers.json", "Destination": "../resource/render_controllers/render_controllers.json" }, | ||
{ "Source": "./resource/sounds/sound_definitions.json", "Destination": "../resource/sounds/sound_definitions.json" }, | ||
{ "Source": "./resource/sounds.json", "Destination": "../resource/sounds.json" }, | ||
{ "Source": "./resource/sounds/music_definitions.json", "Destination": "../resource/sounds/music_definitions.json" }, | ||
{ "Source": "./resource/sounds/sound_definitions.json", "Destination": "../resource/sounds/sound_definitions.json" }, | ||
{ "Source": "./resource/textures/flipbook_textures.json", "Destination": "../resource/textures/flipbook_textures.json" }, | ||
{ "Source": "./resource/textures/item_texture.json", "Destination": "../resource/textures/item_texture.json" }, | ||
{ "Source": "./resource/textures/terrain_texture.json", "Destination": "../resource/textures/terrain_texture.json" }, | ||
{ "Source": "./resource/textures/texture_set.json", "Destination": "../resource/textures/texture_set.json" }, | ||
{ "Source": "./resource/textures/textures_list.json", "Destination": "../resource/textures/textures_list.json" }, | ||
{ "Source": "./resource/textures/ui_texture_definition.json", "Destination": "../resource/textures/ui_texture_definition.json" }, | ||
{ "Source": "./resource/ui/ui.json", "Destination": "../resource/ui/ui.json" }, | ||
{ "Source": "./resource/ui/_ui_defs.json", "Destination": "../resource/ui/_ui_defs.json" }, | ||
{ "Source": "./resource/ui/_global_variables.json", "Destination": "../resource/ui/_global_variables.json" }, | ||
{ "Source": "./resource/ui/_ui_defs.json", "Destination": "../resource/ui/_ui_defs.json" }, | ||
{ "Source": "./resource/ui/ui.json", "Destination": "../resource/ui/ui.json" }, | ||
{ "Source": "./behavior/animation_controllers/animation_controller.json", "Destination": "../behavior/animation_controllers/animation_controller.json" }, | ||
{ "Source": "./behavior/animations/animations.json", "Destination": "../behavior/animations/animations.json" }, | ||
{ "Source": "./behavior/biomes/biomes.json", "Destination": "../behavior/biomes/biomes.json" }, | ||
{ "Source": "./behavior/dialogue/dialogue.json", "Destination": "../behavior/dialogue/dialogue.json" }, | ||
{ "Source": "./behavior/loot_tables/loot_tables.json", "Destination": "../behavior/loot_tables/loot_tables.json" }, | ||
{ "Source": "./behavior/blocks/blocks.json", "Destination": "../behavior/blocks/blocks.json" }, | ||
{ "Source": "./behavior/entities/entities.json", "Destination": "../behavior/entities/entities.json" }, | ||
{ "Source": "./behavior/features/features.json", "Destination": "../behavior/features/features.json" }, | ||
{ "Source": "./behavior/feature_rules/feature_rules.json", "Destination": "../behavior/feature_rules/feature_rules.json" }, | ||
{ "Source": "./behavior/functions/tick.json", "Destination": "../behavior/functions/tick.json" }, | ||
{ "Source": "./behavior/items/items.json", "Destination": "../behavior/items/items.json" }, | ||
{ "Source": "./behavior/recipes/recipes.json", "Destination": "../behavior/recipes/recipes.json" }, | ||
{ "Source": "./behavior/spawn_rules/spawn_rules.json", "Destination": "../behavior/spawn_rules/spawn_rules.json" }, | ||
{ "Source": "./behavior/trading/trading.json", "Destination": "../behavior/trading/trading.json" }, | ||
{ "Source": "./behavior/volumes/volumes.json", "Destination": "../behavior/volumes/volumes.json" } | ||
{ "Source": "./resource/ui/ui.json", "Destination": "../resource/ui/ui.json" }, | ||
{ "Source": "./skinpacks/skins.json", "Destination": "../skinpacks/skins.json" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$id": "blockception.minecraft.camera.identifier", | ||
"description": "A minecraft camera identifier.", | ||
"examples": ["namespace:camera"], | ||
"pattern": "^[0-9a-zA-Z:_\\.\\-]+$", | ||
"title": "Camera Identifier", | ||
"type": "string", | ||
"defaultSnippets": [{ "label": "New Identifier", "body": "$1:$2" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters