Skip to content

feat: implemented composter and scaffolding - #52

Open
NaySurGithub wants to merge 1 commit into
altayofficial:devfrom
NaySurGithub:feat/composter-scaffolding
Open

feat: implemented composter and scaffolding#52
NaySurGithub wants to merge 1 commit into
altayofficial:devfrom
NaySurGithub:feat/composter-scaffolding

Conversation

@NaySurGithub

Copy link
Copy Markdown

Added the composter and the scaffolding to Altay.

Changes

API changes

  • Added Composter, with getFillLevel(), setFillLevel(), isEmpty(), isReady() and the static Composter::getCompostChance(Item $item) : int, which returns the percentage of chance an item has to raise the fill level, or 0 if it cannot be composted.
  • Added Scaffolding, with getStability() and setStability().
  • Added ComposterEmptySound, ComposterFillSound, ComposterFillSuccessSound and ComposterReadySound.

Behavioural changes

.

Backwards compatibility

No backwards compatibility breaks.

Tests

Both blocks were tested in game: composting each chance tier, tower stacking, the six-block bridge limit, climbing, and the collapse of an unsupported tower.

@NaySurGithub
NaySurGithub force-pushed the feat/composter-scaffolding branch 3 times, most recently from 5105dd6 to ac00994 Compare August 20, 2026 12:47
Comment thread src/block/Composter.php Outdated
@NaySurGithub
NaySurGithub force-pushed the feat/composter-scaffolding branch from ac00994 to feaf629 Compare August 20, 2026 16:46
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.

2 participants