Skip to content

Repository files navigation

Strut Your Stuff

Strut Your Stuff is a library designed to create struts, blocks that span between two points. Originally an internal system inside Bits 'n' Bobs, it's been extracted into a standalone API that makes the reuse of these systems quick and easy.

Links

Features

  • Collision structures: Struts create physical collision structures, ensuring more polished interaction.
  • Flywheel integration: Struts can be rendered within Flywheel's rendering system, allowing for improved performance.
  • Surface clipping: Strut models are clipped to surfaces for a more polished look.

Getting Started

To start using the library, you'll need to add the Aztech Maven to your build.gradle file:

repositories {
    maven { // Aztech Maven, home of Strut Your Stuff
        name = "Aztech Maven"
        url = "https://maven.azmod.net/releases"
    }
}

Depending on your project's scope, you can include Strut Your Stuff as either an external or internal dependency.

External Dependency (Preferred)

Versions can be found on CurseForge and Modrinth.

It is recommended to use Strut Your Stuff as a standard external dependency. This approach ensures you automatically get fixes and improvements, reduces overhead, and helps give credit to the library.

In your build.gradle dependencies:

dependencies {
    implementation "com.cake.struts:struts:<version>+mc1.21.1"
}

You'll also need to declare it as a dependency in your neoforge.mods.toml:

[[dependencies.yourmodid]]
    modId = "struts"
    type = "required"
    versionRange = "[<version>,)"
    ordering = "AFTER"
    side = "BOTH"

Internal Dependency (With Jar-In-Jar)

Versions can be found on CurseForge and Modrinth.

If you just want a no-fuss, clean single JAR and don't want to make your users download an extra file, using jar-in-jar is totally fine. (Especially for non-create addons, this library is less likely to be used by multiple mods).

Use both implementation and jarJar to include it directly within your compiled mod:

dependencies {
    implementation "com.cake.struts:struts:<version>+mc1.21.1"
    jarJar "com.cake.struts:struts:<version>+mc1.21.1"
}

About

Minecraft mod library for "strut" blocks, that span between two positions. Provides polished rendering, collision and interaction systems

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages