Entity - Uberi/MineTest-API GitHub Wiki

Entity

Description

A distinct and independent object in the world.

Syntax

{
	(Deprecated: Everything in object properties is read directly from here)

	initial_properties = [object_properties](object_properties.html),

	on_activate = function(self, staticdata, dtime_s),
	on_step = function(self, dtime),
	on_punch = function(self, hitter),
	on_rightclick = function(self, clicker),
	get_staticdata = function(self),
	^ Called sometimes; the string returned is passed to on_activate when
	the entity is re-activated from static state

	# Also you can define arbitrary member variables here
	myvariable = whatever,
}
⚠️ **GitHub.com Fallback** ⚠️