这个模组是做什么的?
-
使用本库,您可以轻松创建自己的世界生成功能。它允许您生成简单的形状(球体、螺旋线、环形面等),将它们组合在一起可以创造出精美的结构特征。
-
此模组还支持多区块功能(放置大于 3x3 区块的结构)。
-
您还可以操作结构并将其放置在世界中。
-
您可以根据多种参数来动画化结构/形状的放置过程。
-
实现了配置 API。
-
另一个目前尚未实现的功能是支持自定义粒子形状。
您可以创建哪些形状?
目前您可以创建:
- 圆形
- 球体
- 圆柱体
- 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.
下载 Easier World Creator (ewc)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Easier World Creator (ewc)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Easier World Creator (ewc)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Easier World Creator (ewc)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Easier World Creator (ewc)
下载 Easier World Creator (ewc)
下载 Easier World Creator (ewc)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Easier World Creator (ewc)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Easier World Creator (ewc)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Easier World Creator (ewc)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
3.1.2 更新:
变更:
- 将
TagUtil类更改为接受所有标签,而不仅仅是方块和物品
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧