Guide 1 Docs 2 Reference 3

Map pictures

A client draws a map picture only in an item frame. To show a canvas in the world, use a frame display (invisible by default).

v0.1.0
  • The frame hangs in the block at, on the side facing.
  • "up" lies flat on a floor (1.13 and later). A wall side works from 1.8.
  • The frame does not turn or move.
  • Set canvas to change the picture. destroy removes the frame.
local card = world.display{ kind = "frame", at = vec3(3, 65, 7), facing = "up", canvas = deck[12], invisible = true }
card.canvas = deck[53]        -- the back
card.id; card:destroy()

A canvas or screen pixel painted colors.transparent is see-through. clear(colors.transparent) empties a canvas.