
samjviana
Members-
Content Count
50 -
Joined
-
Last visited
-
Days Won
1
samjviana last won the day on March 7
samjviana had the most liked content!
Community Reputation
6 NeutralAbout samjviana
-
Rank
Stone Miner
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
As from the integer "6" you asked ... it represent the vein size that the ore will try to generate.
-
Only of it is something specific that the default vanilla features can't solve. For ore generation you could use Feature.ORE (default ore generation), Feature.EMERALD_ORE (which generates only in mountain biome) or Feature.No_SURFACE_ORE (ancient debris feature, an ore that has no contact with air blocks)
-
The add function needs an "Supplier<ConfiguredFeature<?, ?>>" your lambda function is returning a type Ingredient you would need to return an ConfiguredFeature, like so: if (event.getCategory() != Biome.Category.NETHER && event.getCategory() != Biome.Category.THEEND) { event.getGeneration().getFeatures(GenerationStage.Decoration.UNDERGROUND_ORES).add( () -> Feature.ORE.withConfiguration( new OreFeatureConfig(OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, RegistryHandler.MY_ORE.get().getDefaultState(), 6) ) ); }
-
You can use your IDE to look the source code of Vanilla Classes ... The classes you would like to see are net.minecraft.world.gen.feature.Feature and net.minecraft.world.gen.feature.Features.
-
AL lib: (EE) alc_cleanup: 1 device not closed when opening a GUI
samjviana replied to PutoPug's topic in Modder Support
In which moment the game crashes? on you interact with a block? -
It might have an better way to do this by checking the dimension of the biome, but i have to admit that i don't know how to check the dimension XD So ... you could check if the biome is NOT NETHER or THEEND Category, something like: if (event.getCategory() != Biome.Category.NETHER && event.getCategory() != Biome.Category.THEEND)
-
troublemaker_47 started following samjviana
-
AL lib: (EE) alc_cleanup: 1 device not closed when opening a GUI
samjviana replied to PutoPug's topic in Modder Support
The error is happening when it tries to get the Player inventoty but it seems to get an empty Array right?🤔 -
You would need to listen to BiomeLoadingEvent (), you could register an function to it like this: MinecraftForge.EVENT_BUS.addListener(EventPriority.HIGH, onBiomeLoading); As from the javadocs of the event: "This event fires when a Biome is created from json or when a registered biome is re-created for worldgen" With this done you would just need to "treat" the biome in the listener and add any feature (like ore generation) you need. An exemple of listener: public static void onBiomeLoading(final BiomeLoadingEvent event) { /* Check which biome are being loaded, example: i
-
which version of forge are you using?
-
AL lib: (EE) alc_cleanup: 1 device not closed when opening a GUI
samjviana replied to PutoPug's topic in Modder Support
Can you show this function? com.putopug.combat7.objects.blocks.CraftoxBlock$BlockCus.onBlockActivated(CraftoxBlock.java:176) -
Maybe he could do something like this, if i'm not mistaken: @SubscribeEvent public static void onRegisterItem(final RegistryEvent.Register<Item> event) { final IForgeRegistry<Item> registry = event.getRegistry(); ModBlocks.BLOCKS.getEntries().stream().map(RegistryObject::get).forEach(block -> { if (!isInFilter(block)) { return; } else { final BlockItem blockItem = new BlockItem(block, properties); blockItem.setRegistryName(block.getRegistryName()); registry.registe