(Official) LUA Scripting Documentation
set_event_script
Set a script to execute on an event.
Spec:
set_event_script(
string event_type,
string script_name,
long item_id)
Parameters
event_type
:script_name
:item_id
:
Valid values for event_type: “PlayerJoin”, “PlayerLeave”, “PlayerDeath”, “PlayerRespawn”, “ItemSwing”, “ItemEquip” “ItemUnequip”, “CustomMenu”, “ButtonX”, “ButtonY”, “ButtonB”, “BlockPlaced”, “BlockCleared”
Incomplete
This documentation is incomplete