Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Stencil Display: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 12: Line 12:


== Usage ==
== Usage ==
It is unknown what the use of the entity is, if any at all.
Considering that this entity renders with the same stencil buffer effect as the Bedrock edition entity shadows (enabled through voting in this update), it was likely used by developers as a reference for the implementation of [https://en.wikipedia.org/wiki/Shadow_volume shadow volumes] in Java edition. Though the stencil display itself is not summoned, voting for Bedrock edition shadows will cause every entity to render a shadow under itself with a similar visual effect.


== Appearance ==
== Appearance ==
When spawned in with no data specified, it appears solid white, and is unaffected by lighting.
The stencil display appears as the intersection between a cube sphere ({{code|shape}} 0) or cylinder ({{code|shape}} 1) and the terrain, filled in with a solid white color.


The stencil display appears as a flat surface unless intersecting with a block, if it intersects with a block, it attempts to wrap itself to the surface.
It also affects the color of the block outline when covering part of a block.


;Level of Detail
;Level of Detail
Stencil Display has a data tag called {{code|lod}} that affects how it appears. It is set to 0 by default, but can be modified using commands. Starting off as a square at {{code|lod}} 0, and becoming a higher quality polygon, then circle as the {{code|lod}} value increases, seeming to stop at 4, although the value can still be set higher.
The stencil display's {{code|lod}} tag controls the level of detail of its geometry (via the number of subdivisions). It is set to 0 by default, but can be modified using commands. It uses a cuboid volume at {{code|lod}} 0, but more closely approximates a sphere as the {{code|lod}} value increases, up to a maximum of 4.
 
It also affects the color of the block outline when covering part of a block.


;Shape
;Shape
Stencil Display has a data tag called {{code|shape}} that affects how the geometry is made up. It is set to 0 by default, making it start as a square. It can be modified using commands. Setting {{code|shape}} to 1 will make it start off as a triangle, and each level of {{code|lod}} adds 1 more triangle of detail, e.g. square, pentagon, hexagon, etc.
The {{code|shape}} tag affects what shape the stencil display uses. By default, it's set to 0, creating a cuboid or spherical volume with {{code|lod}} subdivisions. If set to 1, it will instead approximate a cylinder (starting as a triangular prism), with 3 + {{code|lod}} sides.


;Color
;Color
Stencil Display has a data tag called {{code|color}}, this differs from other decimal color fields as it also deals with transparency of the stencil too.
The stencil display has a {{code|color}} tag, which affects the color used to fill in the stencil cutout where it intersects with the terrain. It differs from the {{code|color}} tag of other entities, as it affects the transparency of the stencil display in addition to the base color.


== Data values ==
== Data values ==

Revision as of 11:13, 22 September 2026

Template:Joke feature Template:Stub Template:Infobox entity

Stencil displays are Minecraft:entities exclusive to the April Fools' snapshot 23w13a_or_b. They can only be created with the Template:Cmd command. It shares a lot of data tags with other Minecraft:display entities.

Usage

Considering that this entity renders with the same stencil buffer effect as the Bedrock edition entity shadows (enabled through voting in this update), it was likely used by developers as a reference for the implementation of shadow volumes in Java edition. Though the stencil display itself is not summoned, voting for Bedrock edition shadows will cause every entity to render a shadow under itself with a similar visual effect.

Appearance

The stencil display appears as the intersection between a cube sphere (Template:Code 0) or cylinder (Template:Code 1) and the terrain, filled in with a solid white color.

It also affects the color of the block outline when covering part of a block.

Level of Detail

The stencil display's Template:Code tag controls the level of detail of its geometry (via the number of subdivisions). It is set to 0 by default, but can be modified using commands. It uses a cuboid volume at Template:Code 0, but more closely approximates a sphere as the Template:Code value increases, up to a maximum of 4.

Shape

The Template:Code tag affects what shape the stencil display uses. By default, it's set to 0, creating a cuboid or spherical volume with Template:Code subdivisions. If set to 1, it will instead approximate a cylinder (starting as a triangular prism), with 3 + Template:Code sides.

Color

The stencil display has a Template:Code tag, which affects the color used to fill in the stencil cutout where it intersects with the terrain. It differs from the Template:Code tag of other entities, as it affects the transparency of the stencil display in addition to the base color.

Data values

ID

Template:ID table

Issues

Template:April Fools issue list

Gallery

Navigation

Template:Navbox entities Template:Navbox jokes

Minecraft:zh:模板展示实体