1.21.110 (#376)
* - Added precipitation client biome component * - Renamed input_air_controlled to free_camera_controlled * - Added vertical_movement_action * - Renamed dash to dash_action * - Updated on_death documentation * - Updated :interact slot list * - Added drop_item event response * - Removed experimental markers for poly_mesh * - Removed experimental markers for texture_meshes * - Added use_pixel_depth option to texture_mesh * - Updated swamp surface builder * - Updated roar behavior * - Standardize control_flags definition * - Updated slime_attack behavior * - Added control_flags to certain goals based on vanilla schemas * - Added direction to dash_action * - Added fire_resistant component * - Added underwater_music field to biome_music * - Added redstone_producer block component * - Added flower_pottable * - Added embedded_visual component * - Added embedded item_display_transform * - Added y_rotation filter * - Added on_take_flower trigger to give_flower behavior * - Added passenger_of_entity loot condition * - Added is_baby loot condition * - Added manifest v3 * - Added stonecutter recipe tag - Remove duplicate description in recipe schema * - Give entity_placer block a type
This commit is contained in:
@@ -171,6 +171,7 @@
|
||||
{ "if": { "properties": { "test": { "const": "trusts" } } }, "then": { "$ref": "./filters/trusts.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "weather_at_position" } } }, "then": { "$ref": "./filters/weather_at_position.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "weather" } } }, "then": { "$ref": "./filters/weather.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "y_rotation" } } }, "then": { "$ref": "./filters/y_rotation.json" } },
|
||||
{ "not": { "properties": { "test": { "const": "is_weather" } }, "$comment": "DEPRECATED" } }
|
||||
]
|
||||
}
|
||||
|
||||
26
source/behavior/entities/filters/filters/y_rotation.json
Normal file
26
source/behavior/entities/filters/filters/y_rotation.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.filters.y_rotation",
|
||||
"type": "object",
|
||||
"title": "Y Rotation",
|
||||
"description": "Returns the Y rotation of this entity.",
|
||||
"required": ["value"],
|
||||
"properties": {
|
||||
"test": {
|
||||
"type": "string",
|
||||
"title": "Test",
|
||||
"description": "The test property."
|
||||
},
|
||||
"operator": {
|
||||
"$ref": "./types/operator.json"
|
||||
},
|
||||
"subject": {
|
||||
"$ref": "./types/subject.json"
|
||||
},
|
||||
"value": {
|
||||
"description": "(Required) A floating point value.",
|
||||
"type": "number",
|
||||
"default": true,
|
||||
"title": "Value"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
"title": "Move Towards Restriction",
|
||||
"additionalProperties": false,
|
||||
"description": "Allows Guardians, Iron Golems and Villagers to move within their pre-defined area that the mob should be restricted to. Other mobs don't have a restriction defined.",
|
||||
"required": [],
|
||||
"required": [ ],
|
||||
"properties": {
|
||||
"priority": {
|
||||
"$ref": "./types/priority.json"
|
||||
@@ -13,20 +13,12 @@
|
||||
"$ref": "./types/speed_multiplier.json"
|
||||
},
|
||||
"control_flags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["move", "look"],
|
||||
"description": "UNDOCUMENTED: control flags.",
|
||||
"title": "Control Flags"
|
||||
},
|
||||
"description": "UNDOCUMENTED: control flags.",
|
||||
"title": "Control Flags"
|
||||
"$ref": "./types/control_flags.json"
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
{
|
||||
"control_flags": []
|
||||
"control_flags": [ ]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,11 +3,14 @@
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"title": "Roar",
|
||||
"description": "[EXPERIMENTAL BEHAVIOR] Plays the provided sound and activates the `ROARING` actor flag during the specified duration",
|
||||
"description": "Allows this entity to roar at another entity based on data in minecraft:anger_level. Once the anger threshold specified in minecraft:anger_level has been reached, this entity will roar for the specified amount of time, look at the other entity, apply anger boost towards it, and finally target it.",
|
||||
"properties": {
|
||||
"priority": {
|
||||
"$ref": "./types/priority.json"
|
||||
},
|
||||
"control_flags": {
|
||||
"$ref": "./types/control_flags.json"
|
||||
},
|
||||
"duration": {
|
||||
"title": "Duration",
|
||||
"type": "number",
|
||||
|
||||
@@ -7,6 +7,12 @@
|
||||
"properties": {
|
||||
"priority": { "$ref": "./types/priority.json" },
|
||||
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"grow_tired_cooldown_time": {
|
||||
"title": "Grow Tired Cooldown Time",
|
||||
"description": "UNDOCUMENTED",
|
||||
"type": "number"
|
||||
},
|
||||
"set_persistent": {
|
||||
"title": "Set Persistent",
|
||||
"type": "boolean",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"properties": {
|
||||
"priority": { "$ref": "types/priority.json" },
|
||||
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"jump_chance_percentage": {
|
||||
"type": "number",
|
||||
"title": "Jump Chance Percentage",
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
},
|
||||
"speed_multiplier": {
|
||||
"$ref": "types/speed_multiplier.json"
|
||||
}
|
||||
},
|
||||
"control_flags": {"$ref": "./types/control_flags.json"}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"priority": {
|
||||
"$ref": "./types/priority.json"
|
||||
},
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"add_random_time_range": {
|
||||
"title": "Add Random Time Range",
|
||||
"type": "integer",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"priority": {
|
||||
"$ref": "./types/priority.json"
|
||||
},
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"cooldown_range": {
|
||||
"title": "Cooldown Range",
|
||||
"$ref": "../../../../general/vectors/number2.json",
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"properties": {
|
||||
"priority": { "$ref": "./types/priority.json" },
|
||||
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"attack_cooldown": {
|
||||
"title": "Attack Cooldown",
|
||||
"type": "number",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"priority": {
|
||||
"$ref": "types/priority.json"
|
||||
},
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"listen_time": {
|
||||
"title": "Listen Time",
|
||||
"type": "integer",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"priority": {
|
||||
"$ref": "types/priority.json"
|
||||
},
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"idle_time": {
|
||||
"type": "number",
|
||||
"title": "Idle Time",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"priority": {
|
||||
"$ref": "types/priority.json"
|
||||
},
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"material_type": {
|
||||
"title": "Idle Time",
|
||||
"enum": ["water", "lava","any"],
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"properties": {
|
||||
"priority": { "$ref": "types/priority.json" },
|
||||
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"interval": {
|
||||
"title": "Interval",
|
||||
"type": "number",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"properties": {
|
||||
"priority": { "$ref": "types/priority.json" },
|
||||
"speed_multiplier": { "$ref": "types/speed_multiplier.json" },
|
||||
"control_flags": {"$ref": "./types/control_flags.json"},
|
||||
"damage_reach": {
|
||||
"title": "Damage Reach",
|
||||
"type": "number",
|
||||
|
||||
@@ -48,6 +48,11 @@
|
||||
"default": [6, 2, 6],
|
||||
"description": "The dimensions of the AABB used to search for a potential mob to take a flower from.",
|
||||
"$ref": "../../../../general/vectors/number3.json"
|
||||
},
|
||||
"on_take_flower": {
|
||||
"title": "On Take Flower",
|
||||
"$ref": "../types/trigger.json",
|
||||
"description": "Event triggered when the entity takes a flower from another entity."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
"title": "Cooldown Range",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "number",
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"$ref": "../../../../general/vectors/number2.json",
|
||||
"default": [10.0, 10.0]
|
||||
"default": [ 10.0, 10.0 ]
|
||||
}
|
||||
],
|
||||
"description": "Goal cooldown range in seconds."
|
||||
@@ -24,26 +24,18 @@
|
||||
"title": "Duration Range",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "number",
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"$ref": "../../../../general/vectors/number2.json",
|
||||
"default": [2.0, 2.0]
|
||||
"default": [ 2.0, 2.0 ]
|
||||
}
|
||||
],
|
||||
"description": "Goal duration range in seconds."
|
||||
},
|
||||
"control_flags": {
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"minItems": 1,
|
||||
"maxItems": 2,
|
||||
"items": {
|
||||
"enum": ["move", "look"]
|
||||
},
|
||||
"title": "Control Flags",
|
||||
"description": "UNDOCUMENTED"
|
||||
"$ref": "./types/control_flags.json"
|
||||
},
|
||||
"on_end": {
|
||||
"title": "On End",
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.control_flags",
|
||||
"additionalProperties": false,
|
||||
"title": "Control Flags",
|
||||
"minimum": 0,
|
||||
"description": "UNDOCUMENTED",
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"minItems": 1,
|
||||
"maxItems": 2,
|
||||
"items": {
|
||||
"enum": [ "move", "look", "jump" ]
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,7 @@
|
||||
"minecraft:custom_hit_test": { "$ref": "./components/custom_hit_test.json" },
|
||||
"minecraft:damage_over_time": { "$ref": "./components/damage_over_time.json" },
|
||||
"minecraft:damage_sensor": { "$ref": "./components/damage_sensor.json" },
|
||||
"minecraft:dash": { "$ref": "./components/dash.json" },
|
||||
"minecraft:dash_action": { "$ref": "./components/dash_action.json" },
|
||||
"minecraft:default_look_angle": { "$ref": "./components/default_look_angle.json" },
|
||||
"minecraft:despawn": { "$ref": "./components/despawn.json" },
|
||||
"minecraft:dimension_bound": { "$ref": "./components/dimension_bound.json" },
|
||||
@@ -84,7 +84,7 @@
|
||||
"minecraft:horse.jump_strength": { "$ref": "./components/horse.jump_strength.json" },
|
||||
"minecraft:hurt_on_condition": { "$ref": "./components/hurt_on_condition.json" },
|
||||
"minecraft:hurt_when_wet": { "$ref": "./components/hurt_when_wet.json" },
|
||||
"minecraft:input_air_controlled": { "$ref": "./components/input_air_controlled.json" },
|
||||
"minecraft:free_camera_controlled": { "$ref": "./components/free_camera_controlled.json" },
|
||||
"minecraft:input_ground_controlled": { "$ref": "./components/input_ground_controlled.json" },
|
||||
"minecraft:inside_block_notifier": { "$ref": "./components/inside_block_notifier.json" },
|
||||
"minecraft:insomnia": { "$ref": "./components/insomnia.json" },
|
||||
@@ -201,6 +201,7 @@
|
||||
"minecraft:underwater_movement": { "$ref": "./components/attribute.json" },
|
||||
"minecraft:variable_max_auto_step": { "$ref": "./components/variable_max_auto_step.json" },
|
||||
"minecraft:variant": { "$ref": "./components/variant.json" },
|
||||
"minecraft:vertical_movement_action": { "$ref": "./components/vertical_movement_action.json" },
|
||||
"minecraft:vibration_damper": { "$ref": "./components/vibration_damper.json" },
|
||||
"minecraft:vibration_listener": { "$ref": "./components/vibration_listener.json" },
|
||||
"minecraft:walk_animation_speed": { "$ref": "./components/walk_animation_speed.json" },
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.dash",
|
||||
"type": "object",
|
||||
"title": "Dash",
|
||||
"additionalProperties": false,
|
||||
"description": "Ability for a ridable entity to dash.",
|
||||
"required": [],
|
||||
"properties": {
|
||||
"cooldown_time": {
|
||||
"title": "cooldown time",
|
||||
"type": "number",
|
||||
"default": 1.0,
|
||||
"description": "The dash cooldown in seconds."
|
||||
},
|
||||
"horizontal_momentum": {
|
||||
"title": "horizoontal momentum",
|
||||
"type": "number",
|
||||
"default": 1.0,
|
||||
"description": "Horizontal momentum of the dash."
|
||||
},
|
||||
"vertical_momentum": {
|
||||
"title": "vertical momentum",
|
||||
"type": "number",
|
||||
"default": 1.0,
|
||||
"description": "Vertical momentum of the dash."
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
{
|
||||
"value": 0.0
|
||||
}
|
||||
]
|
||||
}
|
||||
40
source/behavior/entities/format/components/dash_action.json
Normal file
40
source/behavior/entities/format/components/dash_action.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.dash_action",
|
||||
"type": "object",
|
||||
"title": "Dash Action",
|
||||
"additionalProperties": false,
|
||||
"description": "Ability for a ridable entity to dash.",
|
||||
"required": [],
|
||||
"properties": {
|
||||
"cooldown_time": {
|
||||
"title": "Cooldown Time",
|
||||
"type": "number",
|
||||
"default": 1.0,
|
||||
"description": "The dash cooldown in seconds."
|
||||
},
|
||||
"horizontal_momentum": {
|
||||
"title": "Horizoontal Momentum",
|
||||
"type": "number",
|
||||
"default": 1.0,
|
||||
"description": "Horizontal momentum of the dash."
|
||||
},
|
||||
"vertical_momentum": {
|
||||
"title": "Vertical Momentum",
|
||||
"type": "number",
|
||||
"default": 1.0,
|
||||
"description": "Vertical momentum of the dash."
|
||||
},
|
||||
"direction": {
|
||||
"title": "Direction",
|
||||
"description": "Should the momentum be applied in the direction of the 'entity' or 'passenger'. When 'entity' is used the momentum is applied horizontally according to the direction the entity is looking, using only the entity's yaw. When 'passenger' is used the momentum will be applied in the direction the controlling passenger is looking, using the passenger's pitch and yaw.",
|
||||
"type": "string",
|
||||
"enum": ["entity", "passenger"],
|
||||
"default": "entity"
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
{
|
||||
"value": 0.0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.input_air_controlled",
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.free_camera_controlled",
|
||||
"description": "When configured as a rideable entity, the entity will be controlled using WASD controls and mouse to move in three dimensions.",
|
||||
"type": "object",
|
||||
"title": "Input Air Controlled",
|
||||
"title": "Free Camera Controlled",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"backwards_movement_modifier": {
|
||||
@@ -163,7 +163,7 @@
|
||||
"drop_item_slot": {
|
||||
"title": "Drop Item Slot",
|
||||
"type": "string",
|
||||
"examples": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet"],
|
||||
"enum": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet", "slot.armor.body", "slot.weapon.offhand", "slot.weapon.mainhand"],
|
||||
"description": "The entity's equipment slot to remove and drop the item from, if any, upon successful interaction."
|
||||
},
|
||||
"drop_item_y_offset": {
|
||||
@@ -176,7 +176,7 @@
|
||||
"title": "Equip Item Slot",
|
||||
"type": "string",
|
||||
"description": "The entity's equipment slot to equip the item to, if any, upon successful interaction.",
|
||||
"examples": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet"]
|
||||
"enum": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet", "slot.armor.body", "slot.weapon.offhand", "slot.weapon.mainhand"]
|
||||
},
|
||||
"repair_entity_item": {
|
||||
"title": "Repair Entity Item",
|
||||
@@ -193,7 +193,7 @@
|
||||
"title": "Slot",
|
||||
"description": "The entity's slot containing the item to be repaired.",
|
||||
"type": "string",
|
||||
"examples": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet"]
|
||||
"enum": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet", "slot.armor.body", "slot.weapon.offhand", "slot.weapon.mainhand"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.on_death",
|
||||
"description": "Adds a trigger to call on this entity's death. minecraft:on_death can only be used by the `ender_dragon` entity.",
|
||||
"description": "Adds a trigger to call on this entity's death.",
|
||||
"title": "On Death",
|
||||
"$ref": "../types/trigger.json"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.vertical_movement_action",
|
||||
"description": "When configured as a rideable entity, the entity will move upwards or downwards when the player uses the jump action.",
|
||||
"type": "object",
|
||||
"title": "Vertical Movement Action",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"vertical_velocity": {
|
||||
"title": "Vertical Velocity",
|
||||
"description": "Vertical velocity to apply when jump action is issued.",
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,6 +123,16 @@
|
||||
},
|
||||
"examples": [{ "vibration": "shear" }, { "vibration": "entity_act" }, { "vibration": "entity_interact" }]
|
||||
},
|
||||
"drop_item": {
|
||||
"title": "Drop Item",
|
||||
"description": "Allows an entity to drop its item in a given slot",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"slot": {
|
||||
"enum": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet", "slot.armor.body", "slot.weapon.offhand", "slot.weapon.mainhand"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"set_property": {
|
||||
"title": "Set Property",
|
||||
"description": "Sets a property on the entity.",
|
||||
|
||||
Reference in New Issue
Block a user