Added weighted features provided by @crovono
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
examples/bp/features/weighted_random_feature.json
Normal file
15
examples/bp/features/weighted_random_feature.json
Normal 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]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
14
examples/bp/features/weighted_random_feature_obsidian.json
Normal file
14
examples/bp/features/weighted_random_feature_obsidian.json
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
14
examples/bp/features/weighted_random_feature_planks.json
Normal file
14
examples/bp/features/weighted_random_feature_planks.json
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user