Added weighted features provided by @crovono

This commit is contained in:
DaanV2
2021-06-05 17:36:07 +02:00
parent 7eea44d3a6
commit b05ed64ec8
4 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
{
"format_version": "1.13.0",
"minecraft:feature_rules": {
"description": {
"identifier": "weighted_random_features:weighted_random_feature_placement",
"places_feature": "weighted_random_features:weighted_random_feature"
},
"conditions": {
"placement_pass": "final_pass"
},
"distribution": {
"iterations": 1,
"x": 0,
"z": 0,
"y": 90
}
}
}

View File

@@ -0,0 +1,15 @@
{
"format_version": "1.13.0",
"minecraft:weighted_random_feature": {
"description": {
"identifier": "weighted_random_features:weighted_random_feature"
},
"features": [
//The schema says float for weights, but the game truncates it. You should enforce integers.
["weighted_random_features:weighted_random_feature_obsidian", 3],
["weighted_random_features:weighted_random_feature_planks", 1]
]
}
}

View File

@@ -0,0 +1,14 @@
{
"format_version": "1.13.0",
"minecraft:single_block_feature": {
"description": {
"identifier": "weighted_random_features:weighted_random_feature_obsidian"
},
"places_block": "minecraft:obsidian",
"enforce_placement_rules": false,
"enforce_survivability_rules": false
}
}

View File

@@ -0,0 +1,14 @@
{
"format_version": "1.13.0",
"minecraft:single_block_feature": {
"description": {
"identifier": "weighted_random_features:weighted_random_feature_planks"
},
"places_block": "minecraft:planks",
"enforce_placement_rules": false,
"enforce_survivability_rules": false
}
}