Jump to content

Recommended Posts

Posted

(Minecraft 1.18.1 Forge) In my mod that i am developing, i was able to register new biomes, using the same method to register items or blocks or enity or etc. Since I am registered and trying to generate a world with only one biome, I can view my biome, the world is generated correctly. But when I generate a world in the traditional method, the biome is not generated even if it is present in the list of biomes taken from the Locatebiome command.
I think I am missing something to have the biome spawn, but I don't know where to find it.

Init Biome Class

public class BiomeInit 
{
    public BiomeInit() {
    }
    
    public static final DeferredRegister<Biome> BIOMES = DeferredRegister.create(ForgeRegistries.BIOMES, ImmortalObsidian.MOD_ID);
    
    public static final RegistryObject<Biome> SOBBY_FOREST = BIOMES.register("sobby_forest",
            ()-> OverworldBiomes.forest(true, true, true));
    
    public static final RegistryObject<Biome> SOBBY_END = BIOMES.register("sobby_planes",
            ()-> ImmortalObsidianBiomes.sobbyPlanes());
    
    //BiomeLoadingEvent
    
}

Main Class

@Mod(ImmortalObsidian.MOD_ID)
public class ImmortalObsidian 
{
    public static final String MOD_ID = "immortalobsidian";
    
    public static final CreativeModeTab OBSDIAN_TAB = new CreativeModeTab(MOD_ID) {
        
        @Override
        public ItemStack makeIcon() {
            return new ItemStack(Items.OBSIDIAN);
        }
    };
    
    public ImmortalObsidian()
    {
        var bus = FMLJavaModLoadingContext.get().getModEventBus();
        
        BlockInit.BLOCKS.register(bus);
        ItemInit.ITEMS.register(bus);
        EntityInit.ENTITY.register(bus);
        BiomeInit.BIOMES.register(bus);
    }
    
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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