(Official) LUA Scripting Documentation
add_flying_block
Add a falling block at the map point.
Spec:
add_flying_block(
long x,
long y,
long z,
long block_id,
double vel_x,
double vel_y,
double vel_z,
double gravity,
double break_chance)
Parameters
x
: The x component of the map pointy
: The y component of the map pointz
: The z component of the map pointblock_id
: The block idvel_x
: The x velocity of the blockvel_y
: The y velocity of the blockvel_z
: The z velocity of the blockgravity
: A gravity multiplierbreak_chance
: The chance the block will break on impact. This is a decimal between 0 and 1, 0 being 0% and 1 being 100%.
Example
add_flying_block(0, 230, 0, block.dirt, 0, 0, 0, 1, 0.5)
Spawns a flying dirt block at 0, 230, 0 that will fall straight down with a gravity muliplier of 1.
Incomplete
This documentation is incomplete