Jump to content

Hook for changing mob spawning conditions


marcotesoalli

Recommended Posts

Hello,

 

I added a block to minecraft which adds its position to an array in the World.java class.

In the SpawnerAnimal.java (spawning) class and EntityLiving.java (despawning) I changed the conditions for mob spawning to not just look for a player nearby, but also for the blocks.

 

The problem is I need to modify named 3 base classes for my mod.

 

Would it be possible to implement a hook for that? .

I'm thinking of uses to make automatic mob farms using buildcraft, rp2 (...) without having to stay near the farm.

 

I'm sorry if the idea is rubbish, but I am completely new to Minecraft modding.

 

greets marco

 

 

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



×
×
  • Create New...

Important Information

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