Skip to content

如何干涉区块的生成(指的是涉及区块生成的事件) #88

Answered by NekoCaffeine
noTIAN239 asked this question in Q&A

You must be logged in to vote

你的需求看起来应该归类为地形生成
你应该关心 DecorateBiomeEvent 值得注意的是这个事件在地形生成总线(即 MinecraftForge.TERRAIN_GEN_BUS)

如果你需要参考世界生成相关的代码 那么 BOP 会是一个很不错的选择
https://github.com/Glitchfiend/BiomesOPlenty

关于其它情况
如果你的生成和大型结构有关 则应该注册对应的结构组件到该大型结构中
如果和矿物有关或类似变种(设定)有关 则应该关心 OreGenEvent 值得注意的是这个事件在矿物总线(即 MinecraftForge.ORE_GEN_BUS)

Replies: 3 comments 1 reply

You must be logged in to vote
0 replies
Answer selected by SeraphJACK

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@3TUSK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants