Updated to 1.21.50 (#330)
* - Add new client biome components * - Added built-in block tags * - Add liquid detection block component * - Add item visual component * - Allow ambient_occlusion to use floats * - Added cannot_be_attacked and ignore component * - Added play_sound event response * - Added summon_event property to summon_entity behavior * - Updated home and looked_at components * - Added compostable item component * - Added jigsaws * - Added processor_lists * - Made identifier required in jigsaws * - Added structure sets * - Remove compressed volume file * - Add template pools * - Setup jigsaw schemas * - Added broadcast_when_dying * - Update interact.vibration * - Fix format_version ref in jigsaw schemas
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"title": "Summon Entity",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [],
|
||||
"required": [ ],
|
||||
"properties": {
|
||||
"priority": {
|
||||
"$ref": "./types/priority.json"
|
||||
@@ -111,7 +111,7 @@
|
||||
"type": "string",
|
||||
"default": "line",
|
||||
"description": "The base shape of this step. Valid values are circle and line",
|
||||
"enum": ["line", "circle"],
|
||||
"enum": [ "line", "circle" ],
|
||||
"title": "Shape"
|
||||
},
|
||||
"size": {
|
||||
@@ -137,6 +137,11 @@
|
||||
"description": "Maximum radius where the summon entities can spawn.",
|
||||
"title": "Summon Cap Radius"
|
||||
},
|
||||
"summon_event": {
|
||||
"title": "Summon Event",
|
||||
"default": "self",
|
||||
"description": "Event to invoke on each summoned entity on spawn."
|
||||
},
|
||||
"target": {
|
||||
"type": "string",
|
||||
"default": "self",
|
||||
@@ -163,7 +168,7 @@
|
||||
},
|
||||
"examples": [
|
||||
{
|
||||
"summon_choices": []
|
||||
"summon_choices": [ ]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
"minecraft:can_fly": { "$ref": "./components/can_fly.json" },
|
||||
"minecraft:can_join_raid": { "$ref": "./components/can_join_raid.json" },
|
||||
"minecraft:can_power_jump": { "$ref": "./components/can_power_jump.json" },
|
||||
"minecraft:cannot_be_attacked": { "$ref": "./components/cannot_be_attacked.json" },
|
||||
"minecraft:celebrate_hunt": { "$ref": "./components/celebrate_hunt.json" },
|
||||
"minecraft:collision_box": { "$ref": "./components/collision_box.json" },
|
||||
"minecraft:color": { "$ref": "./components/color.json" },
|
||||
@@ -71,6 +72,7 @@
|
||||
"minecraft:genetics": { "$ref": "./components/genetics.json" },
|
||||
"minecraft:giveable": { "$ref": "./components/giveable.json" },
|
||||
"minecraft:ground_offset": { "$ref": "./components/ground_offset.json" },
|
||||
"minecraft:ignore_cannot_be_attacked": { "$ref": "./components/ignore_cannot_be_attacked.json" },
|
||||
"minecraft:group_size": { "$ref": "./components/group_size.json" },
|
||||
"minecraft:grows_crop": { "$ref": "./components/grows_crop.json" },
|
||||
"minecraft:healable": { "$ref": "./components/healable.json" },
|
||||
|
||||
@@ -61,6 +61,12 @@
|
||||
"description": "If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob is attacked.",
|
||||
"title": "Broadcast Anger On Being Attacked"
|
||||
},
|
||||
"broadcast_anger_when_dying": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "If false, when this mob is killed it does not spread its anger to other entities of the same entity definition within the broadcastRange",
|
||||
"title": "Broadcast Anger When Dying"
|
||||
},
|
||||
"duration": {
|
||||
"title": "Duration",
|
||||
"type": "integer",
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.cannot_be_attacked",
|
||||
"type": "object",
|
||||
"title": "Cannot Be Attacked",
|
||||
"additionalProperties": false,
|
||||
"description": "When set, blocks entities from attacking the owner entity unless they have the \"minecraft:ignore_cannot_be_attacked\" component.",
|
||||
"required": [ ],
|
||||
"properties": { }
|
||||
}
|
||||
@@ -52,7 +52,7 @@
|
||||
"title": "Deals Damage",
|
||||
"description": "Defines how received damage affects the entity:\n- 'yes', received damage is applied to the entity.\n- 'no', received damage is not applied to the entity.\n- 'no_but_side_effects_apply', received damage is not applied to the entity, but the side effects of the attack are. This means that the attacker's weapon loses durability, enchantment side effects are applied, and so on.",
|
||||
"enum": [ "yes", "no", "no_but_side_effects_apply" ],
|
||||
"default": "yes",
|
||||
"default": "yes"
|
||||
},
|
||||
"on_damage": {
|
||||
"type": "object",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
},
|
||||
"restriction_type": {
|
||||
"title": "Restriction Type",
|
||||
"description": "Defines how the the entity will be restricted to its home position. The possible values are:\n- 'none', which poses no restriction.\n- 'random_movement', which restricts randomized movement to be around the home position.\n- [Beta] 'all_movement', which restricts any kind of movement to be around the home position. However, entities that somehow got too far away from their home will always be able to move closer to it, if prompted to do so.",
|
||||
"description": "Defines how the the entity will be restricted to its home position. The possible values are:\n- 'none', which poses no restriction.\n- 'random_movement', which restricts randomized movement to be around the home position.\n- 'all_movement', which restricts any kind of movement to be around the home position. However, entities that somehow got too far away from their home will always be able to move closer to it, if prompted to do so.",
|
||||
"enum": [ "none", "random_movement", "all_movement" ],
|
||||
"default": "none"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.ignore_cannot_be_attacked",
|
||||
"type": "object",
|
||||
"title": "Ignore Cannot Be Attacked",
|
||||
"additionalProperties": false,
|
||||
"description": "When set, allows the entity to attack entities that have the \"minecraft:cannot_be_attacked\" component.",
|
||||
"required": [ ],
|
||||
"properties": {
|
||||
"filters": {
|
||||
"title": "Filters",
|
||||
"$ref": "../../filters/filters.json",
|
||||
"description": "Defines which entities are exceptions and are allowed to be attacked by the owner entity, potentially attacked entity is subject \"other\". If this is not specified then all attacks by the owner are allowed."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -138,7 +138,9 @@
|
||||
"vibration": {
|
||||
"title": "Vibration",
|
||||
"type": "string",
|
||||
"description": "Vibration to emit when the interaction occurs. Admitted values are entity_interact (used by default), shear, and none (no vibration emitted)."
|
||||
"default": "entity_interact",
|
||||
"description": "Vibration to emit when the interaction occurs. Admitted values are none (no vibration emitted), shear, entity_die, entity_act, entity_interact.",
|
||||
"enum": ["none", "shear", "entity_die", "entity_act", "entity_interact"]
|
||||
},
|
||||
"give_item": {
|
||||
"title": "Give Item",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"field_of_view": {
|
||||
"type": "number",
|
||||
"default": 26,
|
||||
"description": "[Beta] Defines, in degrees, the width of the field of view for entities looking at the owner entity. If 'scale_fov_by_distance' is set to true, this value corresponds to the field of view at a distance of one block between the entities.",
|
||||
"description": "Defines, in degrees, the width of the field of view for entities looking at the owner entity. If 'scale_fov_by_distance' is set to true, this value corresponds to the field of view at a distance of one block between the entities.",
|
||||
"title": "Field Of View"
|
||||
},
|
||||
"filters": {
|
||||
@@ -18,25 +18,40 @@
|
||||
},
|
||||
"find_players_only": {
|
||||
"title": "Find Players Only",
|
||||
"description": "[Beta] Limits the search to only the nearest Player that meets the specified \"filters\" rather than all nearby entities.",
|
||||
"description": "Limits the search to only the nearest Player that meets the specified \"filters\" rather than all nearby entities.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"line_of_sight_obstruction_type": {
|
||||
"title": "Line Of Sight Obstruction Type",
|
||||
"description": "[Beta] Defines the type of block shape used to check for line of sight obstructions.",
|
||||
"description": "Defines the type of block shape used to check for line of sight obstructions.",
|
||||
"type": "string",
|
||||
"enum": [ "outline", "collision", "collision_for_camera" ],
|
||||
"default": "collision"
|
||||
},
|
||||
"look_at_locations": {
|
||||
"title": "Look At Locations",
|
||||
"description": "[Beta] A list of locations on the owner entity towards which line of sight checks are performed. At least one location must be unobstructed for the entity to be considered as looked at.",
|
||||
"description": "A list of locations on the owner entity towards which line of sight checks are performed. At least one location must be unobstructed for the entity to be considered as looked at.",
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": {
|
||||
"enum": [ "head", "body", "feet" ]
|
||||
"title": "",
|
||||
"description": "",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"location": {
|
||||
"title": "Location",
|
||||
"type": "string",
|
||||
"description": "Location to be looked at",
|
||||
"enum": [ "head", "body", "feet" ]
|
||||
},
|
||||
"vertical_offset": {
|
||||
"title": "Vertical Offset",
|
||||
"description": "Vertical offset from the set location",
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"looked_at_cooldown": {
|
||||
@@ -51,13 +66,13 @@
|
||||
"$ref": "../types/event_object.json"
|
||||
},
|
||||
"not_looked_at_event": {
|
||||
"description": "[Beta] Defines the event to trigger when no entity is found looking at the owner entity.",
|
||||
"description": "Defines the event to trigger when no entity is found looking at the owner entity.",
|
||||
"title": "Not Looked At Event",
|
||||
"$ref": "../types/event_object.json"
|
||||
},
|
||||
"scale_fov_by_distance": {
|
||||
"title": "Scale Fov By Distance",
|
||||
"description": "[Beta] When true, the field of view narrows as the distance between the owner entity and the entity looking at it increases. This ensures that the width of the view cone remains somewhat constant towards the owner entity position, regardless of distance.",
|
||||
"description": "When true, the field of view narrows as the distance between the owner entity and the entity looking at it increases. This ensures that the width of the view cone remains somewhat constant towards the owner entity position, regardless of distance.",
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
@@ -69,7 +84,7 @@
|
||||
},
|
||||
"set_target": {
|
||||
"title": "Set Target",
|
||||
"description": "Defines if and how the owner entity will set entities that are looking at it as its combat targets. Valid values:\n- \"never\", looking entities are never set as targets, but events are emitted.\n- \"once_and_stop_scanning\", the first detected looking entity is set as target. Scanning and event emission is suspended if and until the owner entity has a target.\n- [Beta] \"once_and_keep_scanning\", the first detected looking entity is set as target. Scanning and event emission continues.",
|
||||
"description": "Defines if and how the owner entity will set entities that are looking at it as its combat targets. Valid values:\n- \"never\", looking entities are never set as targets, but events are emitted.\n- \"once_and_stop_scanning\", the first detected looking entity is set as target. Scanning and event emission is suspended if and until the owner entity has a target.\n- \"once_and_keep_scanning\", the first detected looking entity is set as target. Scanning and event emission continues.",
|
||||
"type": "string",
|
||||
"default": "once_and_stop_scanning",
|
||||
"enum": [ "never", "once_and_stop_scanning", "once_and_keep_scanning" ]
|
||||
|
||||
@@ -164,6 +164,32 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"play_sound": {
|
||||
"title": "Play Sound",
|
||||
"description": "Allows the owner entity to emit sounds",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"sound": {
|
||||
"title": "Sound",
|
||||
"description": "Specifies the sound event to play",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"emit_particle": {
|
||||
"title": "Emit Particle",
|
||||
"description": "Allowing particles to be emitted at the center of the entity's bounding box",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"particle": {
|
||||
"title": "Particle",
|
||||
"description": "Specifies the type of particle to emit",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user