Skip to content

FabricExtras/StructurePoolAPI

Repository files navigation

StructurePoolAPI

Features

  • Inject structures into structure pools
  • Maximize spawn count of the injected structure (e.g. 2 per village)

Example use cases

  • Adding custom buildings to villages

Try it out

Check out this repo, resolve dependencies, select Testmod client run config.

Title

Use /locate command to find villagers, with the example custom structures.

Installation

Add this mod as dependency into your build.gradle file.

Repository

repositories {
    maven {
        name = 'Modrinth'
        url = 'https://api.modrinth.com/maven'
        content {
            includeGroup 'maven.modrinth'
        }
    }
}

Dependency

dependencies {
    modImplementation "maven.modrinth:structure-pool-api:${project.structure_pool_api_version}"
}

Usage

To see how the API is used, check out the example mod.

Additionally, a config type is included in the API package, which can be read/written using JSON format. So you can expose the injection parameters as a config file for players.

Include or depend

Feel free to include this API in your mod, the license allows you to do so.

If you want to say thank you, you can link this project as a dependency on Modrinth/CruseForge, so downloads are counted for this project too.

Mod ID: structure_pool_api

Modrinth dependency (gradle entry): required.project 'structure-pool-api'

CurseForge dependency (gradle entry): requiredDependency 'structure-pool-api'

About

🏗️ Allows injecting structures into structure pools

Resources

License

Stars

Watchers

Forks

Languages