Fixes
This commit is contained in:
parent
a968b9bb23
commit
8beabd0f96
18 changed files with 176 additions and 63 deletions
|
@ -6,6 +6,7 @@ import net.minecraft.structure.rule.BlockMatchRuleTest;
|
|||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.BuiltinRegistries;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.world.gen.CountConfig;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.decorator.ChanceDecoratorConfig;
|
||||
import net.minecraft.world.gen.decorator.Decorator;
|
||||
|
@ -72,6 +73,11 @@ public class EndFeature {
|
|||
return newFeature;
|
||||
}
|
||||
|
||||
public static EndFeature makeChunkFeature(String name, Feature<DefaultFeatureConfig> feature) {
|
||||
ConfiguredFeature<?, ?> configured = feature.configure(FeatureConfig.DEFAULT).decorate(Decorator.COUNT.configure(new CountConfig(1)));
|
||||
return new EndFeature(name, feature, GenerationStep.Feature.LOCAL_MODIFICATIONS, configured);
|
||||
}
|
||||
|
||||
public Feature<?> getFeature() {
|
||||
return feature;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue