Skip to content

Commit

Permalink
fix: support bleeding edge worldgen
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Feb 21, 2022
1 parent 0f186af commit 841c863
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions beet/library/data_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"FunctionTag",
"GameEventTag",
"ItemTag",
"BiomeTag",
"StructureSetTag",
"ConfiguredStructureFeatureTag",
"ConfiguredCarverTag",
"PlacedFeatureTag",
"DimensionType",
"Dimension",
"Biome",
Expand All @@ -24,6 +29,7 @@
"NoiseSettings",
"ProcessorList",
"TemplatePool",
"StructureSet",
"ItemModifier",
]

Expand Down Expand Up @@ -241,6 +247,36 @@ class ItemTag(TagFile):
scope = ("tags", "items")


class BiomeTag(TagFile):
"""Class representing a biome tag."""

scope = ("tags", "worldgen", "biome")


class StructureSetTag(TagFile):
"""Class representing a worldgen structure set tag."""

scope = ("tags", "worldgen", "structure_set")


class ConfiguredStructureFeatureTag(TagFile):
"""Class representing a worldgen structure feature tag."""

scope = ("tags", "worldgen", "configured_structure_feature")


class ConfiguredCarverTag(TagFile):
"""Class representing a worldgen carver tag."""

scope = ("tags", "worldgen", "configured_carver")


class PlacedFeatureTag(TagFile):
"""Class representing a worldgen placed feature tag."""

scope = ("tags", "worldgen", "placed_feature")


class DimensionType(JsonFile, NamespaceFile):
"""Class representing a dimension type."""

Expand Down Expand Up @@ -311,6 +347,13 @@ class TemplatePool(JsonFile, NamespaceFile):
extension = ".json"


class StructureSet(JsonFile, NamespaceFile):
"""Class representing a worldgen structure set."""

scope = ("worldgen", "structure_set")
extension = ".json"


class ItemModifier(JsonFile, NamespaceFile):
"""Class representing an item modifier."""

Expand Down

0 comments on commit 841c863

Please sign in to comment.