Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/physics.json
StealthyX 42cab4f25a minecraft:physics - added "push_towards_closest_space" (#170)
Updated physics.json with new variable "push_towards_closest_space" and updated documentation to be consistent, added another example.

The "push_towards_closest_space" is found on enmtities/player.json in the behavior pack in the version 1.19.50
2023-04-02 09:06:14 +02:00

30 lines
1.0 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.physics",
"additionalProperties": false,
"type": "object",
"title": "Physics",
"description": "Defines the physical properties of an actor, including whether it is affected by gravity, whether it collides with objects, or whether it is pushed to the closest space.",
"required": [],
"properties": {
"has_collision": {
"type": "boolean",
"default": true,
"description": "Whether or not the entity collides with things.",
"title": "Has Collision"
},
"has_gravity": {
"type": "boolean",
"default": true,
"description": "Whether or not the entity is affected by gravity.",
"title": "Has Gravity"
},
"push_towards_closest_space": {
"type": "boolean",
"default": true,
"description": "Whether or not the entity is pushed to the closest space.",
"title": "Pushed Towards Closest Space"
}
},
"examples": [{}, { "has_collision": true, "has_gravity": true }, { "push_towards_closest_space": true}]
}