Starting on blocks (#137)
* Starting on blocks * Updated collision box * Updated block components * Fixed block/rotation * Making orbi responsible for dependencies * Updating blocks * trigger -> triggers
This commit is contained in:
27
source/behavior/blocks/format/triggers/on_fall_on.json
Normal file
27
source/behavior/blocks/format/triggers/on_fall_on.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.on_fall_on",
|
||||
"type": "object",
|
||||
"title": "On Fall On",
|
||||
"description": "[Experimental] Describes event for this block.",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "The condition of event to be executed on the block.",
|
||||
"title": "Condition"
|
||||
},
|
||||
"event": { "type": "string", "default": "", "description": "The event executed on the block.", "title": "Event" },
|
||||
"min_fall_distance": {
|
||||
"type": "number",
|
||||
"default": 0,
|
||||
"description": "The minimum distance in blocks that an actor needs to fall to trigger this event.",
|
||||
"title": "Minimum Fall Distance"
|
||||
},
|
||||
"target": {
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
"description": "The target of event executed on the block.",
|
||||
"title": "Target"
|
||||
}
|
||||
}
|
||||
}
|
||||
21
source/behavior/blocks/format/triggers/on_interact.json
Normal file
21
source/behavior/blocks/format/triggers/on_interact.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.on_interact",
|
||||
"type": "object",
|
||||
"title": "On Fall On",
|
||||
"description": "[Experimental] Describes event for this block.",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "The condition of event to be executed on the block.",
|
||||
"title": "Condition"
|
||||
},
|
||||
"event": { "type": "string", "default": "", "description": "The event executed on the block.", "title": "Event" },
|
||||
"target": {
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
"description": "The target of event executed on the block.",
|
||||
"title": "Target"
|
||||
}
|
||||
}
|
||||
}
|
||||
21
source/behavior/blocks/format/triggers/on_placed.json
Normal file
21
source/behavior/blocks/format/triggers/on_placed.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.on_placed",
|
||||
"type": "object",
|
||||
"title": "On Placed",
|
||||
"description": "[Experimental] Describes event for this block.",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "The condition of event to be executed on the block.",
|
||||
"title": "Condition"
|
||||
},
|
||||
"event": { "type": "string", "default": "", "description": "The event executed on the block.", "title": "Event" },
|
||||
"target": {
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
"description": "The target of event executed on the block.",
|
||||
"title": "Target"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.on_player_destroyed",
|
||||
"type": "object",
|
||||
"title": "On Player Destroyed",
|
||||
"description": "[Experimental] Describes event for this block.",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "The condition of event to be executed on the block.",
|
||||
"title": "Condition"
|
||||
},
|
||||
"event": { "type": "string", "default": "", "description": "The event executed on the block.", "title": "Event" },
|
||||
"target": {
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
"description": "The target of event executed on the block.",
|
||||
"title": "Target"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.on_player_placing",
|
||||
"type": "object",
|
||||
"title": "On Player Placing",
|
||||
"description": "[Experimental] Describes event for this block.",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "The condition of event to be executed on the block.",
|
||||
"title": "Condition"
|
||||
},
|
||||
"event": { "type": "string", "default": "", "description": "The event executed on the block.", "title": "Event" },
|
||||
"target": {
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
"description": "The target of event executed on the block.",
|
||||
"title": "Target"
|
||||
}
|
||||
}
|
||||
}
|
||||
21
source/behavior/blocks/format/triggers/on_step_off.json
Normal file
21
source/behavior/blocks/format/triggers/on_step_off.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.on_step_off",
|
||||
"type": "object",
|
||||
"title": "On Step Off",
|
||||
"description": "[Experimental] Describes event for this block.",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "The condition of event to be executed on the block.",
|
||||
"title": "Condition"
|
||||
},
|
||||
"event": { "type": "string", "default": "", "description": "The event executed on the block.", "title": "Event" },
|
||||
"target": {
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
"description": "The target of event executed on the block.",
|
||||
"title": "Target"
|
||||
}
|
||||
}
|
||||
}
|
||||
21
source/behavior/blocks/format/triggers/on_step_on.json
Normal file
21
source/behavior/blocks/format/triggers/on_step_on.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.on_step_on",
|
||||
"type": "object",
|
||||
"title": "On Step On",
|
||||
"description": "[Experimental] Describes event for this block.",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"description": "The condition of event to be executed on the block.",
|
||||
"title": "Condition"
|
||||
},
|
||||
"event": { "type": "string", "default": "", "description": "The event executed on the block.", "title": "Event" },
|
||||
"target": {
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
"description": "The target of event executed on the block.",
|
||||
"title": "Target"
|
||||
}
|
||||
}
|
||||
}
|
||||
43
source/behavior/blocks/format/triggers/queued_ticking.json
Normal file
43
source/behavior/blocks/format/triggers/queued_ticking.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.random_ticking",
|
||||
"title": "Random Ticking",
|
||||
"description": "[Experimental] Describes the component that will trigger an even at a regular interval between two values.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"on_tick": {
|
||||
"title": "On Tick",
|
||||
"description": "Describes the component that will trigger an even at a regular interval between two values.",
|
||||
"type": "string",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"condition": {
|
||||
"title": "Condition",
|
||||
"type": "string",
|
||||
"default": "1",
|
||||
"description": "The condition of event to be executed on the block. Molang"
|
||||
},
|
||||
"event": {
|
||||
"title": "Event",
|
||||
"type": "string",
|
||||
"default": "set_block_property",
|
||||
"description": "The type of event executed on the block."
|
||||
},
|
||||
"range": { "title": "Range", "type": "array", "items": [{ "type": "integer" }, { "type": "integer" }] },
|
||||
"target": {
|
||||
"title": "Target",
|
||||
"description": "The target of event executed on the block.",
|
||||
"type": "string",
|
||||
"enum": ["block", "damager", "other", "parent", "player", "self", "target"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"looping": { "type": "boolean", "default": true, "description": "Does the event loop.", "title": "Looping" },
|
||||
"range": {
|
||||
"type": "array",
|
||||
"default": [10, 10],
|
||||
"description": "The Range between which the component will trigger his event.",
|
||||
"title": "Range"
|
||||
}
|
||||
}
|
||||
}
|
||||
31
source/behavior/blocks/format/triggers/random_ticking.json
Normal file
31
source/behavior/blocks/format/triggers/random_ticking.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.minecraft.random_ticking",
|
||||
"title": "Random Ticking",
|
||||
"description": "[Experimental] Triggers the specified event randomly based on the random tick speed gamerule. The random tick speed determines how often blocks are updated.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"on_tick": {
|
||||
"title": "On Tick",
|
||||
"description": "the event that will be triggered on random ticks."
|
||||
},
|
||||
"condition": {
|
||||
"title": "Condition",
|
||||
"type": "string",
|
||||
"default": "1",
|
||||
"description": "A condition using Molang queries that results to true/false. If true on the random tick, the event will be triggered. If false on the random tick, the event will not be triggered."
|
||||
},
|
||||
"event": {
|
||||
"title": "Event",
|
||||
"type": "string",
|
||||
"default": "set_block_property",
|
||||
"description": "The event that will be triggered."
|
||||
},
|
||||
"target": {
|
||||
"title": "Target",
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
"description": "The target of the event executed by the block"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user