Files
minecraft-bedrock-json-schemas/resource/particles/particles.json

1 line
31 KiB
JSON
Raw Normal View History

{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.resource.particle","examples":[{"format_version":"1.20.41","particle_effect":{"description":{"identifier":"example:particle","basic_render_parameters":{"material":"particles_alpha","texture":"textures/particle/particle"}},"curves":{},"components":{}}}],"definitions":{"event":{"additionalProperties":false,"title":"Particle event","description":"The particle event.","properties":{"sequence":{"title":"Event sequence","description":"A sequence of elements to execute.","type":"array","items":{"$ref":"#/definitions/event"}},"randomize":{"title":"Event randomize","description":"A list of elements to execute one of.","type":"array","items":{"$ref":"#/definitions/event"}},"particle_effect":{"title":"Particle Effect","description":"Particle effect action.","properties":{"effect":{"type":"string","description":"Identifier of the effect.","title":"Effect"},"type":{"type":"string","description":"UNDOCUMENTED: type.","title":"Type","enum":["emitter","emitter_bound","particle","particle_with_velocity"]},"pre_effect_expression":{"type":"string","description":"Molang expression to run on the new emitter.","title":"Pre Effect Expression"}}},"sound_effect":{"title":"Sound Effect","description":"Sound effect action.","properties":{"event_name":{"type":"string","description":"Name of the level sound event.","title":"Event Name"}}},"expression":{"type":"string","description":"Molang expression to run on the event-firing emitter.","title":"Expression"},"log":{"type":"string","description":"Message to log, along with the firing effect's name and event position.","title":"Log"},"weight":{"type":"number","description":"The weight of the element.","title":"Weight"}}},"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.20.81","examples":["1.20.81","1.20.40","1.19.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18,19,20|}.${3|2|0|}"}]},"B":{"description":"The minecraft particle identifier.","examples":["namespace:particle_name"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$","title":"Particle Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"C":{"title":"Molang Number","description":"The minecraft molang definition that results in a float.","anyOf":[{"type":"string","minLength":0},{"type":"number"}],"examples":[0,"query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"E":{"type":"string","title":"Molang","description":"Molang definition.","format":"molang","examples":["query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"D":{"description":"This component allows the emitter to run some Molang at creation, primarily to populate any Molang variables that get used later.","type":"object","title":"Emitter Initialization Component For 1.10.0","additionalProperties":false,"properties":{"creation_expression":{"$ref":"#/definitions/E","description":"This is run once at emitter startup.","title":"Creation Expression"},"per_update_expression":{"$ref":"#/definitions/E","description":"This is run once per emitter update.","title":"Per Update Expression"}}},"F":{"type":"object","title":"Emitter Lifetime Events Component For 1.10.0","description":"UNDOCUMENTED.","$comment":"UNDOCUMENTED","additionalProperties":false,"properties":{"creation_event":{"title":"Creation Event","description":"Fires when the emitter is created.","oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}]},"expiration_event":{"title":"Expiration Event","description":"Fires when the emitter expires (does not wait for particles to expire too).","oneOf":[{"type":"array","items":{"type":"string"}},{"type":"string"}]},"timeline":{"title":"Timeline","type":"object","description":"A series of times, e.g. 0.0 or 1.0, that trigger the event, these get fired on e