You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most parts of the datapack system all stem from the same files. JSON files in the cosmic data section of a datapack.
9
+
10
+
They are stored under the cosmic namespace, in the cosmic_data folder.
11
+
12
+
> data
13
+
> > your_namespace
14
+
> > > etc
15
+
16
+
> > cosmos
17
+
> > > cosmic_data
18
+
> > > > solar_system_1.json
19
+
> > > >
20
+
> > > > solar_system_2.json
21
+
> > > >
22
+
> > > > planet_1.json
23
+
> > > >
24
+
> > > > planet_2.json
25
+
> > > >
26
+
> > > > overworld.json
27
+
> > > >
28
+
> > > > other_dimension.json
29
+
30
+
While all of these files are simply a "cosmic dimension data" file, they are commonly in two forms.
31
+
32
+
Either used to [setup a space dimension](/addonsupport/solarsystems/), or used to [configure settings for a planet/dimension](/addonsupport/dimensions/).
33
+
34
+
They will always include an `"attached_dimention_id"`, specifying which dimension they control.
Copy file name to clipboardExpand all lines: addonsupport/dimensions.md
+69-8Lines changed: 69 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,81 @@ show_sidebar: false
5
5
menubar: docs_menu
6
6
---
7
7
8
-
Dimension data is commonly used in a [solar system file](/addonsupport/solarsystems/) to set the dimension settings. It will also be used to set the settings of a [planet](/addonsupport/planets)*
8
+
Dimension data is commonly used in a [cosmic data file](/addonsupport/cosmicdata/) to set a dimensions settings. Its used in both solar system files and standalone planet dimension files.
9
9
10
10
## Attributes:
11
11
12
-
`"dimension_type"`: string, can be space or planet*
12
+
`"dimension_type"`: string, can be "space" or "planet"
13
13
14
-
`"weather"`: boolean, controls whether or not the the dimensionwill rain and snow
14
+
`"sky_objects"`: boolean, if false it will disable vanilla stars, sun and moon for this dimension. If not included, will default to true.
15
15
16
-
`"clouds"`: boolean, controls whether or not the dimension will have clouds
16
+
`"weather"`: boolean, controls whether or not the the dimension will have vanilla rain and snow. If not included, will default to true.
17
17
18
-
`"gravity"`: float or int, is the percentage of earths gravity the dimension will have. Can be 0.1 for 10% or 10 for 10%
18
+
`"clouds"`: boolean, controls whether or not the dimension will have clouds. If not included, will default to true.
19
19
20
-
`"air_resistance"`: float, in the range of 0 to 1. Don’t let the name confuse you, 0 is maximum friction in the air and 1 is none. 1 will simulate space where when floating you have no control over your character, whereas 0 will prevent players from moving at all in the air
20
+
`"gravity"`: float or int, is the percentage of earths gravity the dimension will have. Can be 0.1 for 10% or 10 for 10%. If not included, will default to 100 (vanilla overworld).
21
21
22
-
***
22
+
`"air_resistance"`: float, in the range of 0 to 1. Don’t let the name confuse you, 0 is maximum friction in the air and 1 is none. 1 will simulate space where when floating you have no control over your character, whereas 0 will prevent players from moving at all in the air. If not included, will default to 0 (vanilla).
23
23
24
-
*planet dimensions have not been implemented yet
24
+
`"fog_data"`: JSON object, optional. If not included, will default to vanilla. If included, must contain the following:
25
+
26
+
{% capture fog_data %}
27
+
28
+
`"color"`: JSON object, must contain a "r", "g" and "b" key, each giving an int between 0 and 255 to control the fog color
29
+
30
+
Example:
31
+
```json
32
+
"color": {
33
+
"r": 255,
34
+
"b": 255,
35
+
"g": 255
36
+
}
37
+
```
38
+
39
+
`"level"`: float, controls the density of the fog. 0.1 is vanilla.
40
+
41
+
{% endcapture %} {% include spoiler.html name="Fog data" content=fog_data %}
42
+
43
+
`"weather_data"`: JSON object, optional. `"weather"` must be false for this setting to work. This setting will override vanilla rain/snow for custom particles, sounds etc. Must contain the following:
44
+
45
+
{% capture weather_data %}
46
+
47
+
`"condition"`: string, must be "rain", "snow" or "none". Controls when the custom weather will render.
48
+
49
+
`"texture_id"`: the name of the texture in assets/cosmos/... to be used for the particles
50
+
51
+
`"speed"`: float, the speed of the weather. Vanilla snow is 0.5, and vanilla rain is 2.
52
+
53
+
`"sound_generic"`: string, the sound played when the player is in an open area with this weather. Should be the name of a sound as shown with the /playsound command. (e.g. block.snow.fall)
54
+
55
+
`"sound_special"`: string, same as above, but will be player when the player is in an inclosed space instead. E.g. a house or a cave.
56
+
57
+
`"power"`: int, basically the volume of this weather. Recommended to be 1-5
58
+
59
+
`"hurt"`: boolean, controls whether the weather will hurt players. (E.g. acid rain)
60
+
61
+
`"damage"`: int, only needed if `"hurt"` is true. Controls the damage the weather does to the player. Each 1 is half a heart, so 5 would be 2 hearts and a half.
62
+
63
+
{% endcapture %} {% include spoiler.html name="Weather data" content=weather_data %}
64
+
65
+
`"atmospheric_data"`: JSON object, optional. If not included, will default to overworld. If included, must contain the following:
66
+
67
+
{% capture atmo_data %}
68
+
69
+
`"atmosphere_y"`: int, the Y level where players will be transported to space.
70
+
71
+
`"travel_to"`: string, the dimension players will be transported to on reaching the `"atmosphere_y"`. Usually the solar system dimension this planet is in. Should be in `namespace:dimension` form.
72
+
73
+
`"origin_x"`: int, the x position players will be sent to on entering this planet by default
74
+
75
+
`"origin_y"`: int, same as above but y position
76
+
77
+
`"origin_z"`: int, same as above but z position
78
+
79
+
`"overlay_texture_id"`: string, the name of a texture in assets/cosmos/... Will be used for the sidebar showing height progress when launching a rocket. MUST be 16x128
80
+
81
+
`"shipbit_y"`: int, the offset of pixels from the bottom of the overlay image that will be the lowest point the ship icon can reach.
82
+
83
+
`"ship_min_y"`: int, the y position at which the rocket icon will be at the lowest point, at `"shipbit_y"` on the overlay texture
84
+
85
+
{% endcapture %} {% include spoiler.html name="Atmospheric data" content=atmo_data %}
Copy file name to clipboardExpand all lines: addonsupport/skyboxes.md
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,4 +17,24 @@ Skybox data is a JSON object, commonly used in [solar system data](/addonsupport
17
17
18
18
`"roll"`: int, roll of the skybox texture
19
19
20
+
`"alpha"`: int, from 0 to 255. Transparency of the skybox. Behind the skybox is simply sky fog. 0 is no skybox visible, 255 is no fog visible.
20
21
22
+
`"rotation_plane"`: string, can be either "yaw", "pitch" or "roll". Controls which axis the skybox will rotate around. (Optional)
23
+
24
+
`"fade"`: string, can be "day" or "night". Defines when the skybox will fade away. (Optional)
25
+
26
+
`"vanilla_sunlight"`: boolean, controls weather the sunlight color will be vanilla or not.
27
+
28
+
`"sunlight_color"`: JSON object, must be included if `"vanilla_sunlight"` is false. Must include the following:
29
+
30
+
{% capture light_data %}
31
+
32
+
"r": int, from 0 to 255. Controls the red in the sunlight color
33
+
34
+
"g": int, from 0 to 255. Controls the green in the sunlight color
35
+
36
+
"b": int, from 0 to 255. Controls the blue in the sunlight color
37
+
38
+
"alpha": int, from 0 to 255. Controls the transparency of the sunlight. Basically the brightness of the sunlight. 255 is full brightness, 0 is darkness.
39
+
40
+
{% endcapture %} {% include spoiler.html name="Sunlight color" content=light_data %}
0 commit comments