|
| 1 | +# Adding a build |
| 2 | + |
| 3 | +## Building and saving the structure |
| 4 | + |
| 5 | +!!! warning |
| 6 | + You need to know how to use the structure block and its SAVE mode to create a build. |
| 7 | + |
| 8 | +First off, you need to build your structure in any creative world that you can download generated structures from. Either in a single-player world, or in a server that allows you to do so. |
| 9 | + |
| 10 | +!!! tip |
| 11 | + If you have access to the Nucleoid build server, you can join the original builds map `/map join buildrush:builds`. |
| 12 | + This map contains all the builds that were made by fellow Nucleoid contributors up to 3.0.0. |
| 13 | + |
| 14 | + To download any generated build on the Nucleoid build server, visit this site: [https://build.nucleoid.xyz/](https://build.nucleoid.xyz/generated/) |
| 15 | + |
| 16 | +You also need to choose a size for your build. Builds must have the same width, length and height. |
| 17 | +Let's say you want a size of `n` blocks for you build. This means you need to create a structure of dimensions `n`x`n`x`n`. |
| 18 | + |
| 19 | +You can also add a custom floor for your build, allowing the structure to be `n`x`n+1`x`n`. |
| 20 | +Players won't have to build this floor, as it will replace the floor of all plots when building. Please make sure that all blocks of the floor have a solid top surface. |
| 21 | + |
| 22 | +!!! tip |
| 23 | + Do not worry about falling blocks like sand for you floor, as barrier blocks will be placed under the plot floors if the map does not have blocks there. |
| 24 | + |
| 25 | +!!! example |
| 26 | + If you want to create a build of size 7, you can create a structure of dimensions 7x8x7, with the floor being at the bottom of the structure. |
| 27 | + If you do not want this floor, you can create a structure of dimensions 7x7x7. |
| 28 | + |
| 29 | +After finishing your build, save it using the structure block. The name of the structure file can be renamed manually afterward. |
| 30 | +Entities are not supported, so make sure to not include them while saving. |
| 31 | + |
| 32 | +Structures are stored under the `structures` folder of the datapack, so save it there when you're done. |
| 33 | + |
| 34 | +## Creating the build file |
| 35 | + |
| 36 | +You now need to add a build configuration that will add information about your build. |
| 37 | +Builds are stored in the `build_rush/builds` folder of the datapack, so create a `.json` file there. |
| 38 | + |
| 39 | +Here are the configuration fields of a build: |
| 40 | +```json5 |
| 41 | +{ |
| 42 | + "structure": "build_rush:build/my_build", |
| 43 | + "name": { |
| 44 | + "translate": "build.my_build" |
| 45 | + }, |
| 46 | + "author": { |
| 47 | + "name": "jeb_", |
| 48 | + "uuid": "853c80ef-3c37-49fd-aa49-938b674adae6" |
| 49 | + } |
| 50 | +} |
| 51 | +``` |
| 52 | + |
| 53 | +| Field | Description | Required | Defaults to | |
| 54 | +|---------------|---------------------------------|----------|-------------| |
| 55 | +| `structure` | The path to the structure file. | Yes | | |
| 56 | +| `name` | The name of the build. | Yes | | |
| 57 | +| `author` | The author of the build. | No | | |
| 58 | +| `author.name` | The name of the author. | Yes | | |
| 59 | +| `author.uuid` | The UUID of the author. | No | | |
| 60 | + |
| 61 | +!!! tip |
| 62 | + If a game tries to load any build that is not valid in any way, it will get ignored and a warning will be sent in the console. |
| 63 | + |
| 64 | +A standalone build will not get used in any gamemode, that's because it is the game config that defines the list of builds that it's going to use. |
| 65 | +However, you can add your build to the `build_rush:generic` tag, which is used by the generic game modes. |
| 66 | + |
| 67 | +## Notes on contributions |
| 68 | + |
| 69 | +If you are contributing to the Build Rush repository, please make sure to follow this checklist before submitting your pull request: |
| 70 | +- Your build is replicable in normal gameplay, on any maps. (no floating blocks) |
| 71 | +- Your build features as less redstone mechanics as possible. |
| 72 | +- If the name of your build is already used, add an underscore and a number at the end of the name. (`build`, `build_2`, `build_3`, ...) |
| 73 | +- Your structure file and your build configuration have the same name. |
| 74 | +- The structure is saved under the `structures/builds` folder inside the `build_rush` datapack. |
| 75 | +- If the build is not made for specific gamemode, add it to the `build_rush:generic` build tag. |
| 76 | +- The build name is translatable. Use existing translations if possible, if not add a translation key that follows the `build.<name>` pattern. |
| 77 | + |
| 78 | +!!! warning |
| 79 | + Currently, the generic game modes of Build Rush were made for build sizes of 5, 7 and 9. Only size 5 is used for now though. |
0 commit comments