How to make mob that can be "milked"?

Started by b.ART.ek on Thu, 07/08/2021 - 21:02

Topic category: Help with modding (Java Edition)

Last seen on 20:55, 14. Sep 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make mob that can be "milked"?
Thu, 07/08/2021 - 21:02

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?

Last seen on 17:56, 17. Sep 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 

Last seen on 02:01, 27. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 02:01, 27. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 20:55, 14. Sep 2021
Joined May 2020
Points:

User statistics:

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

Thanks a lot to all of you!

Last seen on 20:55, 14. Sep 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 02:01, 27. Aug 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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