Jump to content

Recommended Posts

Posted

Do you know where the minecraft code initial WorldEntitySpawner is defined?

I want to see how they set up the initial spawn chances of the Zombie, Baby Zombie, and the Chicken Baby Zombie, among other things.

Thanks.

Posted

In that function is this line:

List<SpawnListEntry> list = biomeIn.getSpawns(EntityClassification.CREATURE);

 

I'm trying to figure out where that list is defined (ie what mobs spawn where, and with what chances)

 

Posted

Thanks.  I think I defeated myself here by asking the wrong questions.

I was trying to figure out how to create some of the custom mobs that are rarely created, such as skeleton's or zombies riding horses, or charged creepers, or baby zombies riding chickens.  I figured the spawn rules would answer that, but it just defines the chances for the general mob to spawn and how many.

Any idea how I can do that?

Posted

What are you exactly trying to do? Because special mobs are spawned only when certain conditions are met, for example you can find the spawn code for skeleton horses in ServerWorld#tickEnvironment...creepers become charged when struck by lighting etc..and you can find an example on how to make an entity ride another one in SpiderEntity#onInitialSpawn

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

Posted

Thanks I'll take a look at those.  That's exactly what I was looking for.

I am going to make a mod that adds some variety to the spawns in minecraft,

so zombies will more often spawn with some form of armor, or items in their hands, or riding horses for example.  I plan to add lots of variety of minor changes to spawns that are not necessarily harder, but just different.  I also plan to have those varieties sometimes drop different items on player kill, so for example a zombie with a pickaxe might drop an iron ore with a low chance.

I also intend to expand the concept of patrols that the pillagers use and create zombie or skeleton patrols.

Posted

I looked into the patrols.  I can't use the exact logic they use because they made the patrol grouping as part of the base class of the pillagers, but I can create my own spawner similar to the patrols pretty easily on world tick, and I found another mod that groups mobs together, and I can use a variation of the concept they use to manage the patrols, and I just have to insert my own AI similar to the patrol to handle the pathing.

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.