Skip to content

Wrong value for VECTOR3_NORTH and VECTOR3_SOUTH #124

@legopitstop

Description

@legopitstop

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:

Image

Expected

Image

VECTOR3_NORTH and VECTOR3_SOUTH do not match the blocks placed with Block.north and Block.south

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions