Guide 1 Docs 2 Reference 3

Function of World

world.display

A model stands in the world through the same call as everything else, and is the one kind that hands back something other than a Display.

world.display((opts: { kind: "model", model: Model, at: Vec3?, rotation: Orientation?, scale: (number | Vec3)?, -- models require equal positive axes paint: { [string]: Ink }?, fallback: string?, seats: { Vec3 }?, lead: boolean?, }) -> ModelDisplay) →  & ((opts: { kind: "item" | "text" | "block" | "frame", at: Vec3?, rotation: Orientation?, scale: (Vec3 | number)?, billboard: Billboard?, glow: (Ink | false)?, item: ItemSpec?, canvas: Canvas?, context: Context?, text: Text?, color: Ink?, background: (Ink | false)?, line_width: number?, shadow: boolean?, block: string?, facing: ScreenFacing?, invisible: boolean?, glide: number?, lead: boolean?, }) -> Display)

Parameters

(opts{ kind: "model", model: Model, at: Vec3?, rotation: Orientation?, scale: (number | Vec3)?, -- models require equal positive axes paint: { [string]: Ink }?, fallback: string?, seats: { Vec3 }?, lead: boolean?, }) -> ModelDisplayrequired

Returns

& ((opts: { kind: "item" | "text" | "block" | "frame", at: Vec3?, rotation: Orientation?, scale: (Vec3 | number)?, billboard: Billboard?, glow: (Ink | false)?, item: ItemSpec?, canvas: Canvas?, context: Context?, text: Text?, color: Ink?, background: (Ink | false)?, line_width: number?, shadow: boolean?, block: string?, facing: ScreenFacing?, invisible: boolean?, glide: number?, lead: boolean?, }) -> Display)

Used in