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.

Dmitrium12

Members
  • Joined

  • Last visited

Everything posted by Dmitrium12

  1. I want my ore to be generated in the end. I did this: @Mod.EventBusSubscriber(modid = MODID) public class OreGeneration2 { private static ConfiguredFeature oreConfiguredFeature; private static ConfiguredFeature oreConfiguredFeature() { if (oreConfiguredFeature == null) { oreConfiguredFeature = new ReplaceBlockFeature(ReplaceBlockConfig.CODEC) { @Override public boolean generate(ISeedReader reader, ChunkGenerator generator, Random rand, BlockPos pos, ReplaceBlockConfig config) { return super.generate(reader, generator, rand, pos, config); } }.withConfiguration(new ReplaceBlockConfig(Blocks.END_STONE.getDefaultState(), RegistryHandler.CATAZ_END_ORE.get().getDefaultState())) .withPlacement(new Height4To32(NoPlacementConfig.CODEC) { @Override public Stream<BlockPos> getPositions(Random random, NoPlacementConfig config, BlockPos pos) { return IntStream.range(200, 201 + random.nextInt(3)).mapToObj((count) -> { int j = random.nextInt(16) + pos.getX(); int k = random.nextInt(16) + pos.getZ(); int startY = 1; int endY = 255; int l = startY+random.nextInt(endY-startY+1); return new BlockPos(j, l, k); }); } }.configure(IPlacementConfig.NO_PLACEMENT_CONFIG)); } return oreConfiguredFeature; } @SubscribeEvent public static void registerOreAtBiomes(BiomeLoadingEvent event) { if (event.getCategory().equals(Biome.Category.THEEND)) { event.getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, oreConfiguredFeature()); } } } It is not generated. Tell me where I screwed up.

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.