BedrockStructurePlacements 5.46.0
The switchable table of structure positions: which structure sets use Bedrock Edition's own placement (Mersenne Twister, see BedrockSpreadPlacement) instead of the Java placement of the structure_set data.
Only the constants documented in OPCIONES-GENERADOR-VANILLA.md (section 3.3) are listed: villages (salt 10387312, spacing 34, 26 offsets) and woodland mansions (10387319, 80, 60). Other sets keep Java's placement until their Bedrock constants are verified with BDS (/locate); the candidates are listed in STRUCTURES-PLAN.md.
Constants
MODE_BEDROCK
public const MODE_BEDROCK = "bedrock"Bedrock positions where known (TABLE), Java's elsewhere.
MODE_JAVA
public const MODE_JAVA = "java"Java Edition positions for every structure set.
TABLE
public const TABLE = ["minecraft:villages" => [10387312, 34, 26, true], "minecraft:woodland_mansions" => [10387319, 80, 60, true]]Java structure set id => [salt, spacing, range (offsets per axis), triangular spread]
Methods
select()
public static function select(string $setId, \pocketmine\world\generator\vanilla\structure\placement\StructurePlacement $java, string $mode) : \pocketmine\world\generator\vanilla\structure\placement\StructurePlacementThe placement to use for a structure set: Bedrock's when the mode is "bedrock" and the set is in the table, otherwise the Java placement read from the data. The Java placement's frequency and exclusion zone are kept.
