- Additional block custom component stuff (#288)
This commit is contained in:
15
source/behavior/blocks/format/components/entity_fall_on.json
Normal file
15
source/behavior/blocks/format/components/entity_fall_on.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"$id": "blockception.minecraft.behavior.blocks.minecraft.entity_fall_on",
|
||||||
|
"title": "Entity Fall On",
|
||||||
|
"description": "Required component to use the custom component `onEntityFallOn`.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [ ],
|
||||||
|
"properties": {
|
||||||
|
"min_fall_distance": {
|
||||||
|
"title": "Min Fall Distance",
|
||||||
|
"description": "Sets the minimum fall distance required to trigger the custom component.",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
source/behavior/blocks/format/components/tick.json
Normal file
15
source/behavior/blocks/format/components/tick.json
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"$id": "blockception.minecraft.behavior.blocks.minecraft.tick",
|
||||||
|
"title": "Tick",
|
||||||
|
"description": "Describes the component that will trigger an even at a regular interval between two values.",
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"looping": { "type": "boolean", "default": true, "description": "Does the event loop.", "title": "Looping" },
|
||||||
|
"interval_range": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "The Range between which the component will trigger his event.",
|
||||||
|
"title": "Interval Range"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -32,6 +32,8 @@
|
|||||||
"minecraft:selection_box": { "$ref": "./components/selection_box.json" },
|
"minecraft:selection_box": { "$ref": "./components/selection_box.json" },
|
||||||
"minecraft:transformation": { "$ref": "./components/transformation.json" },
|
"minecraft:transformation": { "$ref": "./components/transformation.json" },
|
||||||
"minecraft:custom_components": { "$ref": "./components/custom_components.json" },
|
"minecraft:custom_components": { "$ref": "./components/custom_components.json" },
|
||||||
|
"minecraft:tick": { "$ref": "./components/tick.json" },
|
||||||
|
"minecraft:entity_fall_on": { "$ref": "./components/entity_fall_on.json" },
|
||||||
|
|
||||||
//Triggers
|
//Triggers
|
||||||
"minecraft:on_fall_on": { "$ref": "./triggers/on_fall_on.json" },
|
"minecraft:on_fall_on": { "$ref": "./triggers/on_fall_on.json" },
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.random_ticking",
|
"$id": "blockception.minecraft.behavior.blocks.minecraft.queued_ticking",
|
||||||
"title": "Random Ticking",
|
"title": "Queued Ticking",
|
||||||
"description": "[Experimental] Describes the component that will trigger an even at a regular interval between two values.",
|
"description": "[Experimental] Describes the component that will trigger an even at a regular interval between two values.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user