đ Decay Block
Decay Block advances through age stages and eventually transforms into another block â like ice melting into water.
It works in one of two modes:
- Fixed interval (
delayset to a positive value or range): the block ticks on a timer. After each interval it checks the light level andchance, incrementsageif the check passes, and re-schedules itself. Whenagereaches max, the block becomesdecay_into. - Random tick (
delaynot set or ⤠0): the block listens for random ticks instead. Same logic applies on each successful tick.
If required_light is set above 0, decay only triggers when the light level at or around the block meets the threshold.
| Property Name | Property Type | Required |
|---|---|---|
| age | int | yes |
Exampleâ
blocks:
default:ice:
behavior:
type: decay_block
decay_into: water # the block to become when fully decayed (default air)
delay: 100~200 # ticks between age increments, omit for random-tick mode (optional)
chance: 0.5 # probability of advancing each interval (default 1)
required_light: 0 # minimum light required for decay, 0 = always (default 0)