#Disable Ceretain Structures in the Overworld and Let them spawn in Custom Bioms etc. From Other Mods

1 messages · Page 1 of 1 (latest)

noble vine
#

Im very new to data packs and would like to let specific structures spawn in other biomes and disable them completely from spawning in the overworld.

for example im making a custom dimension for a space mod "Stellaris" and i would like to let a structure from another mod "Gigeresque" spawn in my custom dimension i already have a biome in it so how could i make it possible that the structure from the mod does not spawn in the Overworld at all but will spawn in my custom biome on another dimension?

verbal birchBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1739037215:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

hexed lava
#

Assuming that the modded structure still uses the vanilla method of being added, you'd just need to overwrite its structure json file in your data pack, and change which biomes it says it can spawn in

#

You'll need to open the mod jar up with a program like 7zip or WinRAR, find the desired file in data/<namespace>/worldgen/structure, copy it into your data pack under the same folder structure, and make the desired changes

noble vine
#
    "biomes": "#gigeresque:has_structure/gig_dungeon_biomes",
    "dimension_padding": 0,
    "liquid_settings": "ignore_waterlogging",
    "max_distance_from_center": 116,
    "size": 15,
    "spawn_overrides": {
        "ambient": {
            "bounding_box": "piece",
            "spawns": []
        },
        "axolotls": {
            "bounding_box": "piece",
            "spawns": []
        },
        "creature": {
            "bounding_box": "piece",
            "spawns": []
        },
        "misc": {
            "bounding_box": "piece",
            "spawns": []
        },
        "monster": {
            "bounding_box": "piece",
            "spawns": []
        },
        "underground_water_creature": {
            "bounding_box": "piece",
            "spawns": []
        },
        "water_ambient": {
            "bounding_box": "piece",
            "spawns": []
        },
        "water_creature": {
            "bounding_box": "piece",
            "spawns": []
        }
    },
    "start_height": {
        "absolute": -18
    },
    "start_pool": "gigeresque:gig_dungeon",
    "step": "strongholds",
    "terrain_adaptation": "encapsulate",
    "type": "minecraft:jigsaw",
    "use_expansion_hack": false
}```

this is the desired .json you said how can i disable it in the overwolrd and let it spawn on stellaris:mars
#

"biomes": "#gigeresque:has_structure/gig_dungeon_biomes",

would i need to change this value?

#

i found in .../gigeresque/tags/worldgen/biome also some .json and another folder with has_structure

hexed lava
#

You can either change the tag file it references or just write the desired biome(s) in this file directly

#

Structures don't check or care what dimension they spawn in, only what biome they spawn in. If you make it spawn in a biome that doesn't appear in the Overworld, then necessarily it won't spawn in the Overworld

noble vine
#

and i have this

´´´{
"id": "stellaris:venus_desert",
"required": false
}
]´´´

what does the require mean?

when i enable it does it spawn there or what could it mean in this case

hexed lava
#

If this is in a biome tag, it just means that that biome doesn't need to exist for the tag to load. It's a compatibility thing

hexed lava