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

Where the initial WorldEntitySpawner is initialized


Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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.

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.


  • Create New...

Important Information

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