-
Notifications
You must be signed in to change notification settings - Fork 4
Celestial Object Entry
Celestial Objects can be registered in sky.json
Registered celestial objects must be located in assets\celestial\sky\(DIMENSION_ID)\objects
, otherwise they will not be loaded.
Celestial objects are things that are rendered in the sky. The vanilla sun and moon are examples of celestial objects.
-
texture
, String: The file path to the texture of the object. -
solid_color
, String: Renders the object as a solid color (the color inputted here). Iftexture
has a value, this will be ignored. -
display
, JSON Object: Details for display. Ifvertex
has a value, this will be ignored. [More details] -
vertex
, String list: Details for custom vertex rendering. [More details] -
rotation
, JSON Object: Controls the rotation of the object. [More details] -
properties
, JSON Object: Object properties. [More details] -
populate
, JSON Object: Controls the populate feature for the object. [More details]
-
scale
, Equation: Scale of the object. -
pos_x
, Equation: Added position X of the object. -
pos_y
, Equation: Added position Y of the object. -
pos_z
, Equation: Added position Z of the object. -
distance
, Equation: Distance of the object to the camera.
Extra miscellaneous properties for objects
-
has_moon_phases
, Boolean: Determines if the object has moon phases. Texture should be formatted like vanilla moon_phases texture. -
moon_phase
, Equation: The moon phase of the object. Only works ifhas_moon_phase
is enabled. -
is_solid
, Boolean: Determines if other objects can render through the object. Removes alpha from the object too. -
red
, Equation: Amount of red in object texture. -
green
, Equation: Amount of green in object texture. -
blue
, Equation: Amount of blue in object texture. -
alpha
, Equation: Alpha of object. -
ignore_fog
, Boolean: Determines if the object should render with fog applied.
Allows for multiple duplicate objects to be rendered in different places, scales, and rotations. If enabled, the display
and rotation
categories will be ignored.
-
count
, Integer: Number of objects to create. -
rotation
, JSON Object: Rotation of objects in sky. Unlike normal rotation entries, this has different possible values. [More details] -
display
, JSON Object: Controls what the objects will look like. [More details] -
per_object_calculations
: Determines if the rotation, position, etc. are calculated for each populate object.*
* As of the 1.2 update, the rotation, position, and other things are calculated once, and applied to every single populate object. With per_object_calculations
, the rotation, position, and other things are calculated for each populate object.
Values from the original rotation
category will be added onto these values.
-
min_degrees_x
, Float: The minimum degrees X objects can have. -
max_degrees_x
, Float: The minimum degrees X objects can have. -
min_degrees_y
, Float: The minimum degrees Y objects can have. -
max_degrees_y
, Float: The minimum degrees Y objects can have. -
min_degrees_z
, Float: The minimum degrees Z objects can have. -
max_degrees_z
, Float: The minimum degrees Z objects can have.
-
min_scale
, Float: The minimum scale objects can have. -
max_scale
, Float: The maximum scale objects can have. -
min_pos_x
, Float: The minimum added position X the object can have. -
max_pos_x
, Float: The maximum added position X the object can have. -
min_pos_y
, Float: The minimum added position Y the object can have. -
max_pos_y
, Float: The maximum added position Y the object can have. -
min_pos_z
, Float: The minimum added position Z the object can have. -
max_pos_z
, Float: The maximum added position Z the object can have. -
min_distance
, Float: The minimum distance to the camera the object can have. -
max_distance
, Float: The maximum distance to the camera the object can have.