@@ -410,6 +410,7 @@ All default ores are of the uniformly-distributed scatter type.
410
410
411
411
Ore attributes
412
412
-------------------
413
+ See section Flag Specifier Format.
413
414
Currently supported flags: absheight
414
415
- absheight
415
416
Also produce this same ore between the height range of -height_max and -height_min.
@@ -451,6 +452,7 @@ Important note: Node aliases cannot be used for a raw schematic provided when re
451
452
452
453
Schematic attributes
453
454
---------------------
455
+ See section Flag Specifier Format.
454
456
Currently supported flags: place_center_x, place_center_y, place_center_z
455
457
- place_center_x
456
458
Placement of this decoration is centered along the X axis.
@@ -525,6 +527,26 @@ pointed_thing:
525
527
{type="node", under=pos, above=pos}
526
528
{type="object", ref=ObjectRef}
527
529
530
+ Flag Specifier Format
531
+ -----------------------
532
+ Flags using the standardized flag specifier format can be specified in either of two ways, by string or table.
533
+ The string format is a comma-delimited set of flag names; whitespace and unrecognized flag fields are ignored.
534
+ Specifying a flag in the string sets the flag, and specifying a flag prefixed by the string "no" explicitly
535
+ clears the flag from whatever the default may be.
536
+ In addition to the standard string flag format, the schematic flags field can also be a table of flag names
537
+ to boolean values representing whether or not the flag is set. Additionally, if a field with the flag name
538
+ prefixed with "no" is present, mapped to a boolean of any value, the specified flag is unset.
539
+
540
+ e.g. A flag field of value
541
+ {place_center_x = true, place_center_y=false, place_center_z=true}
542
+ is equivalent to
543
+ {place_center_x = true, noplace_center_y=true, place_center_z=true}
544
+ which is equivalent to
545
+ "place_center_x, noplace_center_y, place_center_z"
546
+ or even
547
+ "place_center_x, place_center_z"
548
+ since, by default, no schematic attributes are set.
549
+
528
550
Items
529
551
------
530
552
Node (register_node):
0 commit comments