Refactoring block

This commit is contained in:
DaanV2
2022-06-07 21:37:57 +02:00
parent 8258cb11ab
commit 5410c174c0
176 changed files with 136 additions and 2533 deletions

View File

@@ -0,0 +1,13 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.add_mob_effect",
"type": "object",
"description": "Apply mob effect to target.",
"title": "Add Mob Effect 1.17.0",
"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" }
}
}

View File

@@ -0,0 +1,12 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.damage",
"type": "object",
"description": "Deals damage to the target.",
"title": "Damage 1.17.0",
"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" }
}
}

View File

@@ -0,0 +1,8 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.decrement_stack",
"type": "object",
"description": "Decrement item stack.",
"title": "Decrement Stack 1.17.0",
"additionalProperties": false,
"properties": {}
}

View File

@@ -0,0 +1,8 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.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.17.0",
"additionalProperties": false,
"properties": { "target": { "type": "object", "default": "self", "description": "The target context to execute against.", "title": "Target" } }
}

View File

@@ -0,0 +1,12 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.play_effect",
"type": "object",
"description": "Spawns a particle effect relative to target position.",
"title": "Play Effect 1.17.0",
"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" }
}
}

View File

@@ -0,0 +1,11 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.playsound",
"type": "object",
"description": "Play a sound relative to target position.",
"title": "Playsound 1.17.0",
"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" }
}
}

View File

@@ -0,0 +1,16 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.remove_mob_effect",
"type": "object",
"description": "Removes mob effect from target.",
"title": "Remove Mob Effect 1.17.0",
"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" }
}
}

View File

@@ -0,0 +1,16 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.run_command",
"type": "object",
"description": "Triggers a slash command or a list of slash commands.",
"title": "Run Command 1.17.0",
"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" }
}
}

View File

@@ -0,0 +1,8 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.set_block",
"type": "object",
"description": "Sets this block to another block type.",
"title": "Set Block 1.17.0",
"additionalProperties": false,
"properties": { "block_type": { "type": "string", "default": "", "description": "The type of block to set.", "title": "Block Type" } }
}

View File

@@ -0,0 +1,21 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.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.17.0",
"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" }
}
}

View File

@@ -0,0 +1,8 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.set_block_property",
"type": "object",
"description": "Sets a block property on this block",
"title": "Set Block Property 1.17.0",
"additionalProperties": false,
"properties": { "property": { "type": "string", "description": "Block property to set on the block.", "title": "Property" } }
}

View File

@@ -0,0 +1,11 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.spawn_loot",
"type": "object",
"description": "Spawn loot from block.",
"title": "Spawn Loot 1.17.0",
"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" }
}
}

View File

@@ -0,0 +1,8 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.swing",
"type": "object",
"description": "Event causes the actor to swing.",
"title": "Swing 1.17.0",
"additionalProperties": false,
"properties": {}
}

View File

@@ -0,0 +1,42 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.teleport",
"type": "object",
"description": "Teleport target randomly around destination point.",
"title": "Teleport 1.17.0",
"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": "Maximum range the target can teleport relative to the origin destination.",
"title": "Maximum 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" }
}
}

View File

@@ -0,0 +1,8 @@
{
"$id": "blockception.minecraft.behavior.1.17.0.block.events.transform_item",
"type": "object",
"description": "Transforms item into another item.",
"title": "Transform Item 1.17.0",
"additionalProperties": false,
"properties": { "transform": { "type": "string", "description": "Name of the item it should transform into", "title": "Transform" } }
}