Started by
De_pressed_JC
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a mod, and I need to know how to replicate the thing cows do.
I need to right click my mob with a bucket so it fills it with water. just like cows do with milk
can anybody help me? thank you beforehand!
I came here looking for this too. I created a custom cow and milk bucket but I can't figure out the correct procedure. Similarly, what's the procedure for shearing sheep?
Simple: Add a procedure to when mob is right clicked
if player in main-hand is holding empty bucket
then replace main-hand item with (milk bucket)
I can't find the "if player main-hand" part. Everything says Entity. Can you change that? Thanks for the help!
search main hand (doesn't need to be "player" in the name though)
I tried this:
But it didn't work. I found this post which is what I followed: https://mcreator.net/forum/75982/how-make-milkable-cow-entity
I don't know how to fix it. Any help is appreciated!! Thanks!
Nevermind it did work! Thanks everyone!