Refactoring block
This commit is contained in:
38
source/behavior/blocks/format/components/random_ticking.json
Normal file
38
source/behavior/blocks/format/components/random_ticking.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.blocks.1.17.0.minecraft.random_ticking",
|
||||
"title": "Random Ticking 1.17.0",
|
||||
"description": "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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user