Easierworldcreator - Powerful World Generation Library
This modification is a specialized library that significantly simplifies the process of creating unique landscape objects and structures in Minecraft. With its help, developers can easily generate various geometric shapes, combining which allows creating stunning natural and artificial objects.
Available Geometric Shapes
The library supports generation of the following structure types:
- Circles of various sizes
- Spheres and hemispheres
- Ellipsoids in 2D and 3D space
- Straight lines between two points
- Spirals and their modifications
- Tori with free rotation capability
Additional Features
In addition to shape generation, the mod includes a high-performance mathematical module and a utility class for world generation work, providing useful methods for developers.
Project Setup
To connect the library to your project, add to your build.gradle file:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:ewc:<version>"
}
Performance
The mod uses its own optimized mathematical library. For example, calculating 1,000,000 cosines:
- Standard
Math.cos(): average 476 ms - Fast
FatsMaths.getFastCos(): average 7 ms - Precise
FastMaths.getPreciseCos(): average 14 ms
Library Usage
Main library methods use standard parameters:
StructureWorldAccess world- for placing structures in the worldBlockPos pos- central position of the structureBoolean force- permission to replace existing blocksList<Block> stateToForce- list of blocks that can be replacedList<BlockState> stateToPlace- list of blocks for random placement
Development Plans
Mod development is actively continuing with the goal of expanding functionality and supporting new generation capabilities.