Guide 1 Docs 2 Reference 3

Function of Ui

ui.define

A layout of one child, centred over the hotbar with its bottom edge margin pixels above the screen's (40, or 25 when hide_hud takes the hearts and the food away). While the pack loads only.

ui.define(name: string, opts: { anchor: "bottom"?, margin: number?, [number]: LayoutNode }) → Layout

Parameters

namestringrequired
opts{ anchor: "bottom"?, margin: number?, [number]: LayoutNode }required

Returns

Layout

Used in