Total Miner

(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


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


back