Jump to content

Mob spawning in custom dimension (too many)


TheBasedRebel

Recommended Posts

Hello, i'm having a problem where in my custom dimension too many of my mob spawn, and they don't spawn properly.

 

		this.spawnableCreatureList.add(new SpawnListEntry(Raptor.class, 1000, 1, 1));
	this.spawnableCreatureList.add(new SpawnListEntry(Eotyrannus.class, 1000, 1, 1));
	this.spawnableCreatureList.add(new SpawnListEntry(Triceratops.class, 1000, 1, 1));
	this.spawnableCreatureList.add(new SpawnListEntry(Apatosaurus.class, 1000, 1, 1));
	this.spawnableCreatureList.add(new SpawnListEntry(Obamadon.class, 1000, 1, 1));

 

This is in my biome gen class. This is the only biome in my dimension. When I use that code only the last two (Apatosaurus, and Obamadon) spawn. They spawn rarely and I only ever saw one Obamadon after flying around for at least 30min. During that time I only saw around 10 Apatosaurus; this was in flying straight one direction. I saw none of the other mobs.

 

The two that did spawn somewhat are type EntityTameable and in order to even get them to spawn at all I added this to both of their Entity classes.

 

    @Override
    public boolean getCanSpawnHere()
    {
        return true;
    }

 

Now all the other ones are type EntityMob. They have this in their code.

 

	@Override
protected boolean isValidLightLevel()
{
    return true; //don't care about the light level to spawn
}

 

Now back to my BiomeGen Class where I had the spawn code I have also tried using:

 

This

		this.spawnableMonsterList.add(new SpawnListEntry(Raptor.class, 1, 1, 1));
	this.spawnableMonsterList.add(new SpawnListEntry(Eotyrannus.class, 1, 1, 1));
	this.spawnableMonsterList.add(new SpawnListEntry(Triceratops.class, 1, 1, 1));
	this.spawnableMonsterList.add(new SpawnListEntry(Apatosaurus.class, 1, 1, 1));
	this.spawnableMonsterList.add(new SpawnListEntry(Obamadon.class, 1, 1, 1));

 

And this

		this.spawnableMonsterList.add(new SpawnListEntry(Raptor.class, 1000, 1, 1));
	this.spawnableMonsterList.add(new SpawnListEntry(Eotyrannus.class, 1000, 1, 1));
	this.spawnableMonsterList.add(new SpawnListEntry(Triceratops.class, 1000, 1, 1));
	this.spawnableCreatureList.add(new SpawnListEntry(Apatosaurus.class, 1000, 1, 1));
	this.spawnableCreatureList.add(new SpawnListEntry(Obamadon.class, 1000, 1, 1));

 

In the first one I use

this.spawnableMonsterList.add

and have the variables set to the lowest possible. They spawn everywhere, which is okay but they spawn wayyy too much. They are all over the place considering I have the spawn so low. Also they spawn in huge groups which doesn't make sense since the min is 1 and max is 1 (Changing the min and max doesn't seem to change the group size at all). Also they only spawn in dark areas, under trees, under cliffs, ect. Going back to the code earlier which allows them to spawn during the day under any light level, I am confused as to why they won't spawn regularly in open grass.

 

As for the last two, they spawn anywhere and everywhere and literally cover the entire ground, presumably this is having to do with this code I mention earlier

 

    @Override
    public boolean getCanSpawnHere()
    {
        return true;
    }

 

However I am not sure, but considering without it they won't spawn at all I think it is a safe assumption.

 

Now for the second configuration the same goes for the first three mobs (spawn too much, large groups, under trees and cliffs) but the last two that spawned everywhere before now spawn rarely but only around the first few chunks out of the portal.

 

I've been messing around with this for a few days now and can't get any of this to work how I want. Any help at all will be greatly appreciated, and I'll give you credit it you can solve this issue for me :) Thanks for your time :)

 

P.S. If you are the person that solves this I will add your ingame name to a config file which will give you something only obtainable that way if you ever play the mod :)

Link to comment
Share on other sites

this.spawnableCreatureList.add(new SpawnListEntry(Raptor.class, 1000, 1, 1));

  this.spawnableCreatureList.add(new SpawnListEntry(Eotyrannus.class, 1000, 1, 1));

  this.spawnableCreatureList.add(new SpawnListEntry(Triceratops.class, 1000, 1, 1));

  this.spawnableCreatureList.add(new SpawnListEntry(Apatosaurus.class, 1000, 1, 1));

  this.spawnableCreatureList.add(new SpawnListEntry(Obamadon.class, 1000, 1, 1));

 

 

[1000 is the spawn-rate]

[since you made the spawn rate 1000, I think that may be the problem. Maybe you should make it like 5?]

 

[1, 1 means minimum / maximum, it doesn't do anything about spawn rate]

 

 

 

 

Link to comment
Share on other sites

this.spawnableCreatureList.add(new SpawnListEntry(Raptor.class, 1000, 1, 1));

  this.spawnableCreatureList.add(new SpawnListEntry(Eotyrannus.class, 1000, 1, 1));

  this.spawnableCreatureList.add(new SpawnListEntry(Triceratops.class, 1000, 1, 1));

  this.spawnableCreatureList.add(new SpawnListEntry(Apatosaurus.class, 1000, 1, 1));

  this.spawnableCreatureList.add(new SpawnListEntry(Obamadon.class, 1000, 1, 1));

 

 

[1000 is the spawn-rate]

[since you made the spawn rate 1000, I think that may be the problem. Maybe you should make it like 5?]

 

[1, 1 means minimum / maximum, it doesn't do anything about spawn rate]

 

Yes I know what they mean, what i'm saying is that changing it had no impact of spawn rate or the minimum/maximum. I put 1000 just as a test to see if it would change and just never put it back, lol. I'm just not sure what would be causing the problems I mentioned above. Thanks for the response :)

Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • My journey into crypto trading began tentatively, with me dipping my toes into the waters by purchasing my first Bitcoin through a seasoned trader. With an initial investment of $5,000, I watched as my investment grew, proving to be both fruitful and lucrative. Encouraged by this success, I decided to increase my investment to $150,000, eager to capitalize on the growing popularity of cryptocurrency, However, as cryptocurrency gained mainstream attention, so too did the number of self-proclaimed "experts" in the field. Suddenly, everyone seemed to be a crypto guru, and more and more people were eager to jump on the bandwagon without fully understanding the intricacies of this complex world. With promises of quick and easy profits, these con artists preyed on the uninformed, luring them into schemes that often ended in disappointment and financial loss. Unfortunately, I fell victim to one such scheme. Seduced by the allure of easy money, I entrusted my hard-earned funds to a dubious trading platform, granting them access to my accounts in the hopes of seeing my investment grow. For a brief period, everything seemed to be going according to plan, with regular withdrawals and promising returns on my investment. However, my hopes were soon dashed when, without warning, communication from the platform ceased, and my Bitcoin holdings vanished into thin air. Feeling helpless and betrayed, I confided in a family member about my predicament. They listened sympathetically and offered a glimmer of hope in the form of a recommendation for Wizard Web Recovery. Intrigued by the possibility of reclaiming what I had lost, I decided to explore this option further. From the moment I reached out to Wizard Web Recovery, I was met with professionalism and empathy. They took the time to understand my situation and reassured me that I was not alone in my plight. With their guidance, I embarked on a journey to reclaim what was rightfully mine. Wizard Web Recovery's expertise and dedication were evident from the start. They meticulously analyzed the details of my case, uncovering crucial evidence that would prove invaluable in our quest for justice. With each step forward, they kept me informed and empowered, instilling in me a newfound sense of hope and determination. Through their tireless efforts and unwavering support, Wizard Web Recovery succeeded in recovering my lost Bitcoin holdings. It was a moment of triumph and relief, knowing that justice had been served and that I could finally put this chapter behind me. In conclusion, My experience with Wizard Web Recovery  was nothing short of transformative. Their professionalism, expertise, and unwavering commitment to their clients set them apart as true leaders in the field of cryptocurrency recovery. I am forever grateful for their assistance and would highly recommend their services to anyone in need of help navigating the treacherous waters of cryptocurrency scams. 
    • Ok so: Two things to note: It got stuck due to my dimension type. It was previously the same as the overworld dimension tpye but after changing it , it didn't freeze during spawn generation. ALSO, APPARENTLY, the way I'm doing things, the game can't have two extremely-rich dimensions or it will make the new chunk generation be veeery VEEERY slow. I'm doing the dimension file genreation all in the data generation step now, so it's all good. Mostly. If anybody has any tips regarding how can i more efficently generate a biome-rich dimension, im all ears.
    • https://mclo.gs/qTo3bUE  
    • Check for the mods ingame - create a new world in creative mod and check the creative inventory  
    • I installed forge 49.0.22 with Minecraft 1.20.4 because I want to play this mod: AgeOfWeapons-Reforged-1.20.4-(v.1.3.3) I able able to launch forge from Minecraft launcher but then the menu doesn't show the "mods" button. The menu says 3 mods are loaded even though I have 2 mods in the mods folder. When I start the game it seems that the AgeOfWeapons mod isn't loaded, but I can't be sure. How can I check which mods are loaded so that I can play with the AgeOfWeapons mod?
  • Topics

×
×
  • Create New...

Important Information

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