Flattened particles

This commit is contained in:
DaanV2
2021-11-16 13:40:11 +01:00
parent f077e8a418
commit f6fc8ab689
39 changed files with 915 additions and 966 deletions

View File

@@ -1,47 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_box",
"type": "object",
"title": "Emitter Shape Box Component For 1.10.0",
"additionalProperties": false,
"properties": {
"direction": {
"anyOf": [
{ "type": "string", "enum": ["inwards", "outwards"] },
{
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "title": "X" },
{ "$ref": "../../../../molang/number.json", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "title": "Z" }
]
}
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"radius": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: radius", "title": "Radius" },
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
},
"half_dimensions": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED: half dimensions",
"title": "Half Dimensions"
},
"surface_only": { "type": "boolean", "description": "UNDOCUMENTED: surface only", "title": "Surface Only" }
},
"description": "UNDOCUMENTED: "
}

View File

@@ -1,30 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_custom",
"type": "object",
"title": "Emitter Shape Custom Component For 1.10.0",
"additionalProperties": false,
"properties": {
"direction": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
}
},
"description": "UNDOCUMENTED: "
}

View File

@@ -1,53 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_disc",
"type": "object",
"title": "Emitter Shape Disc Component For 1.10.0",
"additionalProperties": false,
"properties": {
"direction": {
"anyOf": [
{ "type": "string", "enum": ["inwards", "outwards"] },
{
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "title": "X" },
{ "$ref": "../../../../molang/number.json", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "title": "Z" }
]
}
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"radius": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: radius", "title": "Radius" },
"offset": {
"type": "array",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
]
},
"plane_normal": {
"title": "Plane Normal",
"description": "Specifies the normal of the disc plane, the disc will be perpendicular to this direction",
"default": [0, 1, 0],
"oneOf": [
{ "type": "string", "enum": ["x", "y", "z"] },
{
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
]
}
]
},
"surface_only": { "type": "boolean", "description": "UNDOCUMENTED: surface only", "title": "Surface Only" }
},
"description": "UNDOCUMENTED: "
}

View File

@@ -1,31 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_entity_aabb",
"type": "object",
"title": "Emitter Shape Entity Aabb Component For 1.10.0",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"additionalProperties": false,
"properties": {
"direction": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
}
}
}

View File

@@ -1,30 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_point",
"type": "object",
"title": "Emitter Shape Point Component For 1.10.0",
"description": "UNDOCUMENTED: ",
"additionalProperties": false,
"properties": {
"direction": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
}
}
}

View File

@@ -1,37 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_sphere",
"type": "object",
"title": "Emitter Shape Sphere Component For 1.10.0",
"description": "UNDOCUMENTED: ",
"additionalProperties": false,
"properties": {
"direction": {
"anyOf": [
{ "type": "string", "enum": ["inwards", "outwards"] },
{
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
]
}
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
},
"radius": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: radius", "title": "Radius" },
"surface_only": { "type": "boolean", "description": "UNDOCUMENTED: surface only", "title": "Surface Only" }
}
}

View File

@@ -1,17 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.particle_initial_speed",
"title": "Particle Initial Speed Component For 1.10.0",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"anyOf": [
{ "$ref": "../../../../molang/number.json" },
{
"type": "array",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
]
}
]
}

View File

@@ -1,12 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.particle_kill_plane",
"type": "array",
"title": "Particle Kill Plane Component For 1.10.0",
"description": "A*x + B*y + C*z + D = 0\nwith the parameters being [ A, B, C, D ]",
"items": [
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "A" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "B" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "C" },
{ "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "D" }
]
}

View File

@@ -1,155 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0",
"type": "object",
"additionalProperties": false,
"description": "A particle definition file",
"title": "Particle 1.8.0",
"properties": {
"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.",
"title": "Format Version"
},
"particle_effect": {
"type": "object",
"additionalProperties": false,
"description": "UNDOCUMENTED: particle effect",
"title": "Particle Effect",
"properties": {
"description": {
"additionalProperties": false,
"type": "object",
"required": ["identifier", "basic_render_parameters"],
"properties": {
"identifier": {
"type": "string",
"description": "UNDOCUMENTED: identifier",
"title": "Identifier",
"$ref": "../../../general/particle/identifier.json"
},
"basic_render_parameters": {
"additionalProperties": false,
"type": "object",
"properties": {
"material": {
"type": "string",
"examples": ["particles_alpha", "particles_blend"],
"description": " Minecraft material to use for emitter",
"title": "Material"
},
"texture": { "type": "string", "pattern": "^.+$", "description": "Minecraft texture to use for emitter", "title": "Texture" }
},
"description": "UNDOCUMENTED: basic render parameters",
"title": "Basic Render Parameters"
}
},
"description": "UNDOCUMENTED: description",
"title": "Description"
},
"curves": {
"title": "Curves",
"description": "Curves are interpolation values, with inputs from 0 to 1, and outputs based on the curve. The result of the curve is a Molang variable of the same name that can be referenced in Molang in components. For each rendering frame for each particle, the curves are evaluated and the result is placed in a Molang variable of the name of the curve.",
"type": "object",
"propertyNames": { "pattern": "^(v|variable)\\.[a-zA-z0-9]+$" },
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"title": "Curve",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"properties": {
"input": { "$ref": "../../../molang/number.json", "title": "Input", "description": "What is the input value to use" },
"nodes": {
"description": "Control nodes for curve. These are assumed to be equally, used Object for bezier_chain",
"title": "Nodes",
"oneOf": [
{ "minItems": 1, "type": "array", "items": { "$ref": "../../../molang/number.json" } },
{
"type": "object",
"propertyNames": { "pattern": "(^[\\-0-9]+$|^[\\-0-9]+\\.[\\-0-9]+$)" },
"additionalProperties": { "type": "object", "properties": {} }
}
]
},
"type": {
"type": "string",
"title": "Type",
"description": "The type of curve",
"enum": ["linear", "bezier", "bezier_chain", "catmull_rom"]
},
"horizontal_range": { "type": "string", "title": "Horizontal Range", "description": "What is the range the input is mapped onto" }
}
}
},
"components": {
"additionalProperties": false,
"type": "object",
"description": "The particle components.",
"title": "Components",
"properties": {
"minecraft:emitter_initialization": { "$ref": "./components/minecraft.emitter_initialization.json" },
"minecraft:emitter_lifetime_events": { "$ref": "./components/minecraft.emitter_lifetime_events.json" },
"minecraft:emitter_lifetime_expression": { "$ref": "./components/minecraft.emitter_lifetime_expression.json" },
"minecraft:emitter_lifetime_once": { "$ref": "./components/minecraft.emitter_lifetime_once.json" },
"minecraft:emitter_lifetime_looping": { "$ref": "./components/minecraft.emitter_lifetime_looping.json" },
"minecraft:emitter_local_space": { "$ref": "./components/minecraft.emitter_local_space.json" },
"minecraft:emitter_rate_instant": { "$ref": "./components/minecraft.emitter_rate_instant.json" },
"minecraft:emitter_rate_manual": { "$ref": "./components/minecraft.emitter_rate_manual.json" },
"minecraft:emitter_rate_steady": { "$ref": "./components/minecraft.emitter_rate_steady.json" },
"minecraft:emitter_shape_box": { "$ref": "./components/minecraft.emitter_shape_box.json" },
"minecraft:emitter_shape_custom": { "$ref": "./components/minecraft.emitter_shape_custom.json" },
"minecraft:emitter_shape_disc": { "$ref": "./components/minecraft.emitter_shape_disc.json" },
"minecraft:emitter_shape_entity_aabb": { "$ref": "./components/minecraft.emitter_shape_entity_aabb.json" },
"minecraft:emitter_shape_point": { "$ref": "./components/minecraft.emitter_shape_point.json" },
"minecraft:emitter_shape_sphere": { "$ref": "./components/minecraft.emitter_shape_sphere.json" },
"minecraft:particle_appearance_billboard": { "$ref": "./components/minecraft.particle_appearance_billboard.json" },
"minecraft:particle_appearance_tinting": { "$ref": "./components/minecraft.particle_appearance_tinting.json" },
"minecraft:particle_appearance_lighting": { "$ref": "./components/minecraft.particle_appearance_lighting.json" },
"minecraft:particle_expire_if_not_in_blocks": { "$ref": "./components/minecraft.particle_expire_if_not_in_blocks.json" },
"minecraft:particle_initialization": { "$ref": "./components/minecraft.particle_initialization.json" },
"minecraft:particle_initial_speed": { "$ref": "./components/minecraft.particle_initial_speed.json" },
"minecraft:particle_initial_spin": { "$ref": "./components/minecraft.particle_initial_spin.json" },
"minecraft:particle_lifetime_expression": { "$ref": "./components/minecraft.particle_lifetime_expression.json" },
"minecraft:particle_lifetime_events": { "$ref": "./components/minecraft.particle_lifetime_events.json" },
"minecraft:particle_kill_plane": { "$ref": "./components/minecraft.particle_kill_plane.json" },
"minecraft:particle_motion_collision": { "$ref": "./components/minecraft.particle_motion_collision.json" },
"minecraft:particle_motion_dynamic": { "$ref": "./components/minecraft.particle_motion_dynamic.json" },
"minecraft:particle_motion_parametric": { "$ref": "./components/minecraft.particle_motion_parametric.json" }
}
},
"events": {
"type": "object",
"description": "UNDOCUMENTED: events",
"title": "Events",
"additionalProperties": {
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Event",
"type": "object",
"additionalProperties": false,
"properties": {
"particle_effect": {
"title": "Particle Effect",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"properties": {
"effect": { "type": "string", "description": "UNDOCUMENTED: effect", "title": "Effect" },
"type": { "type": "string", "description": "UNDOCUMENTED: type", "title": "Type" }
}
},
"sound_effect": {
"title": "Sound effect",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"properties": {
"event_name": { "type": "string", "description": "UNDOCUMENTED: effect", "title": "Event name" }
}
}
}
}
}
}
}
}
}

View File

@@ -1,38 +0,0 @@
{
"$id": "blockception.minecraft.resource.particle.1.8.0",
"type": "object",
"additionalProperties": false,
"description": "A particle definition file",
"title": "Particle 1.8.0",
"properties": {
"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.",
"title": "Format Version"
},
"particle_effect": {
"type": "object",
"additionalProperties": false,
"properties": {
"description": {
"additionalProperties": false,
"type": "object",
"properties": {
"identifier": {
"type": "string",
"description": "UNDOCUMENTED: identifier",
"title": "Identifier",
"$ref": "../../../general/particle/identifier.json"
}
},
"description": "UNDOCUMENTED: description",
"title": "Description"
},
"components": { "additionalProperties": false, "type": "object", "description": "UNDOCUMENTED: components", "title": "Components" }
},
"description": "UNDOCUMENTED: particle effect",
"title": "Particle Effect"
}
}
}

View File

@@ -6,12 +6,12 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"creation_expression": { "creation_expression": {
"$ref": "../../../../molang/string.json", "$ref": "../../../molang/string.json",
"description": "This is run once at emitter startup.", "description": "This is run once at emitter startup.",
"title": "Creation Expression" "title": "Creation Expression"
}, },
"per_update_expression": { "per_update_expression": {
"$ref": "../../../../molang/string.json", "$ref": "../../../molang/string.json",
"description": "This is run once per emitter update.", "description": "This is run once per emitter update.",
"title": "Per Update Expression" "title": "Per Update Expression"
} }

View File

@@ -6,12 +6,12 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"activation_expression": { "activation_expression": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "When the expression is non-zero, the emitter will emit particles. Evaluated every frame", "description": "When the expression is non-zero, the emitter will emit particles. Evaluated every frame",
"title": "Activation Expression" "title": "Activation Expression"
}, },
"expiration_expression": { "expiration_expression": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Emitter will expire if the expression is non-zero. Evaluated every frame", "description": "Emitter will expire if the expression is non-zero. Evaluated every frame",
"title": "Expiration Expression" "title": "Expiration Expression"
} }

View File

@@ -5,12 +5,12 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"active_time": { "active_time": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Emitter will emit particles for this time per loop evaluated once per particle emitter loop", "description": "Emitter will emit particles for this time per loop evaluated once per particle emitter loop",
"title": "Active Time" "title": "Active Time"
}, },
"sleep_time": { "sleep_time": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Emitter will pause emitting particles for this time per loop evaluated once per particle emitter loop", "description": "Emitter will pause emitting particles for this time per loop evaluated once per particle emitter loop",
"title": "Sleep Time" "title": "Sleep Time"
} }

View File

@@ -5,7 +5,7 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"active_time": { "active_time": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "How long the particles emit for evaluated once", "description": "How long the particles emit for evaluated once",
"title": "Active Time" "title": "Active Time"
} }

View File

@@ -5,7 +5,7 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"num_particles": { "num_particles": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "This many particles are emitted at once evaluated once per particle emitter loop.", "description": "This many particles are emitted at once evaluated once per particle emitter loop.",
"title": "Num Particles", "title": "Num Particles",
"default": 10 "default": 10

View File

@@ -5,7 +5,7 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"max_particles": { "max_particles": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Evaluated once per particle emitted", "description": "Evaluated once per particle emitted",
"title": "Maximum Particles" "title": "Maximum Particles"
} }

View File

@@ -5,12 +5,12 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"max_particles": { "max_particles": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Maximum number of particles that can be active at once for this emitter, evaluated once per particle emitter loop", "description": "Maximum number of particles that can be active at once for this emitter, evaluated once per particle emitter loop",
"title": "Maximum Particles" "title": "Maximum Particles"
}, },
"spawn_rate": { "spawn_rate": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "How often a particle is emitted, in particles/sec evaluated once per particle emitted", "description": "How often a particle is emitted, in particles/sec evaluated once per particle emitted",
"title": "Spawn Rate" "title": "Spawn Rate"
} }

View File

@@ -0,0 +1,47 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_box",
"type": "object",
"title": "Emitter Shape Box Component For 1.10.0",
"additionalProperties": false,
"properties": {
"direction": {
"anyOf": [
{ "type": "string", "enum": ["inwards", "outwards"] },
{
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "title": "X" },
{ "$ref": "../../../molang/number.json", "title": "Y" },
{ "$ref": "../../../molang/number.json", "title": "Z" }
]
}
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"radius": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: radius", "title": "Radius" },
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
},
"half_dimensions": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED: half dimensions",
"title": "Half Dimensions"
},
"surface_only": { "type": "boolean", "description": "UNDOCUMENTED: surface only", "title": "Surface Only" }
},
"description": "UNDOCUMENTED: "
}

View File

@@ -0,0 +1,30 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_custom",
"type": "object",
"title": "Emitter Shape Custom Component For 1.10.0",
"additionalProperties": false,
"properties": {
"direction": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
}
},
"description": "UNDOCUMENTED: "
}

View File

@@ -0,0 +1,53 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_disc",
"type": "object",
"title": "Emitter Shape Disc Component For 1.10.0",
"additionalProperties": false,
"properties": {
"direction": {
"anyOf": [
{ "type": "string", "enum": ["inwards", "outwards"] },
{
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "title": "X" },
{ "$ref": "../../../molang/number.json", "title": "Y" },
{ "$ref": "../../../molang/number.json", "title": "Z" }
]
}
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"radius": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: radius", "title": "Radius" },
"offset": {
"type": "array",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
]
},
"plane_normal": {
"title": "Plane Normal",
"description": "Specifies the normal of the disc plane, the disc will be perpendicular to this direction",
"default": [0, 1, 0],
"oneOf": [
{ "type": "string", "enum": ["x", "y", "z"] },
{
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
]
}
]
},
"surface_only": { "type": "boolean", "description": "UNDOCUMENTED: surface only", "title": "Surface Only" }
},
"description": "UNDOCUMENTED: "
}

View File

@@ -0,0 +1,31 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_entity_aabb",
"type": "object",
"title": "Emitter Shape Entity Aabb Component For 1.10.0",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"additionalProperties": false,
"properties": {
"direction": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
}
}
}

View File

@@ -0,0 +1,30 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_point",
"type": "object",
"title": "Emitter Shape Point Component For 1.10.0",
"description": "UNDOCUMENTED: ",
"additionalProperties": false,
"properties": {
"direction": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
}
}
}

View File

@@ -0,0 +1,37 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.emitter_shape_sphere",
"type": "object",
"title": "Emitter Shape Sphere Component For 1.10.0",
"description": "UNDOCUMENTED: ",
"additionalProperties": false,
"properties": {
"direction": {
"anyOf": [
{ "type": "string", "enum": ["inwards", "outwards"] },
{
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
]
}
],
"description": "UNDOCUMENTED: direction",
"title": "Direction"
},
"offset": {
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
],
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Offset"
},
"radius": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: radius", "title": "Radius" },
"surface_only": { "type": "boolean", "description": "UNDOCUMENTED: surface only", "title": "Surface Only" }
}
}

View File

@@ -8,7 +8,7 @@
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: size", "title": "Size" }, "items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: size", "title": "Size" },
"description": "UNDOCUMENTED: size", "description": "UNDOCUMENTED: size",
"title": "Size" "title": "Size"
}, },
@@ -33,7 +33,7 @@
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: base UV", "title": "Base U V" }, "items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: base UV", "title": "Base U V" },
"description": "UNDOCUMENTED: base UV", "description": "UNDOCUMENTED: base UV",
"title": "Base U V" "title": "Base U V"
}, },
@@ -41,7 +41,7 @@
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: size UV", "title": "Size U V" }, "items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: size UV", "title": "Size U V" },
"description": "UNDOCUMENTED: size UV", "description": "UNDOCUMENTED: size UV",
"title": "Size U V" "title": "Size U V"
}, },
@@ -49,16 +49,16 @@
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: step UV", "title": "Step U V" }, "items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: step UV", "title": "Step U V" },
"description": "UNDOCUMENTED: step UV", "description": "UNDOCUMENTED: step UV",
"title": "Step U V" "title": "Step U V"
}, },
"frames_per_second": { "frames_per_second": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "UNDOCUMENTED: frames per second", "description": "UNDOCUMENTED: frames per second",
"title": "Frames Per Second" "title": "Frames Per Second"
}, },
"max_frame": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: Maximum frame", "title": "Maximum Frame" }, "max_frame": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: Maximum frame", "title": "Maximum Frame" },
"stretch_to_lifetime": { "type": "boolean", "description": "UNDOCUMENTED: stretch to lifetime", "title": "Stretch To Lifetime" }, "stretch_to_lifetime": { "type": "boolean", "description": "UNDOCUMENTED: stretch to lifetime", "title": "Stretch To Lifetime" },
"loop": { "type": "boolean", "description": "UNDOCUMENTED: loop", "title": "Loop" } "loop": { "type": "boolean", "description": "UNDOCUMENTED: loop", "title": "Loop" }
}, },
@@ -69,7 +69,7 @@
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: uv", "title": "Uv" }, "items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: uv", "title": "Uv" },
"description": "UNDOCUMENTED: uv", "description": "UNDOCUMENTED: uv",
"title": "Uv" "title": "Uv"
}, },
@@ -77,7 +77,7 @@
"type": "array", "type": "array",
"minItems": 2, "minItems": 2,
"maxItems": 2, "maxItems": 2,
"items": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: uv size", "title": "Uv Size" }, "items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: uv size", "title": "Uv Size" },
"description": "UNDOCUMENTED: uv size", "description": "UNDOCUMENTED: uv size",
"title": "Uv Size" "title": "Uv Size"
} }

View File

@@ -8,7 +8,7 @@
"color": { "color": {
"title": "Color", "title": "Color",
"anyOf": [ "anyOf": [
{ "type": "array", "description": "Direct color field", "items": { "$ref": "../../../../molang/number.json" } }, { "type": "array", "description": "Direct color field", "items": { "$ref": "../../../molang/number.json" } },
{ "type": "string", "format": "color-hex", "description": "Direct color field" }, { "type": "string", "format": "color-hex", "description": "Direct color field" },
{ {
"description": "Interpolation based color", "description": "Interpolation based color",
@@ -45,7 +45,7 @@
} }
] ]
}, },
"interpolant": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: interpolant", "title": "Interpolant" } "interpolant": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: interpolant", "title": "Interpolant" }
} }
} }
], ],

View File

@@ -3,7 +3,7 @@
"type": "array", "type": "array",
"title": "Particle Expire If Not In Blocks Component For 1.10.0", "title": "Particle Expire If Not In Blocks Component For 1.10.0",
"additionalProperties": false, "additionalProperties": false,
"items": { "$ref": "../../../../general/block/identifier.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Block" }, "items": { "$ref": "../../../general/block/identifier.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Block" },
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED" "$comment": "UNDOCUMENTED"
} }

View File

@@ -0,0 +1,17 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.particle_initial_speed",
"title": "Particle Initial Speed Component For 1.10.0",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"anyOf": [
{ "$ref": "../../../molang/number.json" },
{
"type": "array",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "X" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Y" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Z" }
]
}
]
}

View File

@@ -5,9 +5,9 @@
"additionalProperties": false, "additionalProperties": false,
"type": "object", "type": "object",
"properties": { "properties": {
"rotation": { "$ref": "../../../../molang/number.json", "description": "Specifies the initial rotation in degrees", "title": "Rotation" }, "rotation": { "$ref": "../../../molang/number.json", "description": "Specifies the initial rotation in degrees", "title": "Rotation" },
"rotation_rate": { "rotation_rate": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Specifies the spin rate in degrees/second", "description": "Specifies the spin rate in degrees/second",
"title": "Rotation Rate" "title": "Rotation Rate"
} }

View File

@@ -5,12 +5,12 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"per_update_expression": { "per_update_expression": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "UNDOCUMENTED: per update expression", "description": "UNDOCUMENTED: per update expression",
"title": "Per Update Expression" "title": "Per Update Expression"
}, },
"per_render_expression": { "per_render_expression": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "UNDOCUMENTED: per render expression", "description": "UNDOCUMENTED: per render expression",
"title": "Per Render Expression" "title": "Per Render Expression"
} }

View File

@@ -0,0 +1,12 @@
{
"$id": "blockception.minecraft.resource.particle.1.10.0.particle_kill_plane",
"type": "array",
"title": "Particle Kill Plane Component For 1.10.0",
"description": "A*x + B*y + C*z + D = 0\nwith the parameters being [ A, B, C, D ]",
"items": [
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "A" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "B" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "C" },
{ "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "D" }
]
}

View File

@@ -8,10 +8,10 @@
"expiration_expression": { "expiration_expression": {
"title": "Expiration Expression", "title": "Expiration Expression",
"description": "This expression makes the particle expire when true (non-zero), The float/expr is evaluated once per particle, evaluated every frame", "description": "This expression makes the particle expire when true (non-zero), The float/expr is evaluated once per particle, evaluated every frame",
"$ref": "../../../../molang/number.json" "$ref": "../../../molang/number.json"
}, },
"max_lifetime": { "max_lifetime": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Alternate way to express lifetime, particle will expire after this much time, evaluated once", "description": "Alternate way to express lifetime, particle will expire after this much time, evaluated once",
"title": "Maximum Lifetime" "title": "Maximum Lifetime"
} }

View File

@@ -11,7 +11,7 @@
"title": "Coefficient Of Restitution" "title": "Coefficient Of Restitution"
}, },
"collision_radius": { "type": "number", "description": "UNDOCUMENTED: collision radius", "title": "Collision Radius" }, "collision_radius": { "type": "number", "description": "UNDOCUMENTED: collision radius", "title": "Collision Radius" },
"enabled": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: enabled", "title": "Enabled" }, "enabled": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: enabled", "title": "Enabled" },
"expire_on_contact": { "type": "boolean", "description": "UNDOCUMENTED: expire on contact", "title": "Expire On Contact" }, "expire_on_contact": { "type": "boolean", "description": "UNDOCUMENTED: expire on contact", "title": "Expire On Contact" },
"events": { "events": {
"type": "array", "type": "array",

View File

@@ -10,24 +10,24 @@
"default": [0, 0, 0], "default": [0, 0, 0],
"minItems": 3, "minItems": 3,
"maxItems": 3, "maxItems": 3,
"items": { "$ref": "../../../../molang/number.json" }, "items": { "$ref": "../../../molang/number.json" },
"description": "The linear acceleration applied to the particle. Units are blocks/sec/sec", "description": "The linear acceleration applied to the particle. Units are blocks/sec/sec",
"title": "Linear Acceleration" "title": "Linear Acceleration"
}, },
"linear_drag_coefficient": { "linear_drag_coefficient": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Using the equation: `acceleration = -linear_drag_coefficient*velocity` where velocity is the current direction times speed. Think of this as air-drag. The higher the value, the more drag evaluated every frame", "description": "Using the equation: `acceleration = -linear_drag_coefficient*velocity` where velocity is the current direction times speed. Think of this as air-drag. The higher the value, the more drag evaluated every frame",
"default": 0, "default": 0,
"title": "Linear Drag Coefficient" "title": "Linear Drag Coefficient"
}, },
"rotation_acceleration": { "rotation_acceleration": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Acceleration applies to the rotation speed of the particle", "description": "Acceleration applies to the rotation speed of the particle",
"title": "Rotation Acceleration", "title": "Rotation Acceleration",
"default": 0 "default": 0
}, },
"rotation_drag_coefficient": { "rotation_drag_coefficient": {
"$ref": "../../../../molang/number.json", "$ref": "../../../molang/number.json",
"description": "Drag applied to rotation", "description": "Drag applied to rotation",
"title": "Rotation Drag Coefficient", "title": "Rotation Drag Coefficient",
"default": 0 "default": 0

View File

@@ -8,11 +8,11 @@
"type": "array", "type": "array",
"minItems": 3, "minItems": 3,
"maxItems": 3, "maxItems": 3,
"items": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: relative position", "title": "Relative Position" }, "items": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: relative position", "title": "Relative Position" },
"description": "UNDOCUMENTED: relative position", "description": "UNDOCUMENTED: relative position",
"title": "Relative Position" "title": "Relative Position"
}, },
"rotation": { "$ref": "../../../../molang/number.json", "description": "UNDOCUMENTED: rotation", "title": "Rotation" } "rotation": { "$ref": "../../../molang/number.json", "description": "UNDOCUMENTED: rotation", "title": "Rotation" }
}, },
"description": "UNDOCUMENTED: " "description": "UNDOCUMENTED: "
} }

View File

@@ -2,10 +2,10 @@
"$id": "blockception.minecraft.resource.particle", "$id": "blockception.minecraft.resource.particle",
"examples": [ "examples": [
{ {
"format_version": "1.10.0", "format_version": "1.17.0",
"particle_effect": { "particle_effect": {
"description": { "description": {
"identifier": "blockception:particle", "identifier": "example:particle",
"basic_render_parameters": { "material": "particles_alpha", "texture": "textures/particle/particle" } "basic_render_parameters": { "material": "particles_alpha", "texture": "textures/particle/particle" }
}, },
"curves": {}, "curves": {},
@@ -13,9 +13,151 @@
} }
} }
], ],
"allOf": [ "type": "object",
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.8.0" } } }, "then": { "$ref": "./1.8.0/particle.json" } }, "additionalProperties": false,
{ "if": { "properties": { "format_version": { "type": "string", "const": "1.10.0" } } }, "then": { "$ref": "./1.10.0/particle.json" } }, "description": "A particle definition file",
{ "properties": { "format_version": { "$ref": "../../general/format_version.json" } } } "title": "Particle",
] "properties": {
"format_version": { "$ref": "../../general/format_version.json" },
"particle_effect": {
"type": "object",
"additionalProperties": false,
"description": "UNDOCUMENTED: particle effect",
"title": "Particle Effect",
"properties": {
"description": {
"additionalProperties": false,
"type": "object",
"required": ["identifier", "basic_render_parameters"],
"properties": {
"identifier": {
"type": "string",
"description": "UNDOCUMENTED: identifier",
"title": "Identifier",
"$ref": "../../../general/particle/identifier.json"
},
"basic_render_parameters": {
"additionalProperties": false,
"type": "object",
"properties": {
"material": {
"type": "string",
"examples": ["particles_alpha", "particles_blend"],
"description": " Minecraft material to use for emitter",
"title": "Material"
},
"texture": { "type": "string", "pattern": "^.+$", "description": "Minecraft texture to use for emitter", "title": "Texture" }
},
"description": "UNDOCUMENTED: basic render parameters",
"title": "Basic Render Parameters"
}
},
"description": "UNDOCUMENTED: description",
"title": "Description"
},
"curves": {
"title": "Curves",
"description": "Curves are interpolation values, with inputs from 0 to 1, and outputs based on the curve. The result of the curve is a Molang variable of the same name that can be referenced in Molang in components. For each rendering frame for each particle, the curves are evaluated and the result is placed in a Molang variable of the name of the curve.",
"type": "object",
"propertyNames": { "pattern": "^(v|variable)\\.[a-zA-z0-9]+$" },
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"title": "Curve",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"properties": {
"input": { "$ref": "../../../molang/number.json", "title": "Input", "description": "What is the input value to use" },
"nodes": {
"description": "Control nodes for curve. These are assumed to be equally, used Object for bezier_chain",
"title": "Nodes",
"oneOf": [
{ "minItems": 1, "type": "array", "items": { "$ref": "../../../molang/number.json" } },
{
"type": "object",
"propertyNames": { "pattern": "(^[\\-0-9]+$|^[\\-0-9]+\\.[\\-0-9]+$)" },
"additionalProperties": { "type": "object", "properties": {} }
}
]
},
"type": {
"type": "string",
"title": "Type",
"description": "The type of curve",
"enum": ["linear", "bezier", "bezier_chain", "catmull_rom"]
},
"horizontal_range": { "type": "string", "title": "Horizontal Range", "description": "What is the range the input is mapped onto" }
}
}
},
"components": {
"additionalProperties": false,
"type": "object",
"description": "The particle components.",
"title": "Components",
"properties": {
"minecraft:emitter_initialization": { "$ref": "./components/minecraft.emitter_initialization.json" },
"minecraft:emitter_lifetime_events": { "$ref": "./components/minecraft.emitter_lifetime_events.json" },
"minecraft:emitter_lifetime_expression": { "$ref": "./components/minecraft.emitter_lifetime_expression.json" },
"minecraft:emitter_lifetime_once": { "$ref": "./components/minecraft.emitter_lifetime_once.json" },
"minecraft:emitter_lifetime_looping": { "$ref": "./components/minecraft.emitter_lifetime_looping.json" },
"minecraft:emitter_local_space": { "$ref": "./components/minecraft.emitter_local_space.json" },
"minecraft:emitter_rate_instant": { "$ref": "./components/minecraft.emitter_rate_instant.json" },
"minecraft:emitter_rate_manual": { "$ref": "./components/minecraft.emitter_rate_manual.json" },
"minecraft:emitter_rate_steady": { "$ref": "./components/minecraft.emitter_rate_steady.json" },
"minecraft:emitter_shape_box": { "$ref": "./components/minecraft.emitter_shape_box.json" },
"minecraft:emitter_shape_custom": { "$ref": "./components/minecraft.emitter_shape_custom.json" },
"minecraft:emitter_shape_disc": { "$ref": "./components/minecraft.emitter_shape_disc.json" },
"minecraft:emitter_shape_entity_aabb": { "$ref": "./components/minecraft.emitter_shape_entity_aabb.json" },
"minecraft:emitter_shape_point": { "$ref": "./components/minecraft.emitter_shape_point.json" },
"minecraft:emitter_shape_sphere": { "$ref": "./components/minecraft.emitter_shape_sphere.json" },
"minecraft:particle_appearance_billboard": { "$ref": "./components/minecraft.particle_appearance_billboard.json" },
"minecraft:particle_appearance_tinting": { "$ref": "./components/minecraft.particle_appearance_tinting.json" },
"minecraft:particle_appearance_lighting": { "$ref": "./components/minecraft.particle_appearance_lighting.json" },
"minecraft:particle_expire_if_not_in_blocks": { "$ref": "./components/minecraft.particle_expire_if_not_in_blocks.json" },
"minecraft:particle_initialization": { "$ref": "./components/minecraft.particle_initialization.json" },
"minecraft:particle_initial_speed": { "$ref": "./components/minecraft.particle_initial_speed.json" },
"minecraft:particle_initial_spin": { "$ref": "./components/minecraft.particle_initial_spin.json" },
"minecraft:particle_lifetime_expression": { "$ref": "./components/minecraft.particle_lifetime_expression.json" },
"minecraft:particle_lifetime_events": { "$ref": "./components/minecraft.particle_lifetime_events.json" },
"minecraft:particle_kill_plane": { "$ref": "./components/minecraft.particle_kill_plane.json" },
"minecraft:particle_motion_collision": { "$ref": "./components/minecraft.particle_motion_collision.json" },
"minecraft:particle_motion_dynamic": { "$ref": "./components/minecraft.particle_motion_dynamic.json" },
"minecraft:particle_motion_parametric": { "$ref": "./components/minecraft.particle_motion_parametric.json" }
}
},
"events": {
"type": "object",
"description": "UNDOCUMENTED: events",
"title": "Events",
"additionalProperties": {
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "Event",
"type": "object",
"additionalProperties": false,
"properties": {
"particle_effect": {
"title": "Particle Effect",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"properties": {
"effect": { "type": "string", "description": "UNDOCUMENTED: effect", "title": "Effect" },
"type": { "type": "string", "description": "UNDOCUMENTED: type", "title": "Type" }
}
},
"sound_effect": {
"title": "Sound Effect",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"properties": {
"event_name": { "type": "string", "description": "UNDOCUMENTED: effect", "title": "Event Name" }
}
}
}
}
}
}
}
}
} }