VECTOR3_NORTH and VECTOR3_SOUTH values should be swapped.
Positive Z is south.
Negative Z is north.
Example
Example Minecraft block component.
import { system } from "@minecraft/server";
import { VECTOR3_NORTH, VECTOR3_EAST, VECTOR3_SOUTH, VECTOR3_WEST } from "@minecraft/math";
system.beforeEvents.startup.subscribe((event) => {
event.blockComponentRegistry.registerCustomComponent("bug:math", {
onTick(arg1) {
arg1.block.offset(VECTOR3_NORTH)?.setType("red_stained_glass");
arg1.block.north()?.above()?.setType("red_stained_glass");
arg1.block.offset(VECTOR3_EAST)?.setType("lime_stained_glass");
arg1.block.east()?.above()?.setType("lime_stained_glass");
arg1.block.offset(VECTOR3_SOUTH)?.setType("blue_stained_glass");
arg1.block.south()?.above()?.setType("blue_stained_glass");
arg1.block.offset(VECTOR3_WEST)?.setType("white_stained_glass");
arg1.block.west()?.above()?.setType("white_stained_glass");
},
});
});
Gives this result:
Expected
VECTOR3_NORTH and VECTOR3_SOUTH do not match the blocks placed with Block.north and Block.south
VECTOR3_NORTHandVECTOR3_SOUTHvalues should be swapped.Positive Z is south.
Negative Z is north.
Example
Example Minecraft block component.
Gives this result:
Expected
VECTOR3_NORTHandVECTOR3_SOUTHdo not match the blocks placed withBlock.northandBlock.south