Skip to content

engsr6982/DebugShape

Repository files navigation

DebugShape

minecraft bedrock debug shape packet wrapper

DebugShape

Usage

  • xmake.lua
add_repositories("engsr6982-repo https://github.com/engsr6982/xmake-repo.git")

add_requires("debug_shape 0.1.0")
#include "debug_shape/api/shape/IDebugText.h"

void MyMod::enable() {
    auto shape = debug_shape::IDebugText::create(Vec3{0,92,0}, "foo");
    shape->draw();
}

Quick experience

  1. Clone the source code
git clone https://github.com/engsr6982/DebugShape.git
  1. Compile the project and start the test code.
cd DebugShape
xmake f --test=y
  1. Install levilamina and mod

  2. Use the /shape command for a quick experience.

Since this is test code, only basic demonstrations are provided. For more attributes (color, scaling, etc.), please use the API.

? shape
21:41:44.798 INFO [Server] shape:
21:41:44.798 INFO [Server] Minecraft DebugShape
21:41:44.798 INFO [Server] Usage:
21:41:44.798 INFO [Server] - /shape arrow <start: x y z> <end: x y z>
21:41:44.798 INFO [Server] - /shape box <start: x y z> <end: x y z>
21:41:44.798 INFO [Server] - /shape circle <position: x y z> [scale: float]
21:41:44.798 INFO [Server] - /shape clear
21:41:44.798 INFO [Server] - /shape extension bounds_box <start: x y z> <end: x y z>
21:41:44.798 INFO [Server] - /shape line <start: x y z> <end: x y z>
21:41:44.798 INFO [Server] - /shape sphere <position: x y z> [scale: float]
21:41:44.798 INFO [Server] - /shape text <position: x y z> <text: string>

LICENSE

LGPL v3 or later