Skip to content

Instantly share code, notes, and snippets.

Avatar
😓
working on website remake in Saber and exploring generative art and fractals

sustained sustained

😓
working on website remake in Saber and exploring generative art and fractals
View GitHub Profile
@sustained
sustained / README.md
Last active Jul 16, 2019
Automatically clean up timers (setInterval, setTimeout) and event listeners (addEventListener) for Vue.js.
View README.md

What?

It automatically cleans up timers and event listeners in beforeUnmount.

Why?

Because who wants to write boilerplate? And I was bored. And it seemed like a really good idea, until I wrote it.

Note

@sustained
sustained / spout_example_sinkholes.json
Created Jul 11, 2019
CoFH World Examples - Feature Types - Spout (Sinkholes)
View spout_example_sinkholes.json
{
"populate": {
"spout_example": {
"distribution": "cave",
"generator": {
"type": "spout",
"block": "minecraft:air",
"radius": 3,
"height": {
"value-a": {
View vanilla_ores.json
{
"populate": {
"dirt": {
"distribution": "uniform",
"generator": {
"block": "dirt",
"material": "minecraft:stone",
"cluster-size": 33
},
"cluster-count": 10,
@sustained
sustained / structure_example.json
Last active Jul 12, 2019
CoFH World Examples - Feature Types - Structure
View structure_example.json
{
"populate": {
"structure_example": {
"distribution": "surface",
"generator": {
"type": "structure",
"structure": "example_structure.nbt",
},
"material": [
"minecraft:dirt",
@sustained
sustained / stalagmite_example.json
Last active Jul 12, 2019
CoFH World Examples - Feature Types - Stalagmite
View stalagmite_example.json
{
"populate": {
"stalagmite_example": {
"distribution": "surface",
"generator": {
"block": "minecraft:mossy_cobblestone",
"type": "stalagmite",
"diameter": 3,
"count": 1
},
@sustained
sustained / stalactite_example.json
Last active Jul 12, 2019
CoFH World Examples - Feature Types - Stalactite
View stalactite_example.json
{
"populate": {
"stalactite_example": {
"distribution": "cave",
"generator": {
"block": "minecraft:mossy_cobblestone",
"type": "stalactite",
"diameter": 3,
"count": 1
},
@sustained
sustained / spout_example.json
Last active Jul 12, 2019
CoFH World Examples - Feature Types - Spout
View spout_example.json
{
"populate": {
"spout_example": {
"distribution": "surface",
"generator": {
"type": "spout",
"block": "minecraft:cobblestone",
"radius": 0,
"height": {
"min": 30,
@sustained
sustained / spike_example.json
Last active Jul 9, 2019
CoFH World Examples - Feature Types - Spike
View spike_example.json
{
"populate": {
"spike_example": {
"distribution": "surface",
"chunk-chance": 16,
"cluster-count": 4,
"generator": {
"type": "spike",
"block": {
"name": "minecraft:stained_hardened_clay",
@sustained
sustained / sparse_cluster_example.json
Last active Jul 8, 2019
CoFH World Examples - Feature Types - Sparse Cluster
View sparse_cluster_example.json
{
"populate": {
"cluster_example": {
"distribution": "uniform",
"chunk-chance": 8,
"cluster-count": 10,
"min-height": 0,
"max-height": 64,
"generator": {
"type": "cluster",
@sustained
sustained / small_tree_example.json
Last active Jul 8, 2019
CoFH World Examples - Feature Types - Small Tree
View small_tree_example.json
{
"populate": {
"small_tree_example": {
"distribution": "surface",
"chunk-chance": 32,
"cluster-count": 1,
"generator": {
"type": "small-tree",
"block": "minecraft:netherrack",
"leaves": "minecraft:soul_sand",