Does anybody know the procedure Cows use?

Started by De_pressed_JC on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Dec 2019
Points:
647

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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! 

Active 3 years ago
Joined Jan 2022
Points:
484

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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? 

Active 2 years ago
Joined Nov 2021
Points:
522

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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)

Active 3 years ago
Joined Jan 2022
Points:
484

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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! 

Active 2 years ago
Joined Nov 2021
Points:
522

User statistics:

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

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

Active 3 years ago
Joined Jan 2022
Points:
484

User statistics:

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

Nevermind it did work! Thanks everyone!