We can also accept [[Holders]] or [[HolderSets]] for other [[Registration#Data_Driven_Entries|datapack registry elements]], such as PlacedFeatures, which allows our BiomeModifier to refer to those elements, which can then be defined in their own JSON files.
+
We can also accept [[Holders]] or [[HolderSets|HolderSets]] for other [[Registration#Data_Driven_Entries|datapack registry elements]], such as PlacedFeatures, which allows our BiomeModifier to refer to those elements, which can then be defined in their own JSON files.
<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
Line 132:
Line 132:
"biomes": "#minecraft:is_badlands",
"biomes": "#minecraft:is_badlands",
"feature": "yourmod:some_feature"
"feature": "yourmod:some_feature"
−
}
−
</syntaxhighlight>
−
−
== Side Note on HolderSets ==
−
−
HolderSets are a vanilla feature that, when defined in JSON, can be specified as a single id, list of ids, or tag. Our example above uses a holderset of biomes, so all three of these are valid biome fields: