tutorial:features
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:features [2020/09/05 20:01] – 1.16.2 siglong | tutorial:features [2020/09/05 20:29] – minor improvement siglong | ||
---|---|---|---|
Line 57: | Line 57: | ||
==== Configuring a feature ==== | ==== Configuring a feature ==== | ||
- | We need to give a configuration to a feature. | + | We need to give a configuration to a feature. Make sure to register configured feature as well as feature. |
<code java> | <code java> | ||
Line 66: | Line 66: | ||
@Override | @Override | ||
public void onInitialize() { | public void onInitialize() { | ||
+ | [...] | ||
+ | | ||
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE, | Registry.register(BuiltinRegistries.CONFIGURED_FEATURE, | ||
} | } | ||
Line 82: | Line 84: | ||
public class DefaultBiomeFeaturesMixin { | public class DefaultBiomeFeaturesMixin { | ||
@Inject(method = " | @Inject(method = " | ||
- | private static void addPlainsFeaturs(GenerationSettings.Builder builder, CallbackInfo ci) { | + | private static void addPlainsFeatures(GenerationSettings.Builder builder, CallbackInfo ci) { |
builder.feature(GenerationStep.Feature.TOP_LAYER_MODIFICATION, | builder.feature(GenerationStep.Feature.TOP_LAYER_MODIFICATION, | ||
} | } |
tutorial/features.txt · Last modified: 2023/12/18 01:19 by solidblock