Skip to content

Implement Moss blocks#6885

Open
Azvyl wants to merge 26 commits intopmmp:minor-nextfrom
Azvyl:moss-blocks
Open

Implement Moss blocks#6885
Azvyl wants to merge 26 commits intopmmp:minor-nextfrom
Azvyl:moss-blocks

Conversation

@Azvyl
Copy link
Copy Markdown
Contributor

@Azvyl Azvyl commented Nov 2, 2025

This PR implements moss blocks and moss carpets, including their pale variants. This also update relevant block logic to recognize moss blocks as valid support.

This PR does not implement Azalea and Flowering Azalea

1.17.0 - Caves and Cliffs, 1.21.50 - The Garden Awakens

Related issues & PRs

#6116

Changes

API changes

  • Added new block classes: MossBlock, MossCarpet, PaleMossBlock, PaleMossCarpet, and PaleMossCarpetVine
  • Registered MOSS_BLOCK, MOSS_CARPET, PALE_MOSS_BLOCK, PALE_MOSS_CARPET, and PALE_MOSS_CARPET_VINE in VanillaBlocks
  • Added new block type IDs for moss blocks and carpets in BlockTypeIds
  • Introduced the MOSS_REPLACEABLE tag in BlockTypeTags and applied it to relevant existing blocks to allow moss spreading and placement
  • Updated support logic in various blocks to allow placement on moss blocks and recognize moss blocks as valid supports.

Behavioural changes

  • These blocks now recognize moss block as valid support:
    • Bamboo & Bamboo Sapling
    • Big Dripleaf
    • Deadbush
    • DoublePlant
    • Flowers
    • Nether Fungus
    • Nether Roots
    • Nether Sprouts
    • Pink Petals
    • Saplings
    • Small Dripleaf
    • Sugarcane
    • Sweet Berry Bush
    • Tall Grass

Follow-up

Implement Azalea and Flowering Azalea

Tests

https://youtu.be/mBI6AJ52Lx8

@Azvyl Azvyl requested a review from a team as a code owner November 2, 2025 09:39
Copy link
Copy Markdown
Member

@dktapps dktapps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know WTF is going on with Mossy Carpet

@dktapps
Copy link
Copy Markdown
Member

dktapps commented Nov 2, 2025

Sorry for all the WTFs btw. Since I'm not familiar with pale moss carpets I was tripping out wondering if you'd vibecoded the class for it 😂

@dktapps dktapps added Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP labels Nov 2, 2025
Copy link
Copy Markdown
Member

@ShockedPlot7560 ShockedPlot7560 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if I missed something with the TODO removing ? Does minecraft changed the behavior ?

@Azvyl
Copy link
Copy Markdown
Contributor Author

Azvyl commented Nov 4, 2025

I added the DIRT tag to the moss block. That's what the game does to check for support for most blocks

@github-actions
Copy link
Copy Markdown
Contributor

This PR has been marked as "Waiting on Author", but we haven't seen any activity in 7 days.

If there is no further activity, it will be closed in 28 days.

Note for maintainers: Adding an assignee to the PR will prevent it from being marked as stale.

@github-actions github-actions bot added the Stale label Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Gameplay Related to Minecraft gameplay experience Type: Enhancement Contributes features or other improvements to PocketMine-MP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants