Skip to content

Commit

Permalink
- Additional block custom component stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Xterionix committed May 25, 2024
1 parent a297fc3 commit a63abe5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
15 changes: 15 additions & 0 deletions source/behavior/blocks/format/components/entity_fall_on.json
Original file line number Diff line number Diff line change
@@ -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 changes: 15 additions & 0 deletions source/behavior/blocks/format/components/tick.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
2 changes: 2 additions & 0 deletions source/behavior/blocks/format/minecraft.block.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
4 changes: 2 additions & 2 deletions source/behavior/blocks/format/triggers/queued_ticking.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit a63abe5

Please sign in to comment.