mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-12 08:17:29 +00:00
98101c00aaead94722caf00249dd730ac14feaf6
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.
StructureLib
A standalone version of TecTech structure api.
Originally created by TecTech authors, taken with permission. It's under MIT license anyway.
Using
- Add this to your build.gradle
Replace
dependencies { compile "com.github.GTNewHorizons:StructureLib:master-SNAPSHOT:deobf" } repositories { maven { name = "jitpack.io" url = "https://jitpack.io" } }master-SNAPSHOTwith a commit hash or a tag name (if any) of your choice to prevent unexpected upstream changes. - Add
required-after:structurelib;to your@Mod(dependencies = "..")tring. - Add
structurelibto yourmcmod.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.
Languages
Java
99.8%
Shell
0.2%
