ABKQPO 98101c00aa Add fluid block autoplace with a pluggable fluid cost and source API
Water, lava and every Forge fluid block can now be placed by survival autoplace, paid for with fluid instead of with an item.

* Fluid costs are registered per block state, water and lava are registered by default, and a registration can ask for fluid even when the block also has an item form.
* A fluid is only placed once the rest of the structure is in place, so it cannot flow out of a half built multiblock, and only the fluid missing from a position is charged, so topping up a leak costs the difference instead of a whole bucket.
* The fluid comes from the player: their fluid containers, plus whatever mods contribute through the new fluid container extractor and fluid source provider registries.
* Existing structure definitions need no change, as ofBlock and the other block elements become fluid elements when the block has no item form.
2026-09-10 18:35:16 +08:00
2026-06-19 15:31:17 +02:00
2026-06-19 15:34:27 +02:00
2022-03-02 00:32:50 +08:00
2025-03-10 16:27:58 -05:00
2026-06-19 15:31:17 +02:00
2024-02-04 20:01:59 +00:00
2022-01-17 23:58:46 -08:00
2026-07-03 19:22:22 +02:00
2026-04-03 22:32:39 +02:00
2026-04-03 22:32:39 +02:00
2026-01-05 21:28:00 +01:00
2026-06-19 15:31:17 +02:00
2026-06-19 15:31:17 +02:00
2023-07-13 22:05:35 +02:00
2024-01-09 11:42:10 +08:00
2026-06-19 15:34:27 +02:00

StructureLib

A standalone version of TecTech structure api.

Originally created by TecTech authors, taken with permission. It's under MIT license anyway.

permission

Using

  1. Add this to your build.gradle
    dependencies {
      compile "com.github.GTNewHorizons:StructureLib:master-SNAPSHOT:deobf"
    }
    repositories {
        maven {
            name = "jitpack.io"
            url = "https://jitpack.io"
        }
    }
    
    Replace master-SNAPSHOT with a commit hash or a tag name (if any) of your choice to prevent unexpected upstream changes.
  2. Add required-after:structurelib; to your @Mod(dependencies = "..") tring.
  3. Add structurelib to your mcmod.info.

Contribution

The project is developed using IDEA. Please manually configure the build to not delegate to gradle for textures to show up in dev.

Current license

Due to me adding in ItemStackMap, which was derived from code from CodeChicken's LGPL mod NEI. This mod is effectively considered licensed under LGPL in its entirety since commit ebef584b8c or any squash commit containing it, e.g. 609e50428e.

Note while the LICENSE.txt is added by a much later commit, all code on previous commits are covered by this as well.

S
Description
No description provided
Readme GPL-3.0
16 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 99.8%
Shell 0.2%