Skip to content

server/block: Implement the snow layer block#1282

Open
root-nat wants to merge 1 commit into
df-mc:masterfrom
root-nat:feature/snow-layer
Open

server/block: Implement the snow layer block#1282
root-nat wants to merge 1 commit into
df-mc:masterfrom
root-nat:feature/snow-layer

Conversation

@root-nat

Copy link
Copy Markdown

Implements the snow layer block (minecraft:snow_layer), a thin partial covering of snow that can be stacked up to eight layers high.

  • Scales its collision box with the number of layers, with a single layer being passable, matching vanilla.
  • Can be placed on top of any block with a solid upward face, and stacks an extra layer when more snow is used on it. At eight layers it stays a snow layer rather than becoming a full snow block.
  • Breaks for one to four snowballs depending on the number of layers, or the layers themselves with Silk Touch (a full eight-layer block drops a snow block).
  • Melts a layer at a time in biomes that are too warm to sustain snow.

The block follows the existing patterns of similar blocks (Cake, SeaPickle, Carpet). Only the covered_bit=false states are registered; snowlogging (covered_bit), gravity, and melting from a nearby block light source are noted as follow-ups (the last because the world does not currently expose the block light level separately from the sky light).

Fixes #871.

🤖 Generated with Claude Code

Adds the snow layer block (minecraft:snow_layer), a thin partial covering of
snow that may be stacked up to eight layers high. The block scales its
collision box with the number of layers (a single layer is passable), may be
placed on top of any block with a solid upward face, and stacks an extra layer
when more snow is used on it, never converting into a full snow block.

Breaking it drops snowballs (one to four, depending on the number of layers)
or, with Silk Touch, the layers themselves. It melts a layer at a time in
biomes too warm to sustain snow.

Melting from a nearby block light source, gravity and snowlogging
(covered_bit) are left for a follow-up and marked where relevant.

Fixes df-mc#871.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Silentmussle913

Silentmussle913 commented Jun 23, 2026

Copy link
Copy Markdown

gl but this aint gettin accepted 🥀

@RestartFU

Copy link
Copy Markdown
Collaborator

gl but this aint gettin accepted 🥀

tbh it doesn't look bad at all

I'll test the PR out later today or tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: Snow Layer block missing

3 participants