Jump to content

Megaton_216_

Members
  • Posts

    39
  • Joined

  • Last visited

Posts posted by Megaton_216_

  1. 2 hours ago, Beethoven92 said:

    You have to set the correct render layer for your block with:

    
    RenderTypeLookup.setRenderLayer(your_block, RenderType.getTranslucent());

    Note that this has to be set in your client setup event

    in place of your_block, I put LARGE_CRYSTAL. I'm getting an error "Cannot resolve method 'setRenderLayer(net.minecraftforge.fml.RegistryObject<net.minecraft.block.Block>, net.minecraft.client.renderer.RenderType)'". What is the problem here? 

  2. On 9/8/2020 at 2:34 PM, vemerion said:

    Well, first you would create you own IRenderHandler, which would render the sky. To get an idea of how vanilla does it, you can look at the renderSky() method in the WorldRenderer class. Then you would use setSkyRenderer() in your Dimension class to set the renderer to your custom IRenderHandler.

    Wait how does renderSky() help with creating my own IRenderHandler? I'm sorry I just don't get that. 

  3. 3 hours ago, Beethoven92 said:

    How would you clear all the features of one type without first extracting them from a biome? You can access biomes features through Biome#getFeatures since each biome defines its own set of features. Also i believe emerald ore needs a special case since its generation uses a ReplaceBlockConfig, not an OreFeatureConfig

    Sorry I misread my own code lol.

  4. On 8/26/2020 at 10:37 AM, Draco18s said:

    For each biome:

     - For each feature:

     - - If the feature's config is a DecoratedFeatureConfig:

     - - - If the Decorated Config's feature's config is an OreFeatureConfig:

     - - - - If the Ore Config has the block we're looking for:

     - - - - - Remove the feature.

     

    Yes, the feature's config's feature's config. Vanilla wraps things in several layers and its the inner-most one that actually tells us what KIND of feature it is.

    Ok I understand that much but why do you have to go through every biome? If I can get rid of everything without going through all the biomes in a loop why must I do so now?

     

    Sorry for the delay I was on a trip.

×
×
  • Create New...

Important Information

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