Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

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 Neutral

1 Follower

About samjviana

  • Rank
    Stone Miner

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. As from the integer "6" you asked ... it represent the vein size that the ore will try to generate.
  2. 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)
  3. 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) ) ); }
  4. 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.
  5. In which moment the game crashes? on you interact with a block?
  6. 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)
  7. The error is happening when it tries to get the Player inventoty but it seems to get an empty Array right?🤔
  8. 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
  9. which version of forge are you using?
  10. Can you show this function? com.putopug.combat7.objects.blocks.CraftoxBlock$BlockCus.onBlockActivated(CraftoxBlock.java:176)
  11. oh, my bad ... didn't see that XD them he could just delete those entries, no?
  12. 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
  13. I think that those "Item" Registry Entries aren't even necessary, you could subscribe the RegistryEvent.Register<Item> and them register an BlockItem for those Blocks, unlesse you need something specific.
  14. what @Draco18s is saying is that the "tutorial_slab", "tutorial_stairs" and "lime_linoleum" are repeated you need to change those as well, as said before, every item, block, entity, etc had to have an unique name.
  15. the log file can be found in the "run/logs/debug.log" or "run/logs/latest.log". also, the code that @Luis_ST asked would be usefull.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.