public class CityFeature { public static void generateCityFeature(Level level, BlockPosition pos) { // Generate city structure CityStructure cityStructure = new CityStructure(level, pos); cityStructure.generate(); } }
public District(Level level, BlockPosition pos, int index) { this.level = level; this.pos = pos; this.index = index; }
public static void register() { Registry.register(Registry.CONFIGURED_FEATURE_REGISTRY, "city_feature", CITY_FEATURE); } } To use the feature, you can add the following code to your Minecraft world's generation settings:
Effortless Math services are waiting for you. login faster!
Password will be generated automatically and sent to your email.
After registration you can change your password if you want.