How to make mob that can be "milked"?

Started by b.ART.ek on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mob that can be "milked"?

So I've been trying to make a mushroom mob that could be "milked" for mushroom stew, similar to mooshroom. However, no matter what I do, nothing happens when I'm right-clicking on the mob. I don't know what to do, could someone send me a screenshoot of how the procedure should be made?

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/a/KChDZzx…
Thu, 07/08/2021 - 22:54

https://imgur.com/a/KChDZzx

though this will work more like a glass bottle instead of a bucket, and works better for stacked fillable items, it still works just as well 

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
New Procedure   Global…
Fri, 07/09/2021 - 00:22

New Procedure

 

Global trigger - Entity on right click (or similar, i don't have MCreator up rn)

If target entity is your entity

  • If Source Entity provided item is empty bucket
  •  - Remove 1 Empty Bucket from inventory
  •  - Give 1 Mushroom Stew to Entity
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My solution works in newer…
Fri, 07/09/2021 - 00:23

My solution works in newer versions of MCreator where they distinguish between target and source for entities when multiple entities are involved

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks a lot to all of you!
Fri, 07/09/2021 - 10:20

Thanks a lot to all of you!

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Another problem appeared…
Fri, 07/09/2021 - 20:33

Another problem appeared... When I click the mob while holding multiple bowls, two bowls get filled at the same time... weird.

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmm might wanna add a Wait…
Fri, 07/09/2021 - 23:45

Hmm might wanna add a Wait 20 ticks block and fill it with do nothing code so it can't make that mistake when spammed

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Would somebody please tell…
Sun, 05/15/2022 - 05:53

Would somebody please tell me how I can tell the program which mob i want to milk?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nvm I have found the type…
Sun, 05/15/2022 - 10:27

Nvm I have found the type bracket