Does anybody know the procedure Cows use?

Started by De_pressed_JC on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does anybody know the procedure Cows use?

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! 

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I came here looking for this…
Mon, 01/03/2022 - 22:46

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? 

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Simple: Add a procedure to…
Mon, 01/03/2022 - 23:43

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)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't find the "if player…
Mon, 01/03/2022 - 23:48

I can't find the "if player main-hand" part. Everything says Entity. Can you change that? Thanks for the help! 

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
search main hand (doesn't…
Mon, 01/03/2022 - 23:50

search main hand (doesn't need to be "player" in the name though)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind it did work!…
Tue, 01/04/2022 - 21:48

Nevermind it did work! Thanks everyone!