From 8f40aff14145d34495838e2215aff590caf6ae95 Mon Sep 17 00:00:00 2001 From: Orbi-bot Date: Sat, 11 May 2024 09:13:38 +0000 Subject: [PATCH] auto: generated json schemas 2024-05-11 --- behavior/cameras/presets/cameras.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 behavior/cameras/presets/cameras.json diff --git a/behavior/cameras/presets/cameras.json b/behavior/cameras/presets/cameras.json new file mode 100644 index 00000000..cd699598 --- /dev/null +++ b/behavior/cameras/presets/cameras.json @@ -0,0 +1 @@ +{"$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":"#/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.41","examples":["1.20.41","1.19.0","1.18.0","1.17.0","1.16.0","1.15.0","1.14.0","1.13.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"}]}}} \ No newline at end of file