diff --git a/source/behavior/blocks/format/components/entity_fall_on.json b/source/behavior/blocks/format/components/entity_fall_on.json new file mode 100644 index 00000000..ba127387 --- /dev/null +++ b/source/behavior/blocks/format/components/entity_fall_on.json @@ -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" + } + } +} diff --git a/source/behavior/blocks/format/components/tick.json b/source/behavior/blocks/format/components/tick.json new file mode 100644 index 00000000..17ddc0cb --- /dev/null +++ b/source/behavior/blocks/format/components/tick.json @@ -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" + } + } +} diff --git a/source/behavior/blocks/format/minecraft.block.json b/source/behavior/blocks/format/minecraft.block.json index 1e77ee01..e2b50c8a 100644 --- a/source/behavior/blocks/format/minecraft.block.json +++ b/source/behavior/blocks/format/minecraft.block.json @@ -32,6 +32,8 @@ "minecraft:selection_box": { "$ref": "./components/selection_box.json" }, "minecraft:transformation": { "$ref": "./components/transformation.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 "minecraft:on_fall_on": { "$ref": "./triggers/on_fall_on.json" }, diff --git a/source/behavior/blocks/format/triggers/queued_ticking.json b/source/behavior/blocks/format/triggers/queued_ticking.json index a1a38ea2..d43bbd17 100644 --- a/source/behavior/blocks/format/triggers/queued_ticking.json +++ b/source/behavior/blocks/format/triggers/queued_ticking.json @@ -1,6 +1,6 @@ { - "$id": "blockception.minecraft.behavior.blocks.minecraft.random_ticking", - "title": "Random Ticking", + "$id": "blockception.minecraft.behavior.blocks.minecraft.queued_ticking", + "title": "Queued Ticking", "description": "[Experimental] Describes the component that will trigger an even at a regular interval between two values.", "type": "object", "additionalProperties": false,