📕
Resourceful Lib
Landing Page
  • Welcome
    • 🧮Highlights
      • 📐Highlight
      • 📋Highlight State
        • 📤Sub-reference Highlight
          • 💿Rotation Object
    • 📂Resource Pack
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Welcome
  2. Highlights

Highlight

Highlights are a simple json they only contain one thing a list of line

A line is an array of 6 floats with the first 3 being for the first point and the second 3 being for the second point in the line.

Line floats are not Minecraft pixels so if you want a Minecraft pixel position divide it by 16 to get the value for the line.

This example is to have a single line from the bottom left back corner going to the top right front corner.

corner_line.json
{
    "lines": [
        [0, 0, 0, 1, 1, 1]
    ]
}

PreviousHighlightsNextHighlight State

Last updated 2 years ago

Was this helpful?

🧮
📐