Skip to content

Instantly share code, notes, and snippets.

@misode
Last active November 5, 2020 00:59
Show Gist options
  • Save misode/8437437b6446899070a78874e78c25af to your computer and use it in GitHub Desktop.
Save misode/8437437b6446899070a78874e78c25af to your computer and use it in GitHub Desktop.
{
"type": "decorated",
"config": {
"decorator": {
"type": "chance",
"config": {
"chance": 48
}
},
"feature": {
"type": "decorated",
"config": {
"decorator": {
"type": "square"
},
"feature": {
"type": "geode",
"config": {
"blocks": {
"filling_provider": {
"type": "simple_state_provider",
"state": {
"Name": "minecraft:air"
}
},
"inner_layer_provider": {
"type": "simple_state_provider",
"state": {
"Name": "minecraft:amethyst_block"
}
},
"alternate_inner_layer_provider": {
"type": "simple_state_provider",
"state": {
"Name": "minecraft:budding_amethyst"
}
},
"middle_layer_provider": {
"type": "simple_state_provider",
"state": {
"Name": "minecraft:calcite"
}
},
"outer_layer_provider": {
"type": "simple_state_provider",
"state": {
"Name": "minecraft:tuff"
}
},
"inner_placements": [
{
"Name": "minecraft:small_amethyst_bud"
},
{
"Name": "minecraft:medium_amethyst_bud"
},
{
"Name": "minecraft:large_amethyst_bud"
},
{
"Name": "minecraft:amethyst_cluster"
}
]
},
"layers": { // all optional double ranges between 0.01 and 50.0
"filling": 1.7,
"inner_layer": 2.2,
"middle_layer": 3.2,
"outer_layer": 4.2
},
"crack": {
"generate_crack_chance": 0.95, // between 0.0 and 1.0, default 1.0
"base_crack_size": 2.0, // between 0.0 and 5.0, default 2.0
"crack_point_offset": 2 // between 0 and 10, default 2
},
"use_potential_placements_chance": 0.35, // between 0.0 and 1.0, default 0.35
"use_alternate_layer0_chance": 0.083, // between 0.0 and 1.0, default 0.0
"placements_require_layer0_alternate": true, // default true
"min_outer_wall_distance": 4, // between 1 and 10, default 4
"max_outer_wall_distance": 7, // between 1 and 20, default 6
"min_distribution_points": 3, // between 1 and 10, default 3
"max_distribution_points": 5, // between 1 and 20, default 5
"min_point_offset": 1, // between 0 and 10, default 1
"max_point_offset": 3, // between 0 and 10, default 3
"min_gen_offset": -16, // int, default -16
"max_gen_offset": 16, // int, default 16
"noise_multiplier": 0.05 // between 0.0 and 1.0, default 0.05
}
}
}
}
}
}
(Feature.GEODE.configured(
new GeodeConfiguration(
new GeodeBlockSettings(
new SimpleStateProvider(Features.States.AIR),
new SimpleStateProvider(Features.States.AMETHYST_BLOCK),
new SimpleStateProvider(Features.States.BUDDING_AMETHYST),
new SimpleStateProvider(Features.States.CALCITE),
new SimpleStateProvider(Features.States.TUFF),
ImmutableList.of(
Blocks.SMALL_AMETHYST_BUD.defaultBlockState(),
Blocks.MEDIUM_AMETHYST_BUD.defaultBlockState(),
Blocks.LARGE_AMETHYST_BUD.defaultBlockState(),
Blocks.AMETHYST_CLUSTER.defaultBlockState()
)
),
new GeodeLayerSettings(1.7D, 2.2D, 3.2D, 4.2D),
new GeodeCrackSettings(0.95D, 2.0D, 2),
0.35D,
0.083D,
true,
4, 7, 3, 5, 1, 3, -16, 16, 0.05D
)
).decorated(
FeatureDecorator.RANGE.configured(
new RangeDecoratorConfiguration(6, 0, 47)
)
).squared()
).chance(48)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment