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
func(state traversal.Construct, symbol traversal.Symbol, location traversal.TextLocation) *string {
13
+
out:="Defines a Minecraft [block state](https://minecraft.wiki/w/Block_states).<br/>Currently *only has support for block name*.<br/>Example: `Block(minecraft:stone)`"
func(construct traversal.Construct, symbol traversal.Symbol, location traversal.TextLocation) *string {
16
+
out:="Defines a vertical anchor, which can be absolute, above the bottom, or below the top.<br/>Absolute: `100`<br/>Above bottom: `~-100`<br/>Below top: `~100`"
func(construct traversal.Construct, s traversal.Symbol, location traversal.TextLocation) *string {
17
-
help:=`Clamps the input density function to the specified range`
17
+
help:="Clamps the input density function to the specified range.<br/> `.Min(float)` and `.Max(float)` are required.<br/>Example: `Clamp(_densityFn_).Min(0).Max(1))`"
func(construct traversal.Construct, symbol traversal.Symbol, location traversal.TextLocation) *string {
17
+
help:="Defines a range choice density function that returns different values based on whether the input is within a specified range.<br/>Required: `.Min(float)`, `.Max(float)`, `.InRange(densityFn)`, `.OutRange(densityFn)`.<br/>Example: `RangeChoice(densityFn).Min(-1).Max(1).InRange(densityFn).OutRange(densityFn)`"
func(construct traversal.Construct, symbol traversal.Symbol, location traversal.TextLocation) *string {
16
+
help:="Shifts noise using .ShiftX( densityFn ), .ShiftY( densityFn ) and .ShiftZ( densityFn ).<br/>Uses .XZScale( float ) and .YScale( float ) to scale the noise function."
func(construct traversal.Construct, symbol traversal.Symbol, location traversal.TextLocation) *string {
31
+
c:=construct.(*SingleInputDensityFn)
32
+
varoutstring
33
+
switchc.Kind {
34
+
caseDensityFn_Interpolated:
35
+
out="Interpolates at each block in one cell based on the input density function value of some cells around. The size of each cell is size_horizontal * 4 and size_vertical * 4. Used often in combination with flat_cache."
36
+
caseDensityFn_FlatCache:
37
+
out="Calculate the value per 4×4 column (Value at each block in one column is the same). And it is calculated only once per column, at Y=0. Used often in combination with interpolated."
38
+
caseDensityFn_Abs:
39
+
out="Modifies input function by taking the absolute value.<br/>Example: `Abs(1)`"
40
+
caseDensityFn_Cube:
41
+
out="Modifies input function by taking the cube of the value. (x^3)<br/>Example: `Cube(1)`"
42
+
caseDensityFn_Square:
43
+
out="Modifies input function by taking the square of the value. (x^2)<br/>Example: `Square(1)`"
44
+
caseDensityFn_HalfNeg:
45
+
out="If the input is negative, returns half of the input. Otherwise returns the input. (x < 0 ? x/2 : x)"
46
+
caseDensityFn_QuarterNeg:
47
+
out="If the input is negative, returns a quarter of the input. Otherwise returns the input. (x < 0 ? x/4 : x)"
48
+
caseDensityFn_Squeeze:
49
+
out="First clamps the input between −1 and 1, then transforms it using x/2 - x*x*x/24."
50
+
caseDensityFn_Shift:
51
+
out="Samples a noise at (x/4, y/4, z/4), then multiplies it by 4."
52
+
caseDensityFn_ShiftA:
53
+
out="Samples a noise at (x/4, 0, z/4), then multiplies it by 4."
54
+
caseDensityFn_ShiftB:
55
+
out="Samples a noise at (z/4, x/4, 0), then multiplies it by 4."
0 commit comments