Download easierworldcreator — Minecraft Mods — ModStock
easierworldcreator

easierworldcreator

Active

Downloads

0

Last update

11 months ago
Client
Libraries
Utils

What is this mod about?

create your world gen features easily with this library. It allow you to generate simple shapes that combined together can create some beautiful features

What Shapes can you create?

you can for the moment create :

  • Circles
  • Spheres
  • 2d and 3d ellipsoid
  • Lines between 2 points
  • Spirals and some variations
  • Tores with free rotation

Other features?

Yes there are a performance maths class as well as an utility world gen class that provide useful methods

Setup

to setup the mod, put this in your build.gradle

repositories {
    maven {
        name = "Modrinth"
        url = "" rel="noopener nofollow" target="_blank">https://api.modrinth.com/maven"
        content {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modImplementation "maven.modrinth:ewc:<version>"
}

Infos

Performance

this mod use is own maths that you can use For example calculating 1 000 000 cosinus : gives an avarage calculating time of 476 ms when using Math.cos(), using the custom maths, you get an average time of 7ms when using FatsMaths.getFastCos() and an average of 14ms when using FastMaths.getPreciseCos()

Using the library

the methods comes with common parameter :

StructureWorldAccess world that is used to put the structure in the world. StructureWorldAccess allow you to use the feature either during world gen or not

BlockPos pos the position of the center of the structure

Boolean force to replace existing blocks by your structure if true

List<Block> stateToForce a list of blocks that the structure can still replace when boolean force = false

List<BlockState> stateToPlace a list to place your blocks in a random order. If you only provide one blockState, it will only place this blockState

Future?

I continue to develop actively this mod to support more and more possible things. You have any idea, suggestion on how to improve the mod? Let me know on the github.

Project members
RodoFire_

RodoFire_