diff --git a/resource/animation_controllers/animation_controller.json b/resource/animation_controllers/animation_controller.json index d6931057..969783a5 100644 --- a/resource/animation_controllers/animation_controller.json +++ b/resource/animation_controllers/animation_controller.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.animation_controller","examples":[{"format_version":"1.10.0","animation_controllers":{"controller.animation.example":{"states":{"default":{"transitions":[{"state_1":"query.is_baby"}]},"state_1":{"animations":["state_1"],"transitions":[{"default":"query.all_animations_finished"}]}}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/D"}}],"definitions":{"A_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"A_particle_effect_spec":{"additionalProperties":false,"type":"object","required":["effect"],"properties":{"bind_to_actor":{"type":"boolean","title":"Bind To Actor","description":"Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."},"effect":{"type":"string","title":"Effect","description":"The name of a particle effect that should be played"},"locator":{"type":"string","title":"Locator","description":"The name of a locator on the actor where the effect should be located"},"pre_effect_script":{"type":"string","title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized","pattern":"^.+;$"}}},"A_commands":{"type":"string","description":"The event or commands to execute","pattern":"^(@s .+|/.+)$"},"B":{"type":"string","title":"Molang / String","description":"Molang definition","format":"molang"},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"A":{"type":"object","title":"Resourcepack Animation Controller 1.8.0","description":"TODO description","required":["format_version","animation_controllers"],"additionalProperties":false,"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animation_controllers":{"type":"object","title":"Animation Controllers Schema","description":"The animation controllers schema for 1.8.0","propertyNames":{"pattern":"^controller\\.animation\\.[a-z\\.]+"},"additionalProperties":{"additionalProperties":false,"type":"object","title":"A Animation Controller","description":"A single animation controller 1.8.0","required":["states"],"minProperties":1,"properties":{"states":{"title":"States","description":"The states of this animation controller","propertyNames":{"pattern":"[a-z\\.]+"},"minProperties":1,"additionalProperties":{"additionalProperties":false,"title":"Animation State","description":"Animation state","type":"object","properties":{"animations":{"title":"Animations","description":"The animations definition for 1.10.0","type":"array","items":{"$ref":"#/definitions/A_animationspec","description":"TODO description: animations","title":"Animations"}},"blend_transition":{"title":"Blend Transition","oneOf":[{"type":"number","description":"A short-hand version of blend_out that simply sets the amount of time to fade out if the animation is interrupted"},{"type":"object","description":"Specifies the cross-fade time in seconds when transitioning to another state","additionalProperties":{"type":"number","description":"Mapping of time since the animation was canceled, to the blend value at that time. A default key of time=0 to a blend value of 1.0 is provided if any other key is set and a blend value at time=0 hasn't already been set."}}]},"blend_via_shortest_path":{"description":"When blending a transition to another state, animate each euler axis through the shortest rotation, instead of by value","type":"boolean","title":"Blend Via Shortest Path"},"particle_effects":{"description":"The effects to be emitted","type":"array","items":{"$ref":"#/definitions/A_particle_effect_spec","description":"TODO description: particle effects","title":"Particle Effects"},"title":"Particle Effects"},"sound_effects":{"type":"array","description":"Collection of sounds to trigger on entry to this animation state.","items":{"type":"object","additionalProperties":false,"required":["effect"],"properties":{"effect":{"description":"Valid sound effect names should be listed in the entity's resource_definition json file.","type":"string"}}}},"transitions":{"title":"Transition","description":"The transition definition for 1.8.0","minProperties":1,"type":"array","items":{"$ref":"#/definitions/A_animationspec","description":"TODO description: transitions","title":"Transitions"}},"variables":{"type":"object","additionalProperties":{"additionalProperties":false,"type":"object","required":["input"],"properties":{"input":{"$ref":"#/definitions/C"},"remap_curve":{"additionalProperties":{"type":"number"}}}}},"on_entry":{"title":"On Entry","description":"UNDOCUMENTATED","type":"array","items":{"pattern":"^.+;$","title":"Molang","description":"UNDOCUMENTATED","type":"string"}},"on_exit":{"title":"On Exit","description":"UNDOCUMENTATED","type":"array","items":{"pattern":"^.+;$","title":"Molang","description":"UNDOCUMENTATED","type":"string"}}}}},"initial_state":{"type":"string","description":"TODO description: initial state","title":"Initial State"}}}}}},"D_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"D_particle_effect_spec":{"additionalProperties":false,"type":"object","required":["effect"],"properties":{"bind_to_actor":{"type":"boolean","title":"Bind To Actor","description":"Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."},"effect":{"type":"string","title":"Effect","description":"The name of a particle effect that should be played"},"locator":{"type":"string","title":"Locator","description":"The name of a locator on the actor where the effect should be located"},"pre_effect_script":{"type":"string","title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized","pattern":"^.+;$"}}},"D_commands":{"type":"string","description":"The event or commands to execute","pattern":"^(@s .+|/.+)$"},"D":{"type":"object","title":"Resourcepack Animation Controller 1.10.0","description":"TODO description","required":["format_version","animation_controllers"],"additionalProperties":false,"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^1.10.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animation_controllers":{"type":"object","title":"Animation Controllers Schema","description":"The animation controllers schema for 1.10.0","propertyNames":{"pattern":"^controller\\.animation\\.[a-z\\.]+"},"additionalProperties":{"additionalProperties":false,"type":"object","title":"A Animation Controller","description":"A single animation controller 1.10.0","required":["states"],"minProperties":1,"examples":[{"controller.animation.some_name":{"initial_state":"default","states":{"default":{"transitions":[{"state_1":"query.is_baby"}]},"state_1":{"animations":["state_1"],"transitions":[{"default":"query.all_animations_finished"}]}}}}],"properties":{"states":{"title":"States","description":"The states of this animation controller","propertyNames":{"pattern":"[a-z\\.]+","examples":["default"]},"minProperties":1,"additionalProperties":{"additionalProperties":false,"title":"Animation State","description":"Animation state","type":"object","properties":{"animations":{"title":"Animations","description":"The animations definition for 1.10.0","type":"array","items":{"$ref":"#/definitions/D_animationspec","description":"TODO description: animations","title":"Animations"}},"blend_transition":{"title":"Blend Transition","description":"when transitioning away from this state, cross-fade over","oneOf":[{"type":"number","description":"A short-hand version of blend_out that simply sets the amount of time to fade out if the animation is interrupted"},{"type":"object","description":"Specifies the cross-fade time in seconds when transitioning to another state","additionalProperties":{"type":"number","description":"Mapping of time since the animation was canceled, to the blend value at that time. A default key of time=0 to a blend value of 1.0 is provided if any other key is set and a blend value at time=0 hasn't already been set."}}]},"blend_via_shortest_path":{"description":"When blending a transition to another state, animate each euler axis through the shortest rotation, instead of by value","type":"boolean","title":"Blend Via Shortest Path"},"particle_effects":{"description":"The effects to be emitted","type":"array","items":{"$ref":"#/definitions/D_particle_effect_spec","description":"TODO description: particle effects","title":"Particle Effects"},"title":"Particle Effects"},"sound_effects":{"type":"array","description":"Collection of sounds to trigger on entry to this animation state.","items":{"type":"object","additionalProperties":false,"required":["effect"],"properties":{"effect":{"description":"Valid sound effect names should be listed in the entity's resource_definition json file.","type":"string"}}}},"transitions":{"title":"Transition","description":"The transition definition for 1.10.0","minProperties":1,"type":"array","examples":[[{"some_state":"query.is_sheared"}]],"items":{"$ref":"#/definitions/D_animationspec","description":"TODO description: transitions","title":"Transitions","examples":[{"some_state":"query.is_sheared"}]}},"variables":{"type":"object","additionalProperties":{"additionalProperties":false,"type":"object","required":["input"],"properties":{"input":{"title":"Input","description":"","$ref":"#/definitions/C"},"remap_curve":{"title":"Remap Curve","additionalProperties":{"propertyNames":{"pattern":"^([\\-\\+0-9]+|[\\-\\+0-9]+.[0-9]+)$"},"type":"number"}}}}},"on_entry":{"title":"On Entry","description":"UNDOCUMENTATED","type":"array","items":{"pattern":"^.+=.+;$","title":"Molang","description":"UNDOCUMENTATED","type":"string"}},"on_exit":{"title":"On Exit","description":"UNDOCUMENTATED","type":"array","items":{"pattern":"^.+=.+;$","title":"Molang","description":"UNDOCUMENTATED","type":"string"}}}}},"initial_state":{"type":"string","description":"TODO description: initial state","title":"Initial State"}}}}}}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.animation_controller","examples":[{"format_version":"1.10.0","animation_controllers":{"controller.animation.example":{"states":{"default":{"transitions":[{"state_1":"query.is_baby"}]},"state_1":{"animations":["state_1"],"transitions":[{"default":"query.all_animations_finished"}]}}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/D"}},{"properties":{"format_version":{"$ref":"#/definitions/E"}}}],"definitions":{"A_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"A_particle_effect_spec":{"additionalProperties":false,"type":"object","required":["effect"],"properties":{"bind_to_actor":{"type":"boolean","title":"Bind To Actor","description":"Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."},"effect":{"type":"string","title":"Effect","description":"The name of a particle effect that should be played"},"locator":{"type":"string","title":"Locator","description":"The name of a locator on the actor where the effect should be located"},"pre_effect_script":{"type":"string","title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized","pattern":"^.+;$"}}},"A_commands":{"type":"string","description":"The event or commands to execute","pattern":"^(@s .+|/.+)$"},"B":{"type":"string","title":"Molang / String","description":"Molang definition","format":"molang"},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"A":{"type":"object","title":"Resourcepack Animation Controller 1.8.0","description":"TODO description","required":["format_version","animation_controllers"],"additionalProperties":false,"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animation_controllers":{"type":"object","title":"Animation Controllers Schema","description":"The animation controllers schema for 1.8.0","propertyNames":{"pattern":"^controller\\.animation\\.[a-z\\.]+"},"additionalProperties":{"additionalProperties":false,"type":"object","title":"A Animation Controller","description":"A single animation controller 1.8.0","required":["states"],"minProperties":1,"properties":{"states":{"title":"States","description":"The states of this animation controller","propertyNames":{"pattern":"[a-z\\.]+"},"minProperties":1,"additionalProperties":{"additionalProperties":false,"title":"Animation State","description":"Animation state","type":"object","properties":{"animations":{"title":"Animations","description":"The animations definition for 1.10.0","type":"array","items":{"$ref":"#/definitions/A_animationspec","description":"TODO description: animations","title":"Animations"}},"blend_transition":{"title":"Blend Transition","oneOf":[{"type":"number","description":"A short-hand version of blend_out that simply sets the amount of time to fade out if the animation is interrupted"},{"type":"object","description":"Specifies the cross-fade time in seconds when transitioning to another state","additionalProperties":{"type":"number","description":"Mapping of time since the animation was canceled, to the blend value at that time. A default key of time=0 to a blend value of 1.0 is provided if any other key is set and a blend value at time=0 hasn't already been set."}}]},"blend_via_shortest_path":{"description":"When blending a transition to another state, animate each euler axis through the shortest rotation, instead of by value","type":"boolean","title":"Blend Via Shortest Path"},"particle_effects":{"description":"The effects to be emitted","type":"array","items":{"$ref":"#/definitions/A_particle_effect_spec","description":"TODO description: particle effects","title":"Particle Effects"},"title":"Particle Effects"},"sound_effects":{"type":"array","description":"Collection of sounds to trigger on entry to this animation state.","items":{"type":"object","additionalProperties":false,"required":["effect"],"properties":{"effect":{"description":"Valid sound effect names should be listed in the entity's resource_definition json file.","type":"string"}}}},"transitions":{"title":"Transition","description":"The transition definition for 1.8.0","minProperties":1,"type":"array","items":{"$ref":"#/definitions/A_animationspec","description":"TODO description: transitions","title":"Transitions"}},"variables":{"type":"object","additionalProperties":{"additionalProperties":false,"type":"object","required":["input"],"properties":{"input":{"$ref":"#/definitions/C"},"remap_curve":{"additionalProperties":{"type":"number"}}}}},"on_entry":{"title":"On Entry","description":"UNDOCUMENTATED","type":"array","items":{"pattern":"^.+;$","title":"Molang","description":"UNDOCUMENTATED","type":"string"}},"on_exit":{"title":"On Exit","description":"UNDOCUMENTATED","type":"array","items":{"pattern":"^.+;$","title":"Molang","description":"UNDOCUMENTATED","type":"string"}}}}},"initial_state":{"type":"string","description":"TODO description: initial state","title":"Initial State"}}}}}},"D_animationspec":{"anyOf":[{"title":"Animation Specification","description":"A single string that specifies which animation there are","type":"string"},{"type":"object","title":"Animation Specification","description":"A object specification on how to transition","maxProperties":1,"minProperties":1,"additionalProperties":{"$ref":"#/definitions/B"}}]},"D_particle_effect_spec":{"additionalProperties":false,"type":"object","required":["effect"],"properties":{"bind_to_actor":{"type":"boolean","title":"Bind To Actor","description":"Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."},"effect":{"type":"string","title":"Effect","description":"The name of a particle effect that should be played"},"locator":{"type":"string","title":"Locator","description":"The name of a locator on the actor where the effect should be located"},"pre_effect_script":{"type":"string","title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized","pattern":"^.+;$"}}},"D_commands":{"type":"string","description":"The event or commands to execute","pattern":"^(@s .+|/.+)$"},"D":{"type":"object","title":"Resourcepack Animation Controller 1.10.0","description":"TODO description","required":["format_version","animation_controllers"],"additionalProperties":false,"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^1.10.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animation_controllers":{"type":"object","title":"Animation Controllers Schema","description":"The animation controllers schema for 1.10.0","propertyNames":{"pattern":"^controller\\.animation\\.[a-z\\.]+"},"additionalProperties":{"additionalProperties":false,"type":"object","title":"A Animation Controller","description":"A single animation controller 1.10.0","required":["states"],"minProperties":1,"examples":[{"controller.animation.some_name":{"initial_state":"default","states":{"default":{"transitions":[{"state_1":"query.is_baby"}]},"state_1":{"animations":["state_1"],"transitions":[{"default":"query.all_animations_finished"}]}}}}],"properties":{"states":{"title":"States","description":"The states of this animation controller","propertyNames":{"pattern":"[a-z\\.]+","examples":["default"]},"minProperties":1,"additionalProperties":{"additionalProperties":false,"title":"Animation State","description":"Animation state","type":"object","properties":{"animations":{"title":"Animations","description":"The animations definition for 1.10.0","type":"array","items":{"$ref":"#/definitions/D_animationspec","description":"TODO description: animations","title":"Animations"}},"blend_transition":{"title":"Blend Transition","description":"when transitioning away from this state, cross-fade over","oneOf":[{"type":"number","description":"A short-hand version of blend_out that simply sets the amount of time to fade out if the animation is interrupted"},{"type":"object","description":"Specifies the cross-fade time in seconds when transitioning to another state","additionalProperties":{"type":"number","description":"Mapping of time since the animation was canceled, to the blend value at that time. A default key of time=0 to a blend value of 1.0 is provided if any other key is set and a blend value at time=0 hasn't already been set."}}]},"blend_via_shortest_path":{"description":"When blending a transition to another state, animate each euler axis through the shortest rotation, instead of by value","type":"boolean","title":"Blend Via Shortest Path"},"particle_effects":{"description":"The effects to be emitted","type":"array","items":{"$ref":"#/definitions/D_particle_effect_spec","description":"TODO description: particle effects","title":"Particle Effects"},"title":"Particle Effects"},"sound_effects":{"type":"array","description":"Collection of sounds to trigger on entry to this animation state.","items":{"type":"object","additionalProperties":false,"required":["effect"],"properties":{"effect":{"description":"Valid sound effect names should be listed in the entity's resource_definition json file.","type":"string"}}}},"transitions":{"title":"Transition","description":"The transition definition for 1.10.0","minProperties":1,"type":"array","examples":[[{"some_state":"query.is_sheared"}]],"items":{"$ref":"#/definitions/D_animationspec","description":"TODO description: transitions","title":"Transitions","examples":[{"some_state":"query.is_sheared"}]}},"variables":{"type":"object","additionalProperties":{"additionalProperties":false,"type":"object","required":["input"],"properties":{"input":{"title":"Input","description":"","$ref":"#/definitions/C"},"remap_curve":{"title":"Remap Curve","additionalProperties":{"propertyNames":{"pattern":"^([\\-\\+0-9]+|[\\-\\+0-9]+.[0-9]+)$"},"type":"number"}}}}},"on_entry":{"title":"On Entry","description":"UNDOCUMENTATED","type":"array","items":{"pattern":"^.+=.+;$","title":"Molang","description":"UNDOCUMENTATED","type":"string"}},"on_exit":{"title":"On Exit","description":"UNDOCUMENTATED","type":"array","items":{"pattern":"^.+=.+;$","title":"Molang","description":"UNDOCUMENTATED","type":"string"}}}}},"initial_state":{"type":"string","description":"TODO description: initial state","title":"Initial State"}}}}}},"E":{"title":"Format version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^[0-9,.]+?$","type":"string"}}} \ No newline at end of file diff --git a/resource/animations/actor_animation.json b/resource/animations/actor_animation.json index 49b380a3..ab0ed60e 100644 --- a/resource/animations/actor_animation.json +++ b/resource/animations/actor_animation.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.actor_animation","examples":[{"format_version":"1.8.0","animations":{"animation.annie.idle":{"loop":true,"animation_length":2.12,"bones":{}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/E"}}],"definitions":{"A_ParticleEffect":{"type":"object","title":"Particle Effect","additionalProperties":false,"required":["effect"],"properties":{"effect":{"type":"string","title":"Particle Id","description":"The name of a particle effect that should be played"},"locator":{"type":"string","title":"Locator","description":"The name of a locator on the actor where the effect should be located"},"pre_effect_script":{"title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized","$ref":"#/definitions/B"},"bind_to_actor":{"type":"boolean","title":"Bind To Actor","description":"Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."}}},"A_PositionV3":{"title":"Position Array","description":"An array of 3 items that describe the bones position","type":"array","items":[{"title":"Position X","description":"The position over the X-axis or forwards/backwards.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Y","description":"The position over the Y-axis, or up/down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Z","description":"The position over the Z-axis, or left/right.\nCan be molang or a float","$ref":"#/definitions/C"}]},"A_RotationV3":{"title":"Rotation Array","description":"An array of 3 items that describe the bones rotation","type":"array","items":[{"title":"Rotation X","description":"The rotation over the X-axis, or up or down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Rotation Y","description":"The rotation over the Y-axis, or yaw.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Rotation Z","description":"The rotation over the Z-axis, or roll.\nCan be molang or a float","$ref":"#/definitions/C"}]},"A_ScaleV3":{"title":"Scale Array","description":"An array of 3 items that describe the bones position","type":"array","items":[{"title":"Position X","description":"The position over the X-axis or forwards/backwards.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Y","description":"The position over the Y-axis, or up/down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Z","description":"The position over the Z-axis, or left/right.\nCan be molang or a float","$ref":"#/definitions/C"}]},"A_SoundEffect":{"title":"Sound Effect","type":"object","additionalProperties":false,"properties":{"effect":{"title":"Effect","type":"string","description":"Valid sound effect names should be listed in the entity's resource_definition json file."}}},"B":{"type":"string","title":"Molang / String","description":"Molang definition","format":"molang"},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"D":{"title":"Molang Array Of 3 Numbers","description":"The minecraft molang definition that results in a 3 floats","anyOf":[{"type":"string","minLength":0,"format":"molang"}]},"A":{"additionalProperties":false,"type":"object","title":"Resourcepack Actor Animation 1.8.0","description":"TODO description","required":["format_version","animations"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","const":"1.8.0","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animations":{"title":"Animations Schema","description":"The animation 1.8.0 specification","propertyNames":{"pattern":"^animation\\.[a-z\\.]+"},"type":"object","additionalProperties":{"additionalProperties":false,"type":"object","title":"Animation 1.8.0","description":"The animation specification for 1.8.0","properties":{"anim_time_update":{"title":"Anim Time Update","description":"How does time pass when playing the animation. Defaults to \"query.anim_time + query.delta_time\" which means advance in seconds.","$ref":"#/definitions/C"},"animation_length":{"title":"Animation Length","description":"Override calculated value (set as the last keyframe time) and set animation length in seconds.","type":"number"},"blend_weight":{"title":"Blend Weight","description":"TODO","$ref":"#/definitions/C"},"bones":{"title":"Bones","minProperties":1,"description":"Defines how the bones in an animation move or transform","type":"object","additionalProperties":{"title":"Bone Transformation","description":"The bone definition that declare how it transforms during animation","type":"object","additionalProperties":false,"properties":{"position":{"title":"Position","description":"The Position transformation during this animation","oneOf":[{"$ref":"#/definitions/A_PositionV3"},{"$ref":"#/definitions/D"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_PositionV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_PositionV3"}}}}]},"rotation":{"title":"Rotation","description":"The rotation transformation during this animation","oneOf":[{"$ref":"#/definitions/A_RotationV3"},{"$ref":"#/definitions/D"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_RotationV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_RotationV3"}}}}]},"relative_to":{"title":"Relative To","description":"If set, makes the bone rotation relative to the entity instead of the bone's parent","properties":{"rotation":{"title":"Rotation","description":"If set, makes the bone rotation relative to the entity instead of the bone's parent","type":"string"}}},"scale":{"title":"Scale","description":"TODO","oneOf":[{"$ref":"#/definitions/C"},{"$ref":"#/definitions/A_ScaleV3"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_ScaleV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_ScaleV3"}}}}]}}}},"loop":{"title":"Loop","description":"Should this animation stop, loop, or stay on the last frame when finished (true, false, hold_on_last_frame)","oneOf":[{"type":"boolean"},{"type":"string","enum":["hold_on_last_frame"]}]},"loop_delay":{"title":"Loop Delay","description":"How long to wait in seconds before looping this animation. Note that this expression is evaluated after each loop and on looping animation only.","$ref":"#/definitions/C"},"override_previous_animation":{"title":"Override Previous Animation","description":"Reset bones in this animation to the default pose before applying this animation.","type":"boolean"},"particle_effects":{"title":"Particle Effects","description":"TODO","oneOf":[{"$ref":"#/definitions/A_ParticleEffect"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$","examples":["0.0"]},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","oneOf":[{"type":"object","$ref":"#/definitions/A_ParticleEffect"},{"type":"array","items":{"$ref":"#/definitions/A_ParticleEffect"}}]}}]},"start_delay":{"title":"Start Delay","description":"How long to wait in seconds before playing this animation. Note that this expression is evaluated once before playing, and only re-evaluated if asked to play from the beginning again. A looping animation should use 'loop_delay' if it wants a delay between loops.","$ref":"#/definitions/C"},"sound_effects":{"title":"Sound Effect","description":"TODO","type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"$ref":"#/definitions/A_SoundEffect"}},"timeline":{"title":"Timeline","description":"The time line","type":"object","propertyNames":{"pattern":"^(\\d+.\\d+|\\d+)$"},"additionalProperties":{"oneOf":[{"type":"string","title":"Molang","description":"Variable definition","pattern":"^(v|variable)\\..*=.*;$"},{"type":"array","title":"Collection Timelime Items","items":{"type":"string","title":"Molang","description":"Variable definition","pattern":"^(v|variable)\\..*=.*;$"}}]}}}}}}},"E_ParticleEffect":{"type":"object","title":"Particle Effect","additionalProperties":false,"required":["effect"],"properties":{"effect":{"type":"string","title":"Particle Id","description":"The name of a particle effect that should be played"},"locator":{"type":"string","title":"Locator","description":"The name of a locator on the actor where the effect should be located"},"pre_effect_script":{"title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized","$ref":"#/definitions/B"},"bind_to_actor":{"type":"boolean","title":"Bind To Actor","description":"Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."}}},"E_PositionV3":{"title":"Position Array","description":"An array of 3 items that describe the bones position","type":"array","items":[{"title":"Position X","description":"The position over the X-axis or forwards/backwards.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Y","description":"The position over the Y-axis, or up/down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Z","description":"The position over the Z-axis, or left/right.\nCan be molang or a float","$ref":"#/definitions/C"}]},"E_RotationV3":{"title":"Rotation Array","description":"An array of 3 items that describe the bones rotation","type":"array","items":[{"title":"Rotation X","description":"The rotation over the X-axis, or up or down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Rotation Y","description":"The rotation over the Y-axis, or yaw.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Rotation Z","description":"The rotation over the Z-axis, or roll.\nCan be molang or a float","$ref":"#/definitions/C"}]},"E_ScaleV3":{"title":"Scale Array","description":"An array of 3 items that describe the bones position","type":"array","items":[{"title":"Position X","description":"The position over the X-axis or forwards/backwards.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Y","description":"The position over the Y-axis, or up/down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Z","description":"The position over the Z-axis, or left/right.\nCan be molang or a float","$ref":"#/definitions/C"}]},"E_SoundEffect":{"title":"Sound Effect","type":"object","additionalProperties":false,"properties":{"effect":{"title":"Effect","type":"string","description":"Valid sound effect names should be listed in the entity's resource_definition json file."}}},"E":{"additionalProperties":false,"type":"object","title":"Resourcepack Actor Animation 1.10.0","description":"TODO description","required":["format_version","animations"],"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","const":"1.10.0","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animations":{"title":"Animations Schema","description":"The animation 1.10.0 specification","propertyNames":{"pattern":"^animation\\.[a-z\\.]+"},"type":"object","additionalProperties":{"additionalProperties":false,"type":"object","title":"Animation 1.8.0","description":"The animation specification for 1.8.0","properties":{"anim_time_update":{"title":"Start Delay","description":"How does time pass when playing the animation. Defaults to \"query.anim_time + query.delta_time\" which means advance in seconds.","$ref":"#/definitions/C"},"animation_length":{"title":"Animation Length","description":"Override calculated value (set as the last keyframe time) and set animation length in seconds.","type":"number"},"blend_weight":{"title":"Blend Weight","description":"TODO","$ref":"#/definitions/C"},"bones":{"title":"Bones","description":"Defines how the bones in an animation move or transform","type":"object","minProperties":1,"additionalProperties":{"title":"Bone Transformation","description":"The bone definition that declare how it transforms during animation","type":"object","additionalProperties":false,"properties":{"position":{"title":"Position","description":"The Position transformation during this animation","oneOf":[{"$ref":"#/definitions/E_PositionV3"},{"$ref":"#/definitions/D"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_PositionV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_PositionV3"}}}}]},"rotation":{"title":"Rotation","description":"The rotation transformation during this animation","oneOf":[{"$ref":"#/definitions/E_RotationV3"},{"$ref":"#/definitions/D"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_RotationV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_RotationV3"}}}}]},"relative_to":{"title":"Relative To","description":"If set, makes the bone rotation relative to the entity instead of the bone's parent","properties":{"rotation":{"title":"Rotation","description":"If set, makes the bone rotation relative to the entity instead of the bone's parent","type":"string"}}},"scale":{"title":"Scale","description":"TODO","oneOf":[{"$ref":"#/definitions/C"},{"$ref":"#/definitions/E_ScaleV3"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_ScaleV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_ScaleV3"}}}}]}}}},"loop":{"title":"Loop","description":"Should this animation stop, loop, or stay on the last frame when finished (true, false, hold_on_last_frame)","oneOf":[{"type":"boolean"},{"type":"string","enum":["hold_on_last_frame"]}]},"loop_delay":{"title":"Loop Delay","description":"How long to wait in seconds before looping this animation. Note that this expression is evaluated after each loop and on looping animation only.","$ref":"#/definitions/C"},"override_previous_animation":{"title":"Override Previous Animation","description":"Reset bones in this animation to the default pose before applying this animation.","type":"boolean"},"particle_effects":{"title":"Particle Effects","description":"TODO","oneOf":[{"$ref":"#/definitions/E_ParticleEffect"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$","examples":["0.0"]},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","oneOf":[{"type":"object","$ref":"#/definitions/E_ParticleEffect"},{"type":"array","items":{"$ref":"#/definitions/E_ParticleEffect"}}]}}]},"start_delay":{"title":"Start Delay","description":"How long to wait in seconds before playing this animation. Note that this expression is evaluated once before playing, and only re-evaluated if asked to play from the beginning again. A looping animation should use 'loop_delay' if it wants a delay between loops.","$ref":"#/definitions/C"},"sound_effects":{"title":"Sound Effect","description":"TODO","type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"$ref":"#/definitions/E_SoundEffect"}},"timeline":{"title":"Timeline","description":"The time line","type":"object","propertyNames":{"pattern":"^(\\d+.\\d+|\\d+)$"},"additionalProperties":{"oneOf":[{"type":"string","title":"Molang","description":"Variable definition","pattern":"^(v|variable)\\..*=.*;$"},{"type":"array","title":"Collection Timelime Items","items":{"type":"string","title":"Molang","description":"Variable definition","pattern":"^(v|variable)\\..*=.*;$"}}]}}}}}}}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.actor_animation","examples":[{"format_version":"1.8.0","animations":{"animation.annie.idle":{"loop":true,"animation_length":2.12,"bones":{}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/E"}},{"properties":{"format_version":{"$ref":"#/definitions/F"}}}],"definitions":{"A_ParticleEffect":{"type":"object","title":"Particle Effect","additionalProperties":false,"required":["effect"],"properties":{"effect":{"type":"string","title":"Particle Id","description":"The name of a particle effect that should be played"},"locator":{"type":"string","title":"Locator","description":"The name of a locator on the actor where the effect should be located"},"pre_effect_script":{"title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized","$ref":"#/definitions/B"},"bind_to_actor":{"type":"boolean","title":"Bind To Actor","description":"Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."}}},"A_PositionV3":{"title":"Position Array","description":"An array of 3 items that describe the bones position","type":"array","items":[{"title":"Position X","description":"The position over the X-axis or forwards/backwards.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Y","description":"The position over the Y-axis, or up/down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Z","description":"The position over the Z-axis, or left/right.\nCan be molang or a float","$ref":"#/definitions/C"}]},"A_RotationV3":{"title":"Rotation Array","description":"An array of 3 items that describe the bones rotation","type":"array","items":[{"title":"Rotation X","description":"The rotation over the X-axis, or up or down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Rotation Y","description":"The rotation over the Y-axis, or yaw.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Rotation Z","description":"The rotation over the Z-axis, or roll.\nCan be molang or a float","$ref":"#/definitions/C"}]},"A_ScaleV3":{"title":"Scale Array","description":"An array of 3 items that describe the bones position","type":"array","items":[{"title":"Position X","description":"The position over the X-axis or forwards/backwards.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Y","description":"The position over the Y-axis, or up/down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Z","description":"The position over the Z-axis, or left/right.\nCan be molang or a float","$ref":"#/definitions/C"}]},"A_SoundEffect":{"title":"Sound Effect","type":"object","additionalProperties":false,"properties":{"effect":{"title":"Effect","type":"string","description":"Valid sound effect names should be listed in the entity's resource_definition json file."}}},"B":{"type":"string","title":"Molang / String","description":"Molang definition","format":"molang"},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"D":{"title":"Molang Array Of 3 Numbers","description":"The minecraft molang definition that results in a 3 floats","anyOf":[{"type":"string","minLength":0,"format":"molang"}]},"A":{"additionalProperties":false,"type":"object","title":"Resourcepack Actor Animation 1.8.0","description":"TODO description","required":["format_version","animations"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","const":"1.8.0","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animations":{"title":"Animations Schema","description":"The animation 1.8.0 specification","propertyNames":{"pattern":"^animation\\.[a-z\\.]+"},"type":"object","additionalProperties":{"additionalProperties":false,"type":"object","title":"Animation 1.8.0","description":"The animation specification for 1.8.0","properties":{"anim_time_update":{"title":"Anim Time Update","description":"How does time pass when playing the animation. Defaults to \"query.anim_time + query.delta_time\" which means advance in seconds.","$ref":"#/definitions/C"},"animation_length":{"title":"Animation Length","description":"Override calculated value (set as the last keyframe time) and set animation length in seconds.","type":"number"},"blend_weight":{"title":"Blend Weight","description":"TODO","$ref":"#/definitions/C"},"bones":{"title":"Bones","minProperties":1,"description":"Defines how the bones in an animation move or transform","type":"object","additionalProperties":{"title":"Bone Transformation","description":"The bone definition that declare how it transforms during animation","type":"object","additionalProperties":false,"properties":{"position":{"title":"Position","description":"The Position transformation during this animation","oneOf":[{"$ref":"#/definitions/A_PositionV3"},{"$ref":"#/definitions/D"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_PositionV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_PositionV3"}}}}]},"rotation":{"title":"Rotation","description":"The rotation transformation during this animation","oneOf":[{"$ref":"#/definitions/A_RotationV3"},{"$ref":"#/definitions/D"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_RotationV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_RotationV3"}}}}]},"relative_to":{"title":"Relative To","description":"If set, makes the bone rotation relative to the entity instead of the bone's parent","properties":{"rotation":{"title":"Rotation","description":"If set, makes the bone rotation relative to the entity instead of the bone's parent","type":"string"}}},"scale":{"title":"Scale","description":"TODO","oneOf":[{"$ref":"#/definitions/C"},{"$ref":"#/definitions/A_ScaleV3"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_ScaleV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/A_ScaleV3"}}}}]}}}},"loop":{"title":"Loop","description":"Should this animation stop, loop, or stay on the last frame when finished (true, false, hold_on_last_frame)","oneOf":[{"type":"boolean"},{"type":"string","enum":["hold_on_last_frame"]}]},"loop_delay":{"title":"Loop Delay","description":"How long to wait in seconds before looping this animation. Note that this expression is evaluated after each loop and on looping animation only.","$ref":"#/definitions/C"},"override_previous_animation":{"title":"Override Previous Animation","description":"Reset bones in this animation to the default pose before applying this animation.","type":"boolean"},"particle_effects":{"title":"Particle Effects","description":"TODO","oneOf":[{"$ref":"#/definitions/A_ParticleEffect"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$","examples":["0.0"]},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","oneOf":[{"type":"object","$ref":"#/definitions/A_ParticleEffect"},{"type":"array","items":{"$ref":"#/definitions/A_ParticleEffect"}}]}}]},"start_delay":{"title":"Start Delay","description":"How long to wait in seconds before playing this animation. Note that this expression is evaluated once before playing, and only re-evaluated if asked to play from the beginning again. A looping animation should use 'loop_delay' if it wants a delay between loops.","$ref":"#/definitions/C"},"sound_effects":{"title":"Sound Effect","description":"TODO","type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"$ref":"#/definitions/A_SoundEffect"}},"timeline":{"title":"Timeline","description":"The time line","type":"object","propertyNames":{"pattern":"^(\\d+.\\d+|\\d+)$"},"additionalProperties":{"oneOf":[{"type":"string","title":"Molang","description":"Variable definition","pattern":"^(v|variable)\\..*=.*;$"},{"type":"array","title":"Collection Timelime Items","items":{"type":"string","title":"Molang","description":"Variable definition","pattern":"^(v|variable)\\..*=.*;$"}}]}}}}}}},"E_ParticleEffect":{"type":"object","title":"Particle Effect","additionalProperties":false,"required":["effect"],"properties":{"effect":{"type":"string","title":"Particle Id","description":"The name of a particle effect that should be played"},"locator":{"type":"string","title":"Locator","description":"The name of a locator on the actor where the effect should be located"},"pre_effect_script":{"title":"Pre Effect Script","description":"A molang script that will be run when the particle emitter is initialized","$ref":"#/definitions/B"},"bind_to_actor":{"type":"boolean","title":"Bind To Actor","description":"Set to false to have the effect spawned in the world without being bound to an actor (by default an effect is bound to the actor)."}}},"E_PositionV3":{"title":"Position Array","description":"An array of 3 items that describe the bones position","type":"array","items":[{"title":"Position X","description":"The position over the X-axis or forwards/backwards.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Y","description":"The position over the Y-axis, or up/down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Z","description":"The position over the Z-axis, or left/right.\nCan be molang or a float","$ref":"#/definitions/C"}]},"E_RotationV3":{"title":"Rotation Array","description":"An array of 3 items that describe the bones rotation","type":"array","items":[{"title":"Rotation X","description":"The rotation over the X-axis, or up or down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Rotation Y","description":"The rotation over the Y-axis, or yaw.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Rotation Z","description":"The rotation over the Z-axis, or roll.\nCan be molang or a float","$ref":"#/definitions/C"}]},"E_ScaleV3":{"title":"Scale Array","description":"An array of 3 items that describe the bones position","type":"array","items":[{"title":"Position X","description":"The position over the X-axis or forwards/backwards.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Y","description":"The position over the Y-axis, or up/down.\nCan be molang or a float","$ref":"#/definitions/C"},{"title":"Position Z","description":"The position over the Z-axis, or left/right.\nCan be molang or a float","$ref":"#/definitions/C"}]},"E_SoundEffect":{"title":"Sound Effect","type":"object","additionalProperties":false,"properties":{"effect":{"title":"Effect","type":"string","description":"Valid sound effect names should be listed in the entity's resource_definition json file."}}},"E":{"additionalProperties":false,"type":"object","title":"Resourcepack Actor Animation 1.10.0","description":"TODO description","required":["format_version","animations"],"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","const":"1.10.0","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"animations":{"title":"Animations Schema","description":"The animation 1.10.0 specification","propertyNames":{"pattern":"^animation\\.[a-z\\.]+"},"type":"object","additionalProperties":{"additionalProperties":false,"type":"object","title":"Animation 1.8.0","description":"The animation specification for 1.8.0","properties":{"anim_time_update":{"title":"Start Delay","description":"How does time pass when playing the animation. Defaults to \"query.anim_time + query.delta_time\" which means advance in seconds.","$ref":"#/definitions/C"},"animation_length":{"title":"Animation Length","description":"Override calculated value (set as the last keyframe time) and set animation length in seconds.","type":"number"},"blend_weight":{"title":"Blend Weight","description":"TODO","$ref":"#/definitions/C"},"bones":{"title":"Bones","description":"Defines how the bones in an animation move or transform","type":"object","minProperties":1,"additionalProperties":{"title":"Bone Transformation","description":"The bone definition that declare how it transforms during animation","type":"object","additionalProperties":false,"properties":{"position":{"title":"Position","description":"The Position transformation during this animation","oneOf":[{"$ref":"#/definitions/E_PositionV3"},{"$ref":"#/definitions/D"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_PositionV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_PositionV3"}}}}]},"rotation":{"title":"Rotation","description":"The rotation transformation during this animation","oneOf":[{"$ref":"#/definitions/E_RotationV3"},{"$ref":"#/definitions/D"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_RotationV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_RotationV3"}}}}]},"relative_to":{"title":"Relative To","description":"If set, makes the bone rotation relative to the entity instead of the bone's parent","properties":{"rotation":{"title":"Rotation","description":"If set, makes the bone rotation relative to the entity instead of the bone's parent","type":"string"}}},"scale":{"title":"Scale","description":"TODO","oneOf":[{"$ref":"#/definitions/C"},{"$ref":"#/definitions/E_ScaleV3"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","additionalProperties":false,"properties":{"lerp_mode":{"type":"string","title":"Lerp Mode","description":"TODO","enum":["linear","catmullrom"]},"pre":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_ScaleV3"},"post":{"title":"Pre","description":"TODO","$ref":"#/definitions/E_ScaleV3"}}}}]}}}},"loop":{"title":"Loop","description":"Should this animation stop, loop, or stay on the last frame when finished (true, false, hold_on_last_frame)","oneOf":[{"type":"boolean"},{"type":"string","enum":["hold_on_last_frame"]}]},"loop_delay":{"title":"Loop Delay","description":"How long to wait in seconds before looping this animation. Note that this expression is evaluated after each loop and on looping animation only.","$ref":"#/definitions/C"},"override_previous_animation":{"title":"Override Previous Animation","description":"Reset bones in this animation to the default pose before applying this animation.","type":"boolean"},"particle_effects":{"title":"Particle Effects","description":"TODO","oneOf":[{"$ref":"#/definitions/E_ParticleEffect"},{"type":"object","propertyNames":{"pattern":"^[\\d.]+$","examples":["0.0"]},"additionalProperties":{"title":"Timeline Object","description":"A single point in time","oneOf":[{"type":"object","$ref":"#/definitions/E_ParticleEffect"},{"type":"array","items":{"$ref":"#/definitions/E_ParticleEffect"}}]}}]},"start_delay":{"title":"Start Delay","description":"How long to wait in seconds before playing this animation. Note that this expression is evaluated once before playing, and only re-evaluated if asked to play from the beginning again. A looping animation should use 'loop_delay' if it wants a delay between loops.","$ref":"#/definitions/C"},"sound_effects":{"title":"Sound Effect","description":"TODO","type":"object","propertyNames":{"pattern":"^[\\d.]+$"},"additionalProperties":{"$ref":"#/definitions/E_SoundEffect"}},"timeline":{"title":"Timeline","description":"The time line","type":"object","propertyNames":{"pattern":"^(\\d+.\\d+|\\d+)$"},"additionalProperties":{"oneOf":[{"type":"string","title":"Molang","description":"Variable definition","pattern":"^(v|variable)\\..*=.*;$"},{"type":"array","title":"Collection Timelime Items","items":{"type":"string","title":"Molang","description":"Variable definition","pattern":"^(v|variable)\\..*=.*;$"}}]}}}}}}},"F":{"title":"Format version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^[0-9,.]+?$","type":"string"}}} \ No newline at end of file diff --git a/resource/attachables/attachables.json b/resource/attachables/attachables.json index 367e4d0f..6e5151e5 100644 --- a/resource/attachables/attachables.json +++ b/resource/attachables/attachables.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.attachables","examples":[{"format_version":"1.10.0","minecraft:attachable":{"description":{"identifier":"minecraft:item","materials":{"default":"entity_alphatest","enchanted":"entity_alphatest_glint"},"textures":{"default":"textures/items/item"},"geometry":{"default":"geometry.item"},"scripts":{},"render_controllers":["controller.render.item"]}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/D"}}],"definitions":{"B":{"type":"string","title":"Item Identifier 1.8.0","description":"The minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$"},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"A":{"type":"object","title":"Resourcepack Actor Animation 1.8.0","description":"TODO description","required":["format_version","minecraft:attachable"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:attachable":{"type":"object","title":"Attachables","description":"The attachables definition for 1.8.0","required":["description"],"properties":{"description":{"additionalProperties":false,"title":"Description","description":"TODO description: description","type":"object","required":["identifier","geometry"],"properties":{"animations":{"description":"The connecting of animations in animations controllers with the actuall animations, names should corosponds","title":"Animations Schema","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"animation_controllers":{"type":"array","minItems":1,"description":"TODO description: animation controllers","title":"Animation Controllers","items":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: animation controllers","title":"Animation Controllers"}},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: geometry"},"identifier":{"type":"string","description":"TODO description: identifier","title":"Identifier","$ref":"#/definitions/B"},"item":{"type":"object","title":"Item","description":"TODO","additionalProperties":{"type":"string","title":"TODO","description":"TODO"}},"materials":{"type":"object","description":"TODO description: materials","title":"Materials","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"TODO description: min engine version","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle effects","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle emitters","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"TODO description: render controllers","title":"Render Controllers","minItems":1,"items":{"type":"string","description":"TODO description: render controllers","title":"Render Controllers"}},"sound_effects":{"type":"array","description":"TODO description: sound effects","title":"Sound Effects","minItems":1,"items":{"type":"string","description":"TODO description: sound effects","title":"Sound Effects"}},"spawn_egg":{"type":"object","description":"TODO description: spawn egg","title":"Spawn Egg","dependencies":{"texture":["texture_index"],"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_colour"]},"properties":{"base_colour":{"type":"string","description":"TODO description: base colour","title":"Base Colour"},"overlay_color":{"type":"string","description":"TODO description: overlay color","title":"Overlay Color"},"texture":{"type":"string","description":"TODO description: texture","title":"Texture"},"texture_index":{"type":"integer","description":"TODO description: texture index","title":"Texture Index"}}},"scripts":{"type":"object","properties":{"pre_animation":{"type":"array","items":{"pattern":";$","$ref":"#/definitions/C","description":"TODO description: pre aninamtion","title":"Pre Animation"},"description":"TODO description: pre aninamtion","title":"Pre Animation"},"scale":{"type":"string","description":"TODO description: scale","title":"Scale"},"animate":{"type":"array","title":"Animate Schema","items":{"oneOf":[{"type":"string","description":"TODO description: oneOf[0]","title":"TODO Title"},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: oneOf[1]","title":"TODO Title"}],"description":"TODO description: animate","title":"Animate"},"description":"TODO description: animate"},"parent_setup":{"$ref":"#/definitions/C"}},"description":"TODO description: scripts","title":"Scripts"},"textures":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: textures","title":"Textures"}}}},"additionalProperties":false}},"additionalProperties":false},"D":{"type":"object","title":"Resourcepack Actor Animation 1.10.0","description":"TODO description","required":["format_version","minecraft:attachable"],"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^(1.10.0|1.10)$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:attachable":{"type":"object","title":"Attachables","description":"The attachables definition","required":["description"],"properties":{"description":{"title":"Description","type":"object","required":["identifier"],"additionalProperties":false,"properties":{"animations":{"type":"object","additionalProperties":{"type":"string","description":"A single animation reference","title":"Animation"},"description":"The collection of animations references","title":"Animations"},"animation_controllers":{"type":"array","additionalProperties":{"type":"object","additionalProperties":{"type":"string","description":"A single Animation controller reference","title":"Animation Controller Reference"},"description":"A collection of animation controller references","title":"TODO"},"description":"The specification of animation controllers","title":"Animation Controllers"},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","type":"object","propertyNames":{"pattern":"[a-zA-Z0-9_\\.\\-]+"},"minProperties":1,"additionalProperties":{"type":"string","description":"A single geometry reference","title":"Geometry"},"description":"The geometry specification"},"identifier":{"type":"string","description":"TODO description: identifier","title":"Identifier","$ref":"#/definitions/B"},"item":{"type":"object","title":"Item","description":"TODO","additionalProperties":{"type":"string","title":"TODO","description":"TODO"}},"materials":{"type":"object","additionalProperties":{"type":"string","description":"A single material reference","title":"Material"},"description":"A collection of material references","title":"Materials"},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"The minimum engine needed to use this","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"A single particle effect reference","title":"Particle Effect"},"description":"A collection of particle effect references","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle emitters","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"TODO description: render controllers","title":"Render Controllers","minItems":1,"items":{"type":"string","description":"TODO description: render controllers","title":"Render Controllers"}},"scripts":{"additionalProperties":false,"type":"object","description":"TODO description: scripts","title":"Scripts","properties":{"animate":{"type":"array","title":"Animate Schema","minItems":1,"items":{"oneOf":[{"type":"string","description":"TODO description: oneOf[0]","title":"TODO Title"},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: oneOf[1]","title":"TODO Title"}],"description":"TODO description: animate","title":"Animate"},"description":"TODO description: animate"},"initialize":{"type":"array","description":"TODO description: initialize","title":"Initialize","items":{"pattern":";$","$ref":"#/definitions/C","description":"TODO description: initialize","title":"Initialize"}},"pre_animation":{"type":"array","description":"TODO description: pre aninamtion","title":"Pre Animation","items":{"pattern":";$","$ref":"#/definitions/C","description":"TODO description: pre aninamtion","title":"Pre Animation"}},"parent_setup":{"type":"string","description":"TODO description: parent setup","title":"Parent Setup","$ref":"#/definitions/C"},"scale":{"type":"string","description":"TODO description: scale","title":"Scale","$ref":"#/definitions/C"}}},"sound_effects":{"type":"array","description":"TODO description: sound effects","title":"Sound Effects","minItems":1,"items":{"type":"string","description":"TODO description: sound effects","title":"Sound Effects"}},"spawn_egg":{"type":"object","description":"TODO description: spawn egg","title":"Spawn Egg","dependencies":{"texture":["texture_index"],"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_colour"]},"properties":{"base_colour":{"type":"string","description":"TODO description: base colour","title":"Base Colour"},"overlay_color":{"type":"string","description":"TODO description: overlay color","title":"Overlay Color"},"texture":{"type":"string","description":"TODO description: texture","title":"Texture"},"texture_index":{"type":"integer","description":"TODO description: texture index","title":"Texture Index"}}},"textures":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: textures","title":"Textures"}},"description":"TODO description: description"}},"additionalProperties":false}},"additionalProperties":false}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.attachables","examples":[{"format_version":"1.10.0","minecraft:attachable":{"description":{"identifier":"minecraft:item","materials":{"default":"entity_alphatest","enchanted":"entity_alphatest_glint"},"textures":{"default":"textures/items/item"},"geometry":{"default":"geometry.item"},"scripts":{},"render_controllers":["controller.render.item"]}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10"}}},"then":{"$ref":"#/definitions/D"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/D"}},{"properties":{"format_version":{"$ref":"#/definitions/E"}}}],"definitions":{"B":{"type":"string","title":"Item Identifier 1.8.0","description":"The minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$"},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"A":{"type":"object","title":"Resourcepack Actor Animation 1.8.0","description":"TODO description","required":["format_version","minecraft:attachable"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:attachable":{"type":"object","title":"Attachables","description":"The attachables definition for 1.8.0","required":["description"],"properties":{"description":{"additionalProperties":false,"title":"Description","description":"TODO description: description","type":"object","required":["identifier","geometry"],"properties":{"animations":{"description":"The connecting of animations in animations controllers with the actuall animations, names should corosponds","title":"Animations Schema","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"animation_controllers":{"type":"array","minItems":1,"description":"TODO description: animation controllers","title":"Animation Controllers","items":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: animation controllers","title":"Animation Controllers"}},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: geometry"},"identifier":{"type":"string","description":"TODO description: identifier","title":"Identifier","$ref":"#/definitions/B"},"item":{"type":"object","title":"Item","description":"TODO","additionalProperties":{"type":"string","title":"TODO","description":"TODO"}},"materials":{"type":"object","description":"TODO description: materials","title":"Materials","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"TODO description: min engine version","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle effects","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle emitters","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"TODO description: render controllers","title":"Render Controllers","minItems":1,"items":{"type":"string","description":"TODO description: render controllers","title":"Render Controllers"}},"sound_effects":{"type":"array","description":"TODO description: sound effects","title":"Sound Effects","minItems":1,"items":{"type":"string","description":"TODO description: sound effects","title":"Sound Effects"}},"spawn_egg":{"type":"object","description":"TODO description: spawn egg","title":"Spawn Egg","dependencies":{"texture":["texture_index"],"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_colour"]},"properties":{"base_colour":{"type":"string","description":"TODO description: base colour","title":"Base Colour"},"overlay_color":{"type":"string","description":"TODO description: overlay color","title":"Overlay Color"},"texture":{"type":"string","description":"TODO description: texture","title":"Texture"},"texture_index":{"type":"integer","description":"TODO description: texture index","title":"Texture Index"}}},"scripts":{"type":"object","properties":{"pre_animation":{"type":"array","items":{"pattern":";$","$ref":"#/definitions/C","description":"TODO description: pre aninamtion","title":"Pre Animation"},"description":"TODO description: pre aninamtion","title":"Pre Animation"},"scale":{"type":"string","description":"TODO description: scale","title":"Scale"},"animate":{"type":"array","title":"Animate Schema","items":{"oneOf":[{"type":"string","description":"TODO description: oneOf[0]","title":"TODO Title"},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: oneOf[1]","title":"TODO Title"}],"description":"TODO description: animate","title":"Animate"},"description":"TODO description: animate"},"parent_setup":{"$ref":"#/definitions/C"}},"description":"TODO description: scripts","title":"Scripts"},"textures":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: textures","title":"Textures"}}}},"additionalProperties":false}},"additionalProperties":false},"D":{"type":"object","title":"Resourcepack Actor Animation 1.10.0","description":"TODO description","required":["format_version","minecraft:attachable"],"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^(1.10.0|1.10)$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:attachable":{"type":"object","title":"Attachables","description":"The attachables definition","required":["description"],"properties":{"description":{"title":"Description","type":"object","required":["identifier"],"additionalProperties":false,"properties":{"animations":{"type":"object","additionalProperties":{"type":"string","description":"A single animation reference","title":"Animation"},"description":"The collection of animations references","title":"Animations"},"animation_controllers":{"type":"array","additionalProperties":{"type":"object","additionalProperties":{"type":"string","description":"A single Animation controller reference","title":"Animation Controller Reference"},"description":"A collection of animation controller references","title":"TODO"},"description":"The specification of animation controllers","title":"Animation Controllers"},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","type":"object","propertyNames":{"pattern":"[a-zA-Z0-9_\\.\\-]+"},"minProperties":1,"additionalProperties":{"type":"string","description":"A single geometry reference","title":"Geometry"},"description":"The geometry specification"},"identifier":{"type":"string","description":"TODO description: identifier","title":"Identifier","$ref":"#/definitions/B"},"item":{"type":"object","title":"Item","description":"TODO","additionalProperties":{"type":"string","title":"TODO","description":"TODO"}},"materials":{"type":"object","additionalProperties":{"type":"string","description":"A single material reference","title":"Material"},"description":"A collection of material references","title":"Materials"},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"The minimum engine needed to use this","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"A single particle effect reference","title":"Particle Effect"},"description":"A collection of particle effect references","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle emitters","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"TODO description: render controllers","title":"Render Controllers","minItems":1,"items":{"type":"string","description":"TODO description: render controllers","title":"Render Controllers"}},"scripts":{"additionalProperties":false,"type":"object","description":"TODO description: scripts","title":"Scripts","properties":{"animate":{"type":"array","title":"Animate Schema","minItems":1,"items":{"oneOf":[{"type":"string","description":"TODO description: oneOf[0]","title":"TODO Title"},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: oneOf[1]","title":"TODO Title"}],"description":"TODO description: animate","title":"Animate"},"description":"TODO description: animate"},"initialize":{"type":"array","description":"TODO description: initialize","title":"Initialize","items":{"pattern":";$","$ref":"#/definitions/C","description":"TODO description: initialize","title":"Initialize"}},"pre_animation":{"type":"array","description":"TODO description: pre aninamtion","title":"Pre Animation","items":{"pattern":";$","$ref":"#/definitions/C","description":"TODO description: pre aninamtion","title":"Pre Animation"}},"parent_setup":{"type":"string","description":"TODO description: parent setup","title":"Parent Setup","$ref":"#/definitions/C"},"scale":{"type":"string","description":"TODO description: scale","title":"Scale","$ref":"#/definitions/C"}}},"sound_effects":{"type":"array","description":"TODO description: sound effects","title":"Sound Effects","minItems":1,"items":{"type":"string","description":"TODO description: sound effects","title":"Sound Effects"}},"spawn_egg":{"type":"object","description":"TODO description: spawn egg","title":"Spawn Egg","dependencies":{"texture":["texture_index"],"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_colour"]},"properties":{"base_colour":{"type":"string","description":"TODO description: base colour","title":"Base Colour"},"overlay_color":{"type":"string","description":"TODO description: overlay color","title":"Overlay Color"},"texture":{"type":"string","description":"TODO description: texture","title":"Texture"},"texture_index":{"type":"integer","description":"TODO description: texture index","title":"Texture Index"}}},"textures":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: textures","title":"Textures"}},"description":"TODO description: description"}},"additionalProperties":false}},"additionalProperties":false},"E":{"title":"Format version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^[0-9,.]+?$","type":"string"}}} \ No newline at end of file diff --git a/resource/entity/entity.json b/resource/entity/entity.json index afc63bc3..ac2ae0d1 100644 --- a/resource/entity/entity.json +++ b/resource/entity/entity.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.entity","examples":[{"format_version":"1.10.0","minecraft:client_entity":{"description":{"identifier":"minecraft:entity","materials":{"default":"entity_custom"},"textures":{"default":"textures/entity/custom/entity"},"geometry":{"default":"geometry.entity"},"animations":{},"particle_effects":{},"scripts":{},"render_controllers":["controller.render.entity"],"spawn_egg":{"base_color":"#288483","overlay_color":"#2B7135"}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/D"}}],"definitions":{"B":{"type":"string","title":"Entity Identifier 1.8.0","description":"The minecraft entity identifier","examples":["namespace:entity_name"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$"},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"A":{"type":"object","title":"Resourcepack Actor Animation 1.8.0","description":"TODO description","additionalProperties":false,"required":["format_version","minecraft:client_entity"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:client_entity":{"type":"object","additionalProperties":false,"title":"Client Entity","description":"The definition of an entity's models, materials, textures, and animations","properties":{"description":{"additionalProperties":false,"title":"Description","description":"TODO description: description","type":"object","required":["identifier"],"properties":{"animations":{"description":"The connecting of animations in animations controllers with the actuall animations, names should corosponds","title":"Animations Schema","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"animation_controllers":{"type":"array","minItems":1,"description":"TODO description: animation controllers","title":"Animation Controllers","items":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: animation controllers","title":"Animation Controllers"}},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: geometry"},"identifier":{"type":"string","description":"TODO description: identifier","title":"Identifier","$ref":"#/definitions/B"},"materials":{"type":"object","description":"TODO description: materials","title":"Materials","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"TODO description: min engine version","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle effects","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle emitters","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"TODO description: render controllers","title":"Render Controllers","minItems":1,"items":{"type":"string","description":"TODO description: render controllers","title":"Render Controllers"}},"sound_effects":{"title":"Sound Effects","description":"TODO description: sound effects","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"spawn_egg":{"additionalProperties":false,"type":"object","description":"TODO description: spawn egg","title":"Spawn Egg","dependencies":{"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_color"]},"properties":{"base_color":{"type":"string","description":"TODO description: base color","title":"Base Color","format":"color-hex"},"overlay_color":{"type":"string","description":"TODO description: overlay color","title":"Overlay Color","format":"color-hex"},"texture":{"type":"string","description":"TODO description: texture","title":"Texture"},"texture_index":{"type":"integer","description":"TODO description: texture index","title":"Texture Index"}}},"scripts":{"additionalProperties":false,"type":"object","description":"TODO description: scripts","title":"Scripts","properties":{"pre_animation":{"type":"array","description":"TODO description: pre aninamtion","title":"Pre Animation","items":{"pattern":";$","$ref":"#/definitions/C","description":"TODO description: pre aninamtion","title":"Pre Animation"}},"parent_setup":{"$ref":"#/definitions/C"},"scale":{"type":"string","description":"TODO description: scale","title":"Scale"},"scalex":{"$ref":"#/definitions/C","title":"Scale X"},"scaley":{"$ref":"#/definitions/C","title":"Scale Y"},"scalez":{"$ref":"#/definitions/C","title":"Scale Z"}}},"textures":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: textures","title":"Textures"}}}}}}},"E":{"type":"string","title":"Item Identifier 1.8.0","description":"The minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$"},"F":{"type":"string","title":"Molang / String","description":"Molang definition","format":"molang"},"D":{"type":"object","title":"Resourcepack Actor Animation 1.10.0","description":"TODO description","required":["format_version","minecraft:client_entity"],"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^1.10.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:client_entity":{"type":"object","title":"Client Entity","description":"The client entity definition","required":["description"],"properties":{"description":{"title":"Description","type":"object","required":["identifier"],"additionalProperties":false,"properties":{"animations":{"description":"The collection of animations and animations controllers","title":"Animations","type":"object","additionalProperties":{"type":"string","description":"A reference to an animation or animation controller","title":"Animation Reference","examples":[{"basic":"controller.generic.basic"}]}},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","description":"The reference to defined geometries in '/models/'","type":"object","propertyNames":{"pattern":"[a-zA-Z0-9_\\.\\-]+"},"minProperties":1,"additionalProperties":{"type":"string","description":"The reference to the geometry","title":"Geometry Reference"}},"identifier":{"type":"string","description":"TODO description: identifier","title":"Identifier","$ref":"#/definitions/E"},"materials":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: materials","title":"Materials"},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"TODO description: min engine version","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle effects","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle emitters","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"TODO description: render controllers","title":"Render Controllers","minItems":1,"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"string","description":"A render controller","title":"Render Controller"}}]}},"scripts":{"additionalProperties":false,"type":"object","description":"TODO description: scripts","title":"Scripts","properties":{"animate":{"type":"array","title":"Animate Schema","minItems":1,"items":{"oneOf":[{"type":"string","description":"TODO description: oneOf[0]","title":"TODO Title"},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: oneOf[1]","title":"TODO Title"}],"description":"TODO description: animate","title":"Animate"},"description":"TODO description: animate"},"initialize":{"type":"array","description":"TODO description: initialize","title":"Initialize","items":{"pattern":";$","$ref":"#/definitions/F","description":"TODO description: initialize","title":"Initialize"}},"pre_animation":{"type":"array","description":"TODO description: pre aninamtion","title":"Pre Animation","items":{"pattern":";$","$ref":"#/definitions/F","description":"TODO description: pre aninamtion","title":"Pre Animation"}},"parent_setup":{"type":"string","description":"TODO description: parent setup","title":"Parent Setup","$ref":"#/definitions/C"},"scale":{"type":"string","description":"TODO description: scale","title":"Scale","$ref":"#/definitions/C"},"scalex":{"$ref":"#/definitions/C","title":"Scale X"},"scaley":{"$ref":"#/definitions/C","title":"Scale Y"},"scalez":{"$ref":"#/definitions/C","title":"Scale Z"},"should_update_bones_and_effects_offscreen":{"title":"Should Update Bones And Effects Offscreen","description":"Bones and effects will still be updated if the entity is off screen if this expression returns anything other than 0.0.","$ref":"#/definitions/F"},"should_update_effects_offscreen":{"title":"Should Update Effects Offscreen","description":"Effects will still be updated if the entity is off screen if this expression or `should_update_bones_and_effects_offscreen` returns anything other than 0.0.","$ref":"#/definitions/F"},"variables":{"title":"Variables","description":" A list of variables that need certain settings applied to them. Currently, for the client, only \"public\" is supported.","type":"object","minProperties":1,"propertyNames":{"pattern":"variable.[a-zA-Z_][a-zA-Z0-9_]*"},"additionalProperties":{"title":"Variable","description":" If a variable is public, it can be read by other mobs. See the molang `->` operator for details.","type":"string","enum":["public"]}}}},"sound_effects":{"title":"Sound Effects","description":"TODO description: sound effects","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"Sound Effect"}},"spawn_egg":{"additionalProperties":false,"type":"object","description":"TODO description: spawn egg","title":"Spawn Egg","dependencies":{"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_color"]},"properties":{"base_color":{"type":"string","description":"TODO description: base color","title":"Base Color","format":"color-hex"},"overlay_color":{"type":"string","description":"TODO description: overlay color","title":"Overlay Color","format":"color-hex"},"texture":{"type":"string","description":"TODO description: texture","title":"Texture"},"texture_index":{"type":"integer","description":"TODO description: texture index","title":"Texture Index"}}},"textures":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: textures","title":"Textures"}},"description":"TODO description: description"}},"additionalProperties":false}},"additionalProperties":false}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.entity","examples":[{"format_version":"1.10.0","minecraft:client_entity":{"description":{"identifier":"minecraft:entity","materials":{"default":"entity_custom"},"textures":{"default":"textures/entity/custom/entity"},"geometry":{"default":"geometry.entity"},"animations":{},"particle_effects":{},"scripts":{},"render_controllers":["controller.render.entity"],"spawn_egg":{"base_color":"#288483","overlay_color":"#2B7135"}}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.8.0"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/D"}},{"properties":{"format_version":{"$ref":"#/definitions/G"}}}],"definitions":{"B":{"type":"string","title":"Entity Identifier 1.8.0","description":"The minecraft entity identifier","examples":["namespace:entity_name"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$"},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float","anyOf":[{"type":"string","minLength":0,"format":"molang"},{"type":"number"}]},"A":{"type":"object","title":"Resourcepack Actor Animation 1.8.0","description":"TODO description","additionalProperties":false,"required":["format_version","minecraft:client_entity"],"properties":{"format_version":{"title":"1.8.0 Format Version","type":"string","pattern":"^1.8.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:client_entity":{"type":"object","additionalProperties":false,"title":"Client Entity","description":"The definition of an entity's models, materials, textures, and animations","properties":{"description":{"additionalProperties":false,"title":"Description","description":"TODO description: description","type":"object","required":["identifier"],"properties":{"animations":{"description":"The connecting of animations in animations controllers with the actuall animations, names should corosponds","title":"Animations Schema","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"animation_controllers":{"type":"array","minItems":1,"description":"TODO description: animation controllers","title":"Animation Controllers","items":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: animation controllers","title":"Animation Controllers"}},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: geometry"},"identifier":{"type":"string","description":"TODO description: identifier","title":"Identifier","$ref":"#/definitions/B"},"materials":{"type":"object","description":"TODO description: materials","title":"Materials","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"TODO description: min engine version","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle effects","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle emitters","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"TODO description: render controllers","title":"Render Controllers","minItems":1,"items":{"type":"string","description":"TODO description: render controllers","title":"Render Controllers"}},"sound_effects":{"title":"Sound Effects","description":"TODO description: sound effects","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"}},"spawn_egg":{"additionalProperties":false,"type":"object","description":"TODO description: spawn egg","title":"Spawn Egg","dependencies":{"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_color"]},"properties":{"base_color":{"type":"string","description":"TODO description: base color","title":"Base Color","format":"color-hex"},"overlay_color":{"type":"string","description":"TODO description: overlay color","title":"Overlay Color","format":"color-hex"},"texture":{"type":"string","description":"TODO description: texture","title":"Texture"},"texture_index":{"type":"integer","description":"TODO description: texture index","title":"Texture Index"}}},"scripts":{"additionalProperties":false,"type":"object","description":"TODO description: scripts","title":"Scripts","properties":{"pre_animation":{"type":"array","description":"TODO description: pre aninamtion","title":"Pre Animation","items":{"pattern":";$","$ref":"#/definitions/C","description":"TODO description: pre aninamtion","title":"Pre Animation"}},"parent_setup":{"$ref":"#/definitions/C"},"scale":{"type":"string","description":"TODO description: scale","title":"Scale"},"scalex":{"$ref":"#/definitions/C","title":"Scale X"},"scaley":{"$ref":"#/definitions/C","title":"Scale Y"},"scalez":{"$ref":"#/definitions/C","title":"Scale Z"}}},"textures":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: textures","title":"Textures"}}}}}}},"E":{"type":"string","title":"Item Identifier 1.8.0","description":"The minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$"},"F":{"type":"string","title":"Molang / String","description":"Molang definition","format":"molang"},"D":{"type":"object","title":"Resourcepack Actor Animation 1.10.0","description":"TODO description","required":["format_version","minecraft:client_entity"],"properties":{"format_version":{"title":"1.10.0 Format Version","type":"string","pattern":"^1.10.0$","description":"A version that tells minecraft what type of data format can be expected when reading this file."},"minecraft:client_entity":{"type":"object","title":"Client Entity","description":"The client entity definition","required":["description"],"properties":{"description":{"title":"Description","type":"object","required":["identifier"],"additionalProperties":false,"properties":{"animations":{"description":"The collection of animations and animations controllers","title":"Animations","type":"object","additionalProperties":{"type":"string","description":"A reference to an animation or animation controller","title":"Animation Reference","examples":[{"basic":"controller.generic.basic"}]}},"enable_attachables":{"type":"boolean","description":"TODO description: enable attachables","title":"Enable Attachables"},"geometry":{"title":"Geometry","description":"The reference to defined geometries in '/models/'","type":"object","propertyNames":{"pattern":"[a-zA-Z0-9_\\.\\-]+"},"minProperties":1,"additionalProperties":{"type":"string","description":"The reference to the geometry","title":"Geometry Reference"}},"identifier":{"type":"string","description":"TODO description: identifier","title":"Identifier","$ref":"#/definitions/E"},"materials":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: materials","title":"Materials"},"min_engine_version":{"type":"string","pattern":"[0-9]+\\.[0-9]+\\.[0-9]+","description":"TODO description: min engine version","title":"Min Engine Version"},"particle_effects":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle effects","title":"Particle Effects"},"particle_emitters":{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: particle emitters","title":"Particle Emitters"},"render_controllers":{"type":"array","description":"TODO description: render controllers","title":"Render Controllers","minItems":1,"items":{"oneOf":[{"type":"string"},{"type":"object","additionalProperties":{"type":"string","description":"A render controller","title":"Render Controller"}}]}},"scripts":{"additionalProperties":false,"type":"object","description":"TODO description: scripts","title":"Scripts","properties":{"animate":{"type":"array","title":"Animate Schema","minItems":1,"items":{"oneOf":[{"type":"string","description":"TODO description: oneOf[0]","title":"TODO Title"},{"type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: oneOf[1]","title":"TODO Title"}],"description":"TODO description: animate","title":"Animate"},"description":"TODO description: animate"},"initialize":{"type":"array","description":"TODO description: initialize","title":"Initialize","items":{"pattern":";$","$ref":"#/definitions/F","description":"TODO description: initialize","title":"Initialize"}},"pre_animation":{"type":"array","description":"TODO description: pre aninamtion","title":"Pre Animation","items":{"pattern":";$","$ref":"#/definitions/F","description":"TODO description: pre aninamtion","title":"Pre Animation"}},"parent_setup":{"type":"string","description":"TODO description: parent setup","title":"Parent Setup","$ref":"#/definitions/C"},"scale":{"type":"string","description":"TODO description: scale","title":"Scale","$ref":"#/definitions/C"},"scalex":{"$ref":"#/definitions/C","title":"Scale X"},"scaley":{"$ref":"#/definitions/C","title":"Scale Y"},"scalez":{"$ref":"#/definitions/C","title":"Scale Z"},"should_update_bones_and_effects_offscreen":{"title":"Should Update Bones And Effects Offscreen","description":"Bones and effects will still be updated if the entity is off screen if this expression returns anything other than 0.0.","$ref":"#/definitions/F"},"should_update_effects_offscreen":{"title":"Should Update Effects Offscreen","description":"Effects will still be updated if the entity is off screen if this expression or `should_update_bones_and_effects_offscreen` returns anything other than 0.0.","$ref":"#/definitions/F"},"variables":{"title":"Variables","description":" A list of variables that need certain settings applied to them. Currently, for the client, only \"public\" is supported.","type":"object","minProperties":1,"propertyNames":{"pattern":"variable.[a-zA-Z_][a-zA-Z0-9_]*"},"additionalProperties":{"title":"Variable","description":" If a variable is public, it can be read by other mobs. See the molang `->` operator for details.","type":"string","enum":["public"]}}}},"sound_effects":{"title":"Sound Effects","description":"TODO description: sound effects","type":"object","minProperties":1,"additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"Sound Effect"}},"spawn_egg":{"additionalProperties":false,"type":"object","description":"TODO description: spawn egg","title":"Spawn Egg","dependencies":{"texture_index":["texture"],"base_colour":["overlay_color"],"overlay_color":["base_color"]},"properties":{"base_color":{"type":"string","description":"TODO description: base color","title":"Base Color","format":"color-hex"},"overlay_color":{"type":"string","description":"TODO description: overlay color","title":"Overlay Color","format":"color-hex"},"texture":{"type":"string","description":"TODO description: texture","title":"Texture"},"texture_index":{"type":"integer","description":"TODO description: texture index","title":"Texture Index"}}},"textures":{"type":"object","additionalProperties":{"type":"string","description":"TODO description: additionalProperties","title":"TODO"},"description":"TODO description: textures","title":"Textures"}},"description":"TODO description: description"}},"additionalProperties":false}},"additionalProperties":false},"G":{"title":"Format version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^[0-9,.]+?$","type":"string"}}} \ No newline at end of file diff --git a/resource/fog/fog.json b/resource/fog/fog.json index 755e783e..716af689 100644 --- a/resource/fog/fog.json +++ b/resource/fog/fog.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.fog","examples":[],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.16.100"}}},"then":{"$ref":"#/definitions/A"}}],"definitions":{"A_colorHexOrArray":{"examples":["#056bd1"],"oneOf":[{"type":"array","items":[{"type":"number","minimum":0,"maximum":1,"title":"Red"},{"type":"number","minimum":0,"maximum":1,"title":"Green"},{"type":"number","minimum":0,"maximum":1,"title":"Blue"}]},{"type":"string","format":"color-hex","pattern":"^\\#[0-9a-fA-F]{6}$"}]},"A_defaultFogSettings":{"type":"object","additionalProperties":false,"required":["fog_start","fog_end","fog_color","render_distance_type"],"examples":[{"fog_start":100,"fog_end":200,"fog_color":"#056bd1","render_distance_type":"render"}],"properties":{"fog_start":{"title":"Fog Start","description":"The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'.","type":"number","minimum":0},"fog_end":{"title":"Fog End","description":"The distance from the player that the fog will become fully opaque. 'fog_end' must be greater than or equal to 'fog_start'.","type":"number","minimum":0},"fog_color":{"title":"Fog Color","description":"The color that the fog will take on.","type":"string","format":"color-hex"},"render_distance_type":{"title":"Render Distance Type","description":"Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance.","type":"string","enum":["fixed","render"]}}},"A_volumeDensityObject":{"type":"object","additionalProperties":false,"required":["max_density"],"examples":[{"max_density":0.25},{"max_density":0.25,"max_density_height":128,"zero_density_height":20,"uniform":true}],"properties":{"max_density":{"title":"Max Density","description":"The maximum amount of opaqueness that the ground fog will take on. A value from [0.0, 1.0].","minimum":0,"maximum":1,"type":"number"},"max_density_height":{"title":"Max Density Height","description":"The height in blocks that the ground fog will become it's maximum density.","minimum":0,"maximum":128,"type":"number"},"zero_density_height":{"title":"Zero Density Height","description":"The height in blocks that the ground fog will be completely transparent and begin to appear. This value needs to be at least 1 higher than 'max_density_height'.","minimum":0,"maximum":128,"type":"number"},"uniform":{"title":"Uniform","description":"When set to true, the density will be uniform across all heights.","type":"boolean"}}},"A_volumeMediaObject":{"type":"object","additionalProperties":false,"properties":{"absorption":{"title":"Absorption","description":"Proportion of light that is absorbed (lost) per block.","$ref":"#/definitions/A_colorHexOrArray"},"scattering":{"title":"Scattering","description":"Proportion of light that is scattered per block.","$ref":"#/definitions/A_colorHexOrArray"}}},"B":{"type":"string","title":"Fog Identifier","description":"The minecraft fog identifier","pattern":"^[0-9a-zA-Z:_\\.\\-]+$"},"A":{"type":"object","additionalProperties":false,"title":"Fog","description":"TODO","properties":{"format_version":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","type":"string"},"minecraft:fog_settings":{"title":"Fog Settings","description":"The definition of a single fog","type":"object","additionalProperties":false,"properties":{"description":{"title":"Description","description":"The identifying description of this fog settings","type":"object","additionalProperties":false,"properties":{"identifier":{"type":"string","title":"Identifier","description":"The identifier for these fog settings. The identifier must include a namespace.","$ref":"#/definitions/B"}}},"distance":{"title":"Distance","description":"The distance fog settings for different camera locations.","type":"object","additionalProperties":false,"properties":{"air":{"title":"Air","description":"The fog settings when the camera is in the air.","$ref":"#/definitions/A_defaultFogSettings"},"weather":{"title":"Weather","description":" The fog settings for when the camera is in the air with active weather (rain, snow, etc..).","$ref":"#/definitions/A_defaultFogSettings"},"water":{"title":"Water","description":"The fog settings when the camera is in water.","$ref":"#/definitions/A_defaultFogSettings"},"lava":{"title":"Lava","description":"The fog settings when the camera is in lava.","$ref":"#/definitions/A_defaultFogSettings"},"lava_resistance":{"title":"Lava Resistance","description":"The fog settings when the camera is in lava and the player has the lava resistance effect active.","$ref":"#/definitions/A_defaultFogSettings"},"powder_snow":{"title":"Powder Snow","description":"The fog settings when the camera is inside a Powder Snow block.","$ref":"#/definitions/A_defaultFogSettings"}}},"volumetric":{"title":"Volumetric","description":"The volumetric fog settings.","type":"object","additionalProperties":false,"properties":{"density":{"title":"Density","description":"The density settings for different camera locations.","type":"object","additionalProperties":false,"properties":{"air":{"title":"Air","description":"Fog density values as light passes through air blocks.","$ref":"#/definitions/A_volumeDensityObject"},"water":{"title":"Water","description":"Fog density values as light passes through water blocks.","$ref":"#/definitions/A_volumeDensityObject"},"lava":{"title":"Lava","description":"Fog density values as light passes through lava blocks.","$ref":"#/definitions/A_volumeDensityObject"},"lava_resistance":{"title":"Lava Resistance","description":"Fog density values as light passes through lava blocks while the player has lava resistance.","$ref":"#/definitions/A_volumeDensityObject"}}},"media_coefficients":{"title":"Media Coefficients","description":"The coefficient settings for the volumetric fog in different blocks.","additionalProperties":false,"properties":{"air":{"title":"Air","description":"Fog coefficient values while light passes through air.","$ref":"#/definitions/A_volumeMediaObject"},"water":{"title":"Water","description":"Fog coefficient values while light passes through water.","$ref":"#/definitions/A_volumeMediaObject"},"cloud":{"title":"Cloud","description":"Fog coefficient values while light passes through clouds.","$ref":"#/definitions/A_volumeMediaObject"}}}}}}}}}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.fog","examples":[],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.16.100"}}},"then":{"$ref":"#/definitions/A"}},{"properties":{"format_version":{"$ref":"#/definitions/C"}}}],"definitions":{"A_colorHexOrArray":{"examples":["#056bd1"],"oneOf":[{"type":"array","items":[{"type":"number","minimum":0,"maximum":1,"title":"Red"},{"type":"number","minimum":0,"maximum":1,"title":"Green"},{"type":"number","minimum":0,"maximum":1,"title":"Blue"}]},{"type":"string","format":"color-hex","pattern":"^\\#[0-9a-fA-F]{6}$"}]},"A_defaultFogSettings":{"type":"object","additionalProperties":false,"required":["fog_start","fog_end","fog_color","render_distance_type"],"examples":[{"fog_start":100,"fog_end":200,"fog_color":"#056bd1","render_distance_type":"render"}],"properties":{"fog_start":{"title":"Fog Start","description":"The distance from the player that the fog will begin to appear. 'fog_start' must be less than or equal to 'fog_end'.","type":"number","minimum":0},"fog_end":{"title":"Fog End","description":"The distance from the player that the fog will become fully opaque. 'fog_end' must be greater than or equal to 'fog_start'.","type":"number","minimum":0},"fog_color":{"title":"Fog Color","description":"The color that the fog will take on.","type":"string","format":"color-hex"},"render_distance_type":{"title":"Render Distance Type","description":"Determines how distance value is used. Fixed distance is measured in blocks. Dynamic distance is multiplied by the current render distance.","type":"string","enum":["fixed","render"]}}},"A_volumeDensityObject":{"type":"object","additionalProperties":false,"required":["max_density"],"examples":[{"max_density":0.25},{"max_density":0.25,"max_density_height":128,"zero_density_height":20,"uniform":true}],"properties":{"max_density":{"title":"Max Density","description":"The maximum amount of opaqueness that the ground fog will take on. A value from [0.0, 1.0].","minimum":0,"maximum":1,"type":"number"},"max_density_height":{"title":"Max Density Height","description":"The height in blocks that the ground fog will become it's maximum density.","minimum":0,"maximum":128,"type":"number"},"zero_density_height":{"title":"Zero Density Height","description":"The height in blocks that the ground fog will be completely transparent and begin to appear. This value needs to be at least 1 higher than 'max_density_height'.","minimum":0,"maximum":128,"type":"number"},"uniform":{"title":"Uniform","description":"When set to true, the density will be uniform across all heights.","type":"boolean"}}},"A_volumeMediaObject":{"type":"object","additionalProperties":false,"properties":{"absorption":{"title":"Absorption","description":"Proportion of light that is absorbed (lost) per block.","$ref":"#/definitions/A_colorHexOrArray"},"scattering":{"title":"Scattering","description":"Proportion of light that is scattered per block.","$ref":"#/definitions/A_colorHexOrArray"}}},"B":{"type":"string","title":"Fog Identifier","description":"The minecraft fog identifier","pattern":"^[0-9a-zA-Z:_\\.\\-]+$"},"A":{"type":"object","additionalProperties":false,"title":"Fog","description":"TODO","properties":{"format_version":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","type":"string"},"minecraft:fog_settings":{"title":"Fog Settings","description":"The definition of a single fog","type":"object","additionalProperties":false,"properties":{"description":{"title":"Description","description":"The identifying description of this fog settings","type":"object","additionalProperties":false,"properties":{"identifier":{"type":"string","title":"Identifier","description":"The identifier for these fog settings. The identifier must include a namespace.","$ref":"#/definitions/B"}}},"distance":{"title":"Distance","description":"The distance fog settings for different camera locations.","type":"object","additionalProperties":false,"properties":{"air":{"title":"Air","description":"The fog settings when the camera is in the air.","$ref":"#/definitions/A_defaultFogSettings"},"weather":{"title":"Weather","description":" The fog settings for when the camera is in the air with active weather (rain, snow, etc..).","$ref":"#/definitions/A_defaultFogSettings"},"water":{"title":"Water","description":"The fog settings when the camera is in water.","$ref":"#/definitions/A_defaultFogSettings"},"lava":{"title":"Lava","description":"The fog settings when the camera is in lava.","$ref":"#/definitions/A_defaultFogSettings"},"lava_resistance":{"title":"Lava Resistance","description":"The fog settings when the camera is in lava and the player has the lava resistance effect active.","$ref":"#/definitions/A_defaultFogSettings"},"powder_snow":{"title":"Powder Snow","description":"The fog settings when the camera is inside a Powder Snow block.","$ref":"#/definitions/A_defaultFogSettings"}}},"volumetric":{"title":"Volumetric","description":"The volumetric fog settings.","type":"object","additionalProperties":false,"properties":{"density":{"title":"Density","description":"The density settings for different camera locations.","type":"object","additionalProperties":false,"properties":{"air":{"title":"Air","description":"Fog density values as light passes through air blocks.","$ref":"#/definitions/A_volumeDensityObject"},"water":{"title":"Water","description":"Fog density values as light passes through water blocks.","$ref":"#/definitions/A_volumeDensityObject"},"lava":{"title":"Lava","description":"Fog density values as light passes through lava blocks.","$ref":"#/definitions/A_volumeDensityObject"},"lava_resistance":{"title":"Lava Resistance","description":"Fog density values as light passes through lava blocks while the player has lava resistance.","$ref":"#/definitions/A_volumeDensityObject"}}},"media_coefficients":{"title":"Media Coefficients","description":"The coefficient settings for the volumetric fog in different blocks.","additionalProperties":false,"properties":{"air":{"title":"Air","description":"Fog coefficient values while light passes through air.","$ref":"#/definitions/A_volumeMediaObject"},"water":{"title":"Water","description":"Fog coefficient values while light passes through water.","$ref":"#/definitions/A_volumeMediaObject"},"cloud":{"title":"Cloud","description":"Fog coefficient values while light passes through clouds.","$ref":"#/definitions/A_volumeMediaObject"}}}}}}}}},"C":{"title":"Format version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^[0-9,.]+?$","type":"string"}}} \ No newline at end of file diff --git a/resource/items/items.json b/resource/items/items.json index 3a175a83..9bbd0bda 100644 --- a/resource/items/items.json +++ b/resource/items/items.json @@ -1 +1 @@ -{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.items","examples":[{"format_version":"1.10.0","minecraft:item":{"description":{"identifier":"blockception:item","category":"Equipment"},"components":{"minecraft:icon":"item","minecraft:render_offsets":"apple"}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.10"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/A"}}],"definitions":{"B":{"type":"string","title":"Item Identifier 1.8.0","description":"The minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$"},"A":{"required":["format_version","minecraft:item"],"title":"Item","description":"Minecraft items 1.10.0","properties":{"format_version":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","type":"string"},"minecraft:item":{"title":"Item","description":"A resource pack definition of an item","required":["description","components"],"type":"object","additionalProperties":false,"properties":{"description":{"title":"Description","description":"The description of an item","required":["identifier"],"type":"object","additionalProperties":false,"properties":{"identifier":{"title":"Identifier","description":"The item identifier","$ref":"#/definitions/B","examples":["namespace:example"]},"category":{"title":"Category","description":"The category this item belongs in","type":"string"}}},"components":{"title":"Components","description":"The components that describe this item","additionalProperties":false,"properties":{"minecraft:icon":{"title":"Icon","description":"The texture defined in `textures/item_texture.json`","type":"string"},"minecraft:render_offsets":{"type":"string","description":"The render offset used for the item","title":"Render Offsets","enum":["apple"]}}}}}}}}} \ No newline at end of file +{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.items","examples":[{"format_version":"1.10.0","minecraft:item":{"description":{"identifier":"blockception:item","category":"Equipment"},"components":{"minecraft:icon":"item","minecraft:render_offsets":"apple"}}}],"allOf":[{"if":{"properties":{"format_version":{"type":"string","const":"1.10"}}},"then":{"$ref":"#/definitions/A"}},{"if":{"properties":{"format_version":{"type":"string","const":"1.10.0"}}},"then":{"$ref":"#/definitions/A"}},{"properties":{"format_version":{"$ref":"#/definitions/C"}}}],"definitions":{"B":{"type":"string","title":"Item Identifier 1.8.0","description":"The minecraft item identifier","pattern":"^[0-9a-zA-Z:_\\-\\.]+$"},"A":{"required":["format_version","minecraft:item"],"title":"Item","description":"Minecraft items 1.10.0","properties":{"format_version":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","type":"string"},"minecraft:item":{"title":"Item","description":"A resource pack definition of an item","required":["description","components"],"type":"object","additionalProperties":false,"properties":{"description":{"title":"Description","description":"The description of an item","required":["identifier"],"type":"object","additionalProperties":false,"properties":{"identifier":{"title":"Identifier","description":"The item identifier","$ref":"#/definitions/B","examples":["namespace:example"]},"category":{"title":"Category","description":"The category this item belongs in","type":"string"}}},"components":{"title":"Components","description":"The components that describe this item","additionalProperties":false,"properties":{"minecraft:icon":{"title":"Icon","description":"The texture defined in `textures/item_texture.json`","type":"string"},"minecraft:render_offsets":{"type":"string","description":"The render offset used for the item","title":"Render Offsets","enum":["apple"]}}}}}}},"C":{"title":"Format version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^[0-9,.]+?$","type":"string"}}} \ No newline at end of file