1
0
Fork
You've already forked bta_wire_goggle
0
redstone wire locational update order calculator for Better than Adventure!
  • Zig 100%
2025年10月30日 22:26:29 +08:00
src small refactor 2025年10月30日 22:26:29 +08:00
.gitignore hello 2025年10月27日 18:39:58 +08:00
build.zig hello 2025年10月27日 18:39:58 +08:00
build.zig.zon tiny rewrite. added rendering feature 2025年10月29日 00:08:19 +08:00
readme.md fix readme 2025年10月29日 00:09:59 +08:00

usage:

./bta_wire_goggle <command> ...

command:

  • help

  • hash <pos> [-d | -x | -b]
    output the hash of a given position. -d: decimal (default), -x: hex, -b: binary

  • bucket <pos>
    output the bucket index of a given position.

  • sides <pos>
    output the neighboring positions.

  • sides hash <pos> [-d | -x | -b]
    output the hash of the neighboring positions.

  • sides bucket <pos>
    output the bucket index of the neighboring positions.

  • order <pos> [-m]
    output the update order of the neighboring positions. -m: minimum output

  • render <origin> <width/8> <side1>:<side2> [-x | -y | -z]
    for each position in range, evaluates if side1 is updated before side2, and renders the result to standard output.

    use 'render ... > file.pbm' to write to file.

    origin: the center of the plane.

    width/8: width of the plane / 8.

    side1 and side2: accepts W, E, U, D, N, S.

    -x, -y (default) and -z: the axis normal to the rendered plane. e.g. -y represents the XZ plane.

  • render create <origin> <width> <side1>:<side2> [-x | -y | -z]
    same as the previous, but creates a file that is named based on the provided args and renders to it.

pos:

three numbers (only containing '0'...'9', but can begin with '-') separated by non-number charaters.

examples: "0 1 2", "(-10, 11, 12)", ".{{ 420; 69; 420 }}"