-
Notifications
You must be signed in to change notification settings - Fork 5
content embed
navigation: title: Content Embedding parent: index.md position: 135 icon: minecraft:wool:3 categories:
- widgets
All block-level tags support wrap and align attributes that mirror
Microsoft Word's "Text Wrapping" options.
| Mode | Description |
|---|---|
inline |
Default — block occupies its own vertical slot |
square |
Float left/right; text wraps around in a rectangle |
tight |
Equivalent to square in this layout system |
through |
Equivalent to square in this layout system |
top-bottom |
No text beside the block; align controls horizontal position |
behind |
Block aligns like inline but renders behind text |
front |
Block aligns like inline but renders in front of text |
| Value | Meaning |
|---|---|
left |
Flush left (default) |
center |
Horizontally centred |
right |
Flush right |
A block preview in default inline mode. It sits in the vertical flow.
Some text after the block preview.
Text only appears above and below the placed-block preview, which is centred horizontally.
The placed-block preview is pushed to the right edge.
This paragraph will flow to the right of the block preview. The preview registers as
a left-side document float and subsequent paragraphs automatically shrink their
available width to avoid it, just like a CSS float: left. More text here to
demonstrate the wrapping effect across multiple lines of content.
This paragraph flows to the left of the block preview. wrap="square" combined
with align="right" registers a right-side float in the layout engine. Longer
sentences will wrap across several lines on the left of the float.
The placed-block preview is centred horizontally. No text flows to the sides.
Text to the right of a floating image using the new wrap + align syntax.
This is equivalent to the legacy align="left" attribute on <FloatingImage>.
Text to the left of a floating image using wrap="square" align="right".
Text to the right of a recipe box. The recipe floats left and subsequent paragraph text fills the space beside it.
Text to the left of a recipe box using a right-side float.
This paragraph text flows to the right of the scene viewport. The
wrap="square" align="left" combination registers the scene as a
left-side document float, so all subsequent paragraphs narrow their
available width until the float clears. Additional text is added here
to show multi-line wrapping around the scene.
A scene that is horizontally centred using align="center" without any
float — text appears only above and below, never beside.
This paragraph text flows to the left of the scene. Multiple lines of text here demonstrate that the right-float reduces the line box on the right side for each line until the scene's registered float clears.
Crafting Table
Used to craft items.
A <Column> block carrying wrap="square" align="left" floats left just
like any other block-level tag. The column contains structured content
(headings, text) and text in the document flows to the right of it.
Note
This column is centred horizontally without floating.
Text that appears below a centred Column block.
Text to the left of a right-floating recipe box.