#Feature registry & structure Error (Resolved)

1 messages · Page 1 of 1 (latest)

hardy brook
#

content log :

[Structure][error]-My World | mypack:desert_ruin_feature | minecraft:structure_template_feature | structure_name | Structure 'desert_ruin_1' must be prefixed by a namespace

[FeatureRegistry][error]-My World | mypack:desert_ruin_feature | minecraft:structure_template_feature | structure_name | Structure desert_ruin_1 does not exist

VS code error: Cannot find behaviorpack structures definition: ""desert_ruin_1""mcbehaviorpack.structures.missing

Trying to add a new structure into an existing addon pack I have, although I keep coming up with the same error, no matter what changes I make I desperately need help figuring out why this is happening
-all experimental toggles are activated
-all folders should be in their correct locations. Behavior -> features -> desert_ruin_feature.json
Behavior -> feature_rules -> desert_ruin_rule.json

-My structure is desert_ruin_1.mcstructure-

Renamed namespace to mypack, originally was (stu:), but I remade the folders a few times

Features code
{
"format_version": "1.13.0",
"minecraft:structure_template_feature": {
"description": {
"identifier": "mypack:desert_ruin_feature"
},
"structure_name": "desert_ruin_1",
"adjustment_radius": 0,
"facing_direction": "random",
"constraints": {
"grounded": {},
"unburied": {},
"block_intersection": {
"block_allowlist": [
"minecraft:sand",
"minecraft:sandstone"
]
}
}
}
}

#

feature rules code
{
"format_version": "1.13.0",
"minecraft:feature_rule": {
"description": {
"identifier": "mypack:desert_ruin_rule",
"places_feature": "mypack:desert_ruin_feature"
},
"conditions": {
"placement_pass": "surface_pass",
"minecraft:biome_filter": {
"test": "has_biome_tag",
"operator": "==",
"value": "desert"
}
},
"distribution": {
"iterations": 1,
"coordinate_eval_order": "xzy",
"x": {
"distribution": "uniform",
"extent": [0, 15]
},
"y": "query.heightmap(variable.worldx, variable.worldz)",
"z": {
"distribution": "uniform",
"extent": [0, 15]
},
"scatter_chance": 100.0
}
}
}

normal ridge
#

the structure_name should have a namespace

hardy brook
#

Thank you, Added mypack:desert_ruin_1 and it cleared my structure error, although the feature registry error is still there

normal ridge
#

It maybe "mystructure:desert_ruin_1"

#

mystructure is the default namespace

hardy brook
#

Replace mypack with mystructure?

hardy brook
#

I got it! thank you very much ill post the code i have so people can use as a template for their structures and not struggle like me lol

#

-feature_rules-

#

{
"format_version": "1.13.0",
"minecraft:feature_rule": {
"description": {
"identifier": "mystructure:desert_ruin_rule",
"places_feature": "mystructure:desert_ruin_feature"
},
"conditions": {
"placement_pass": "surface_pass",
"minecraft:biome_filter": {
"test": "has_biome_tag",
"operator": "==",
"value": "desert"
}
},
"distribution": {
"iterations": 1,
"coordinate_eval_order": "xzy",
"x": {
"distribution": "uniform",
"extent": [0, 15]
},
"y": "query.heightmap(variable.worldx, variable.worldz)",
"z": {
"distribution": "uniform",
"extent": [0, 15]
},
"scatter_chance": 1.0
}
}
}

#

features

#

{
"format_version": "1.13.0",
"minecraft:structure_template_feature": {
"description": {
"identifier": "mystructure:desert_ruin_feature"
},
"structure_name": "mystructure:desert_ruin_1",
"adjustment_radius": 0,
"facing_direction": "random",
"constraints": {}
}
}