这个模组是做什么的?
您可以创建哪些形状?
目前您可以创建:
- 圆形
- 球体
- 圆柱体
- 2D 和 3D 椭球体
- 两点之间的直线
- 螺旋线及其一些变体
- 环形面
其他功能?
是的,这里还有一个高性能数学类以及一些提供有用方法的工具世界生成类,以及一个用于柏林噪声的类。
设置
如果您正在开发模组并想使用此库,可以将以下内容放入您的 build.gradle 文件中:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:ewc:<version>"
}
您可以在版本选项卡中找到版本号(例如:3.0.0+1.21.1)。
信息
Wiki
我强烈建议您查看 Wiki 以了解所有可能的功能:Mod-Wiki
性能
此模组使用了其自带的数学计算方式,您可以直接使用。例如,计算 1,000,000 个余弦值时:
使用 Math.cos() 的平均计算时间为 476 毫秒;而使用自定义数学函数 FatsMaths.getFastCos() 时,平均时间仅为 7 毫秒;使用 FastMaths.getPreciseCos() 时,平均时间为 14 毫秒。
使用库
这些方法具有一些通用参数:
StructureWorldAccess world 用于将结构放置到世界中。StructureWorldAccess 允许您在世界生成期间或之外使用该功能。
BlockPos pos 结构的中心位置。
List<BlockLayer> layers BlockLayer 列表,更多信息请参见 Wiki:Mod-Wiki
放置形状所需的不同尺寸参数。
未来计划?
我会继续积极开发此模组,以支持越来越多的功能。如果您有任何想法或建议,希望能帮助改进模组,请在 GitHub 上告诉我。
What is this mod about?
-
Create your world gen features easily with this library. It allow you to generate simple shapes (spherer, spirals, torus...) that combined together can create some beautiful features.
-
This mod also support multi-chunk features (placing features larger than 3x3 chunks).
-
You can also manipulate structure and placing them in the world
-
You can animate the placement of structure/ shape depending on many parameters
-
Implement a config API
-
One other functionnality that is not implemented for the moment is the support for custom particles shape
What Shapes can you create?
you can for the moment create :
- Circles
- Spheres
- Cylinders
- 2d and 3d ellipsoid
- Lines between 2 points
- Spirals and some variations
- Tores
Other features?
Yes there are a performance maths class as well as some utility world gen class that provide useful methods and a Class for perlin noise
Setup
if you are developping a mod and you want to use this library, you can put this in your build.gradle:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:ewc:<version>"
}
you can find the version in the version tab (ex: 3.0.0+1.21.1)
Info
Wiki
I highly recommend you go to check the wiki to understand everything that is possible : Mod-Wiki
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
List<BlockLayer> layers a list of BlockLayer, see the wiki for more info : Mod-Wiki
The different size required for the shape to place
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧