Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MarKis

Members
  • Joined

  • Last visited

Everything posted by MarKis

  1. Hello, I am very new to this forum. I have managed to crate a new tree with this code: public static final Holder<ConfiguredFeature<TreeConfiguration,?>> PINE_TREE = FeatureUtils.register("pine_tree", Feature.TREE, new TreeConfiguration.TreeConfigurationBuilder (BlockStateProvider.simple(BlockManager.PINE_LOG.get()), new StraightTrunkPlacer(5, 6, 3), BlockStateProvider.simple(BlockManager.PINE_LEAVES.get()), new BlobFoliagePlacer(ConstantInt.of(2), ConstantInt.of(0), 4), new TwoLayersFeatureSize(1, 0, 2)).build()); In my placedFeatures class, I've this code: public static final Holder<PlacedFeature> PINE_CHECKED = PlacementUtils.register("pine_checked", ConfiguredFeaturesManager.PINE_TREE, treePlacement(PlacementUtils.countExtra(10, 0.1F, 1))); public static final RegistryObject<PlacedFeature> PINE_PLACED = PLACED_FEATURES.register( "pine_placed", () -> new PlacedFeature ((Holder<ConfiguredFeature<?,?>>) (Holder<? extends ConfiguredFeature<?,?>>) ConfiguredFeaturesManager.PINE_TREE, List.of(RarityFilter.onAverageOnceEvery(15), InSquarePlacement.spread(), PlacementUtils. HEIGHTMAP, BiomeFilter.biome()))); And, in my configuredFeatures class, I've this code: public static final Holder<ConfiguredFeature<RandomFeatureConfiguration, ?>> PINE_SPAWN = FeatureUtils.register("pine_spawn", Feature.RANDOM_SELECTOR, new RandomFeatureConfiguration(List.of(new WeightedPlacedFeature(PINE_CHECKED, 0.2F), new WeightedPlacedFeature(PINE_CHECKED, 0.1F)), PlacedFeaturesManager.PINE_CHECKED)); when I run, it gives this errors: java.lang.ExceptionInInitializerError java.lang.NullPointerException: Registry Object not present: udy:rubyore I have tried to solve this, but don't know how. If someone has an idea that would be great. Thank you for the help!

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.