Box Outlines Api

Quick rating

Box Outlines Api

No reviews yet

Controll the client-tweaks' box outlines with server-side commands

Mod Loaders
Fabric
Minecraft
26.2

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.0-26.2
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

This is an api for one of my other mod client-tweaks.

It allows the server to summon box outlines from client-tweaks for a tick to those with both mods installed.

Usage

Commands

/boxoutline 0.0 0.0 0.0 1.0 1.0 1.0 red

this draws a box for a single tick from 0 0 0 to 1 1 1. Be aware that box outlines api, unlike client tweaks, uses decimals for the coordinates.

Java Code

first publish this mod's source code to your local maven

# clone the repo
git clone [email protected]:Spit365/box-outlines-api-1.21.6.git
# publish to maven
cd box-outlines-api-1.21.6
./gradlew publishToMavenLocal

then include Box Outlines Api in your mod

build.gradle:

repositories {
  mavenLocal()
}

dependencies {
  modImplementation("net.spit365:box-outlines-api:1.0.0")
}

fabric.mod.json:

"depends": {
  "client-tweaks": "*"
}

Finally, you can use the following methods in your mod:

import net.spit365.boa.BoxOutline;
import net.minecraft.util.math.Box;
import java.util.Collection;

BoxOutline.add(Box box, int color /* argb */)
BoxOutline.addAll(Collection<Box> box, int color /* argb */)
 

This acts the same way, first specify a box, and then a color in hexadecimal format (0xFFFF0000 -> red, full opacity). Again, this will persist a single tick, so for continuous rendering put it in a tick callback

Building

to build this mod from scratch, first clone both this mod's and client-tweaks' repositories. Then, in the directory of client-tweaks run

./gradlew publishToMavenLocal

This will publish it to your local maven. Then run

./gradlew build

in the box outlines api directory

Why this extra step before building? Box Outlines Api needs the source code of client-tweaks available to compile. I did not set up a global maven, hosting client-tweaks, so you need to do it locally.

Other

Install this mod, if you find any of the above features intriguing.

If you dont know how to install mods / the fabric loader / anithing else fabric modding related visit this amazing page from the official fabric wiki.

If you have any issues, wishes, etc, go to the source code on github and open up an issue.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works