BetaProtectedconstructorBetaReadonly BetaheadRotation of the head across pitch and yaw angles.
BetaisBetaBetaItem to give.
OptionalselectSlot: booleanWhether to set the selected slot once given.
BetaOptionalspeed: numberOrders the simulated player to move to a specific block location using navigation. If a move or navigation is already playing, this will override the last move/walk. Note that if the simulated player gets stuck, that simulated player will stop. The player must be touching the ground in order to start navigation.
BetaOptionalspeed: numberOrders the simulated player to move to a specific location using navigation. If a move or navigation is already playing, this will override the last move/walk. Note that if the simulated player gets stuck, that simulated player will stop. The player must be touching the ground in order to start navigation.
BetaA list of locations to use for routing.
Optionalspeed: numberNet speed to use for doing the navigation.
BetaItem to set.
Slot to place the given item in.
OptionalselectSlot: booleanWhether to set the selected slot once set.
BetaIndex of the slot to use.
Location to use the item upon.
Optionaldirection: DirectionDirection to place the specified item within.
OptionalfaceLocationX: numberBlock-face-relative X position where to place the item.
OptionalfaceLocationY: numberBlock-face-relative Y position where to place the item.
BetaItem to use.
Location to use the item upon.
Optionaldirection: DirectionDirection to place the specified item within.
OptionalfaceLocationX: numberBlock-face-relative X position where to place the item.
OptionalfaceLocationY: numberBlock-face-relative Y position where to place the item.
A simulated player can be used within GameTests to represent how a player moves throughout the world and to support testing of how entities and the environment will react to a player. This type derives much of its structure and methods from the @minecraft/server.Player type.