diff --git a/doc/en/scripting/events.md b/doc/en/scripting/events.md index fe7d5eecb..0b61d5b4b 100644 --- a/doc/en/scripting/events.md +++ b/doc/en/scripting/events.md @@ -180,22 +180,6 @@ function on_inventory_closed(invid: int, playerid: int) Called when the inventory is closed. -### CONTENT events - -Callbacks specified in *content.lua* script. - -```lua -function on_scripts_loading() -``` - -Called before the content pack scripts are loaded - -```lua -function on_content_loaded() -``` - -Called after the content pack has been fully loaded - ## Layout events Script *layouts/layout_name.xml.lua* events. @@ -214,6 +198,22 @@ function on_close(invid: int) Called on element removed from the screen. +## CONTENT events + +Callbacks specified in *content.lua* script. + +```lua +function on_scripts_loading() +``` + +Called before the content pack scripts are loaded + +```lua +function on_content_loaded() +``` + +Called after the content pack has been fully loaded + ## HUD events Callbacks specified in *hud.lua* script.