Vehicles
Boat
¶
Boat(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Entity
Boat entity for water transportation.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for boats. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the boat. |
time_since_last_hit
property
¶
time_since_last_hit: int
Time since last hit in ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Time since last hit. |
forward_direction
property
¶
forward_direction: int
Forward direction of the boat.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Forward direction, default 1. |
damage_taken
property
¶
damage_taken: float
Damage taken by the boat.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Damage taken. |
boat_type
property
¶
boat_type: int
Type of boat wood.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Boat type (0=oak, 1=spruce, 2=birch, 3=jungle, 4=acacia, 5=dark oak) |
right_paddle_turning
property
¶
right_paddle_turning: bool
Whether right paddle is turning.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Right paddle state. |
left_paddle_turning
property
¶
left_paddle_turning: bool
Whether left paddle is turning.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Left paddle state. |
wood_type_name
property
¶
wood_type_name: str
Human-readable name of the boat wood type.
| RETURNS | DESCRIPTION |
|---|---|
str
|
Wood type name corresponding to boat_type value. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
Minecart
¶
Minecart(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Entity
Base minecart entity for rail transportation.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for minecarts. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the minecart. |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
MinecartRideable
¶
MinecartRideable(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Minecart
Rideable minecart that can carry passengers.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for rideable minecarts. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the rideable minecart. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
MinecartContainer
¶
MinecartContainer(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Minecart
Base class for minecarts that can store items.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier. |
BOUNDING |
The bounding box dimensions (width/depth, height). |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
MinecartChest
¶
MinecartChest(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: MinecartContainer
Chest minecart for item storage and transportation.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for chest minecarts. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the chest minecart. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
MinecartHopper
¶
MinecartHopper(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: MinecartContainer
Hopper minecart for item collection and transportation.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for hopper minecarts. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the hopper minecart. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
MinecartFurnace
¶
MinecartFurnace(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Minecart
Furnace minecart for self-propelled transportation.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for furnace minecarts. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the furnace minecart. |
is_powered
property
¶
is_powered: bool
Whether furnace minecart is currently powered.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if the furnace minecart is powered, False otherwise. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
MinecartTNT
¶
MinecartTNT(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Minecart
TNT minecart for explosive transportation.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for TNT minecarts. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the TNT minecart. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
MinecartSpawner
¶
MinecartSpawner(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Minecart
Spawner minecart for mobile mob spawning.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for spawner minecarts. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the spawner minecart. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |
update_metadata
¶
update_properties
¶
get_attribute
¶
get_metadata_value
¶
MinecartCommandBlock
¶
MinecartCommandBlock(
entity_id: int,
uuid: str,
position: Vector3D[float],
rotation: Rotation,
metadata: Dict[int, Any],
)
Bases: Minecart
Command block minecart for mobile command execution.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ENTITY_TYPE |
The Minecraft entity type identifier for command block minecarts. |
BOUNDING |
The bounding box dimensions (width/depth, height) of the command block minecart. |
last_output
property
¶
last_output: str
Last command output as chat component.
| RETURNS | DESCRIPTION |
|---|---|
str
|
Last output, default '{"text":""}'. |
air
property
¶
air: int
Remaining air ticks.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Number of air ticks remaining before drowning |
custom_name
property
¶
is_custom_name_visible
property
¶
is_custom_name_visible: bool
Whether custom name is visible above entity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if custom name should be displayed above the entity |
is_silent
property
¶
is_silent: bool
Whether entity makes sounds.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is silent and won't produce sounds |
no_gravity
property
¶
no_gravity: bool
Whether entity is affected by gravity.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity ignores gravity effects |
max_health
property
¶
max_health: float
Maximum health attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Maximum health points for this entity |
movement_speed
property
¶
movement_speed: float
Movement speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Movement speed multiplier for this entity |
armor
property
¶
armor: float
Armor attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Armor points providing damage reduction |
attack_speed
property
¶
attack_speed: float
Attack speed attribute value.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Attack speed multiplier for this entity |
on_fire
property
¶
on_fire: bool
Whether entity is on fire (bit 0).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently on fire |
crouched
property
¶
crouched: bool
Whether entity is crouching (bit 1).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is in crouching state |
sprinting
property
¶
sprinting: bool
Whether entity is sprinting (bit 3).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is currently sprinting |
invisible
property
¶
invisible: bool
Whether entity is invisible (bit 5).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has invisibility effect active |
glowing
property
¶
glowing: bool
Whether entity is glowing (bit 6).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity has glowing outline effect |
flying_with_elytra
property
¶
flying_with_elytra: bool
Whether entity is flying with elytra (bit 7).
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if entity is gliding with elytra wings |
shaking_power
property
¶
shaking_power: int
Power of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking power. |
shaking_direction
property
¶
shaking_direction: int
Direction of minecart shaking.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Shaking direction, default 1. |
shaking_multiplier
property
¶
shaking_multiplier: float
Multiplier for minecart shaking effect.
| RETURNS | DESCRIPTION |
|---|---|
float
|
Shaking multiplier. |
custom_block_id
property
¶
custom_block_id: int
Custom block ID and damage value.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block ID. |
custom_block_y_position
property
¶
custom_block_y_position: int
Custom block Y position in 16ths of a block.
| RETURNS | DESCRIPTION |
|---|---|
int
|
Custom block Y position, default 6. |
show_custom_block
property
¶
show_custom_block: bool
Whether to show custom block instead of default.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
Show custom block flag. |
is_shaking
property
¶
is_shaking: bool
Whether minecart is currently shaking.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if shaking_power > 0. |