{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.cameras.preset","defaultSnippets":[{"format_version":"${1:1.20.80}","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.80","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":"#/definitions/A"},"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":"#/definitions/B"},"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":"#/definitions/B"},"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]}}},"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.20.81","examples":["1.20.81","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]},"B":{"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"}]}}}