- Additional block custom component stuff (#288)

This commit is contained in:
Xterionix
2024-05-25 14:28:48 +05:00
committed by GitHub
parent a297fc3fea
commit 042ff4d60c
4 changed files with 34 additions and 2 deletions

View 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"
}
}
}

View 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"
}
}
}

View File

@@ -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" },

View File

@@ -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,