mirror of
https://github.com/Mojang/bedrock-samples.git
synced 2025-10-07 04:09:53 +00:00
40 lines
1.8 KiB
JSON
40 lines
1.8 KiB
JSON
{
|
|
"$id": "1926664697",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"description": "Allows the entity to be controlled by a player which is holding the item specified in \"minecraft:item_controllable\" component's \"control_items\" field (required). Also requires the \"minecraft:movement\" component, and the \"minecraft:rideable\" component. On every tick, the entity will attempt to rotate towards where the player is facing with the control item whilst simultaneously moving forward.",
|
|
"properties": {
|
|
"control_flags": {
|
|
"items": {
|
|
"enum": [
|
|
"move",
|
|
"look",
|
|
"jump"
|
|
],
|
|
"title": "Goal's control flags",
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"fractional_rotation": {
|
|
"description": "The entity will attempt to rotate to face where the player is facing each tick. The entity will target this percentage of their difference in their current facing angles each tick (from 0.0 to 1.0 where 1.0 = 100%). This is limited by \"fractional_rotation_limit\". A value of 0.0 will result in the entity no longer turning to where the player is facing. Default value: 0.5.",
|
|
"maximum": 1,
|
|
"minimum": 0.5,
|
|
"type": "number"
|
|
},
|
|
"fractional_rotation_limit": {
|
|
"description": "Limits the total degrees the entity can rotate to face where the player is facing on each tick. Default value: 5.0.",
|
|
"type": "number"
|
|
},
|
|
"mount_speed_multiplier": {
|
|
"description": "Speed multiplier of mount when controlled by player. Default value: 1.0.",
|
|
"type": "number"
|
|
},
|
|
"priority": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"title": "minecraft:behavior.controlled_by_player",
|
|
"type": "object",
|
|
"x-format-version": "1.21.100"
|
|
} |