It automatically cleans up timers and event listeners in beforeUnmount
.
Because who wants to write boilerplate? And I was bored. And it seemed like a really good idea, until I wrote it.
{ | |
"populate": { | |
"spout_example": { | |
"distribution": "cave", | |
"generator": { | |
"type": "spout", | |
"block": "minecraft:air", | |
"radius": 3, | |
"height": { | |
"value-a": { |
{ | |
"populate": { | |
"dirt": { | |
"distribution": "uniform", | |
"generator": { | |
"block": "dirt", | |
"material": "minecraft:stone", | |
"cluster-size": 33 | |
}, | |
"cluster-count": 10, |
{ | |
"populate": { | |
"structure_example": { | |
"distribution": "surface", | |
"generator": { | |
"type": "structure", | |
"structure": "example_structure.nbt", | |
}, | |
"material": [ | |
"minecraft:dirt", |
{ | |
"populate": { | |
"stalagmite_example": { | |
"distribution": "surface", | |
"generator": { | |
"block": "minecraft:mossy_cobblestone", | |
"type": "stalagmite", | |
"diameter": 3, | |
"count": 1 | |
}, |
{ | |
"populate": { | |
"stalactite_example": { | |
"distribution": "cave", | |
"generator": { | |
"block": "minecraft:mossy_cobblestone", | |
"type": "stalactite", | |
"diameter": 3, | |
"count": 1 | |
}, |
{ | |
"populate": { | |
"spout_example": { | |
"distribution": "surface", | |
"generator": { | |
"type": "spout", | |
"block": "minecraft:cobblestone", | |
"radius": 0, | |
"height": { | |
"min": 30, |
{ | |
"populate": { | |
"spike_example": { | |
"distribution": "surface", | |
"chunk-chance": 16, | |
"cluster-count": 4, | |
"generator": { | |
"type": "spike", | |
"block": { | |
"name": "minecraft:stained_hardened_clay", |
{ | |
"populate": { | |
"cluster_example": { | |
"distribution": "uniform", | |
"chunk-chance": 8, | |
"cluster-count": 10, | |
"min-height": 0, | |
"max-height": 64, | |
"generator": { | |
"type": "cluster", |
{ | |
"populate": { | |
"small_tree_example": { | |
"distribution": "surface", | |
"chunk-chance": 32, | |
"cluster-count": 1, | |
"generator": { | |
"type": "small-tree", | |
"block": "minecraft:netherrack", | |
"leaves": "minecraft:soul_sand", |