Refactor
This commit is contained in:
14
source/behavior/blocks/1.16.200/events/add_mob_effect.json
Normal file
14
source/behavior/blocks/1.16.200/events/add_mob_effect.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.add_mob_effect",
|
||||
"type": "object",
|
||||
"description": "Apply mob effect to target.",
|
||||
"title": "Add Mob Effect 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"amplifier": { "type": "integer", "default": 0, "description": "The amplifier for the mob effect.", "title": "Amplifier" },
|
||||
"duration": { "type": "number", "default": 0, "description": "The duration of the mob effect.", "title": "Duration" },
|
||||
"effect": { "type": "string", "default": "", "description": "The mob effect to apply.", "title": "Effect" },
|
||||
"target": { "type": "object", "default": "self", "description": "The target context to execute against.", "title": "Target" }
|
||||
}
|
||||
}
|
||||
13
source/behavior/blocks/1.16.200/events/damage.json
Normal file
13
source/behavior/blocks/1.16.200/events/damage.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.damage",
|
||||
"type": "object",
|
||||
"description": "Deals damage to the target.",
|
||||
"title": "Damage 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"amount": { "type": "integer", "default": 0, "description": "The amount of damage to deal.", "title": "Amount" },
|
||||
"target": { "type": "object", "default": "self", "description": "The target context to execute against.", "title": "Target" },
|
||||
"type": { "type": "string", "default": "", "description": "The type of damage to deal.", "title": "Type" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.decrement_stack",
|
||||
"type": "object",
|
||||
"description": "Decrement item stack.",
|
||||
"title": "Decrement Stack 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
}
|
||||
9
source/behavior/blocks/1.16.200/events/die.json
Normal file
9
source/behavior/blocks/1.16.200/events/die.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.die",
|
||||
"type": "object",
|
||||
"description": "Kill target. If target is self and this is run from a block then destroy the block.",
|
||||
"title": "Die 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": { "target": { "type": "object", "default": "self", "description": "The target context to execute against.", "title": "Target" } }
|
||||
}
|
||||
13
source/behavior/blocks/1.16.200/events/play_effect.json
Normal file
13
source/behavior/blocks/1.16.200/events/play_effect.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.play_effect",
|
||||
"type": "object",
|
||||
"description": "Spawns a particle effect relative to target position.",
|
||||
"title": "Play Effect 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"data": { "type": "integer", "default": 0, "description": "Particle data value.", "title": "Data" },
|
||||
"effect": { "type": "string", "default": "", "description": "The name of the particle effect to create.", "title": "Effect" },
|
||||
"target": { "type": "object", "default": "self", "description": "The target context to execute against.", "title": "Target" }
|
||||
}
|
||||
}
|
||||
12
source/behavior/blocks/1.16.200/events/play_sound.json
Normal file
12
source/behavior/blocks/1.16.200/events/play_sound.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.playsound",
|
||||
"type": "object",
|
||||
"description": "Play a sound relative to target position.",
|
||||
"title": "Playsound 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"sound": { "type": "string", "default": "", "description": "The name of the sound to play.", "title": "Sound" },
|
||||
"target": { "type": "object", "default": "self", "description": "The target context to execute against.", "title": "Target" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.remove_mob_effect",
|
||||
"type": "object",
|
||||
"description": "Removes mob effect from target.",
|
||||
"title": "Remove Mob Effect 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"effect": { "type": "string", "default": "", "description": "The mob effect to remove. Use 'all' to remove all mob effects from target.", "title": "Effect" },
|
||||
"target": { "type": "string", "default": "self", "description": "The target context to execute against.", "title": "Target" }
|
||||
}
|
||||
}
|
||||
17
source/behavior/blocks/1.16.200/events/run_command.json
Normal file
17
source/behavior/blocks/1.16.200/events/run_command.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.run_command",
|
||||
"type": "object",
|
||||
"description": "Triggers a slash command or a list of slash commands.",
|
||||
"title": "Run Command 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"command": {
|
||||
"default": "",
|
||||
"description": "Slash command to run.",
|
||||
"title": "Command",
|
||||
"oneof": [{ "type": "string" }, { "type": "array", "items": { "type": "string", "title": "Command", "description": "Slash command to run." } }]
|
||||
},
|
||||
"target": { "type": "string", "default": "self", "description": "The target context to execute against.", "title": "Target" }
|
||||
}
|
||||
}
|
||||
9
source/behavior/blocks/1.16.200/events/set_block.json
Normal file
9
source/behavior/blocks/1.16.200/events/set_block.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.set_block",
|
||||
"type": "object",
|
||||
"description": "Sets this block to another block type.",
|
||||
"title": "Set Block 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": { "block_type": { "type": "string", "default": "", "description": "The type of block to set.", "title": "Block Type" } }
|
||||
}
|
||||
22
source/behavior/blocks/1.16.200/events/set_block_at_pos.json
Normal file
22
source/behavior/blocks/1.16.200/events/set_block_at_pos.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.set_block_at_pos",
|
||||
"type": "object",
|
||||
"description": "Sets a block relative to this block to another block type.",
|
||||
"title": "Set Block At Pos 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"block_offset": {
|
||||
"type": "array",
|
||||
"default": [0.0, 0.0, 0.0],
|
||||
"description": "The offset from the block's center.",
|
||||
"title": "Block Offset",
|
||||
"items": [
|
||||
{ "type": "number", "title": "X", "description": "The x offset from the block's center." },
|
||||
{ "type": "number", "title": "Y", "description": "The y offset from the block's center." },
|
||||
{ "type": "number", "title": "Z", "description": "The z offset from the block's center." }
|
||||
]
|
||||
},
|
||||
"block_type": { "type": "string", "default": "", "description": "The type of block to set.", "title": "Block Type" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.set_block_property",
|
||||
"type": "object",
|
||||
"description": "Sets a block property on this block",
|
||||
"title": "Set Block Property 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": { "property": { "type": "string", "description": "Block property to set on the block.", "title": "Property" } }
|
||||
}
|
||||
10
source/behavior/blocks/1.16.200/events/spawn_loot.json
Normal file
10
source/behavior/blocks/1.16.200/events/spawn_loot.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.spawn_loot",
|
||||
"type": "object",
|
||||
"description": "Spawn loot from block.",
|
||||
"title": "Spawn Loot 1.16.200",
|
||||
"required": ["table"],
|
||||
"additionalProperties": false,
|
||||
"properties": { "table": { "type": "string", "description": "File path, relative to the Behavior Pack's path, to the loot table file.", "title": "Table" } }
|
||||
}
|
||||
9
source/behavior/blocks/1.16.200/events/swing.json
Normal file
9
source/behavior/blocks/1.16.200/events/swing.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.swing",
|
||||
"type": "object",
|
||||
"description": "Event causes the actor to swing.",
|
||||
"title": "Swing 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
}
|
||||
33
source/behavior/blocks/1.16.200/events/teleport.json
Normal file
33
source/behavior/blocks/1.16.200/events/teleport.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.teleport",
|
||||
"type": "object",
|
||||
"description": "Teleport target randomly around destination point.",
|
||||
"title": "Teleport 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"avoid_water": { "type": "boolean", "default": true, "description": "Determines if the teleport avoids putting the target in water.", "title": "Avoid Water" },
|
||||
"destination": {
|
||||
"default": [0.0, 0.0, 0.0],
|
||||
"description": "Origin destination of the teleport.",
|
||||
"title": "Destination",
|
||||
"items": [
|
||||
{ "type": "number", "title": "X", "description": "The x offset from the block's center." },
|
||||
{ "type": "number", "title": "Y", "description": "The y offset from the block's center." },
|
||||
{ "type": "number", "title": "Z", "description": "The z offset from the block's center." }
|
||||
]
|
||||
},
|
||||
"land_on_block": { "type": "boolean", "default": true, "description": "Determines if the teleport places the target on a block.", "title": "Land On Block" },
|
||||
"max_range": {
|
||||
"default": [8.0, 8.0, 8.0],
|
||||
"description": "Max range the target can teleport relative to the origin destination.",
|
||||
"title": "Max Range",
|
||||
"items": [
|
||||
{ "type": "number", "title": "X", "description": "The x offset from the block's center." },
|
||||
{ "type": "number", "title": "Y", "description": "The y offset from the block's center." },
|
||||
{ "type": "number", "title": "Z", "description": "The z offset from the block's center." }
|
||||
]
|
||||
},
|
||||
"target": { "type": "string", "default": "self", "description": "The target context to execute against.", "title": "Target" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.block.events.transform_item",
|
||||
"type": "object",
|
||||
"description": "Transforms item into another item.",
|
||||
"title": "Transform Item 1.16.200",
|
||||
"additionalProperties": false,
|
||||
"properties": { "transform": { "type": "string", "description": "Name of the item it should transform into", "title": "Transform" } }
|
||||
}
|
||||
Reference in New Issue
Block a user