Adding custom structures (new system) - Silverminer007/Shrines GitHub Wiki
Note: This tutorial explains how to add custom structures by using commands. You can either add it so, by directly adding and modifing files or what's the easiest, using the GUI (Press "k" in client worlds [rebindable])
You'd love to see your own structures appear in new worlds? We've got your back!
- First start Minecraft with the latest version of this mod
- Now build your structure(s)
- Add the structure to mods logic using
/sh-st add <structure-name>
You can use
/sh-st
or/shrines-structures
. Here is an example:
- You've builded a house and want to spawn with world generation. First of all use
/sh-st add house
to add it. see below for further steps
- Save your structure to enable loading. To do this use
/sh-st save-resource <structure-name> <corner1> <corner2> [<include entities>]
Structure name should be know; it's the same as above, but the corners are new. The corners are positions in your world. Use first the bottom-left-front corner and as corner2 the top-right-back corner. Optionally you can include entities or not. If you've build a structure e.g. with villagers and you want to spawn the villagers at worldgen too, you need to enable this. Example:
- Your house is at [10, 65 10] and is [10, 10, 10] large and there are villagers inside. So use
/sh-st save-resource house 10 65 10 20 75 20 true
-
Your given box will be drawn. You will be asked to confirm that box with clicking on [Yes].
-
Restart Minecraft and you can find it in the world. Use
/locate shrines:<structure-name>
to test.
There are many options you can change to customize your structure. The needed command is /sh-st configure <structure-name> <option> <value>
. Example:
You've tested your house and thought, that your structure spawned to rare. So lets make it appear more often:
/sh-st configure house distance 20
-> 20 isn't needed, just change it to any wished value (smaller value -> smaller distance)/sh-st configure house seperation 12
-> As in distance, but must be smaller than distance Just test the other options. They should be relativly easy
There are two lists of biomes in each structure. The blacklist and whitelist. Your structure can only spawn in biomes that are whitelisted, but not blcklisted. (Modded biomes are supported too). Whitelist uses biome categories and blacklist uses biome directly. Example:
You wish to spawn your house only in birch-forest. To do that we whitelist forest category and blacklist every biome except birch-forest
- First whitelist
/sh-st whitelist house add forest
- Now blacklist. I won't list every biome; you have to search them yourself. I will only give you the command:
/sh-st blacklist add <biome>
. On client all possible biomes are suggested
Sometimes you want to copy your builded structures e.g. to test some things.
- Add your structure to logic
/sh-st add <structure-name>
1a. If you only want to copy paste you should disable structure spawn (of this structure). Use/sh-st configure <structure-name> generate false
- Save your structure (don`t use save; use save-resource). For instructions see above
- Now load your structure using
/sh-st load-resource <structure-name> <position> [<rotation>]
Example:
You want to copy your [10, 10, 10] blocks huge structure (house) from [100, 70, 100] to [150, 70, 150]
- Add the structure
/sh-st add house
- Save the resources
/sh-st save-resource house 100 70 100 110 80 110
- Accept the bounds clicking on [Yes]
- load the resource
/sh-st load-resource house 150 70 150