Jump to content

Custom milk from custom cow


Recommended Posts

I have a cow. He's just basic, doesn't even have a walking animation. So, I want to get a custom milk bucket from him, the filled bucket is named "GMMilk."


What I wish to learn: How to get that milk bucket instead of the normal one

So... breakdown.

1. Right click the custom cow with an empty vanilla bucket

2. Get a "GMMilk" bucket but NOT a "milk_bucket" bucket


Thanks in advance! Have a nice day :)

Developer of Chlod's Mod! Project Link: http://minecraft.curseforge.com/projects/chlods-mod

Link to comment
Share on other sites

Have you looked into EntityCow source? Without looking I am pretty sure code responsible for filling bucket with milk is in onInteract (or similar name) method. If it's not in entity, it might also be located in ItemBucket (again - something along interaction).

Override it, and do almost same thing but differently.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

This topic is now closed to further replies.


  • Create New...

Important Information

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