How to make a sheep-like shearable mob and allow them to eat a certain block to regenerate their stuff

Started by fanta88 on

Topic category: Help with modding (Java Edition)

Last seen on 17:12, 14. Sep 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a sheep-like shearable mob and allow them to eat a certain block to regenerate their stuff

I'm trying to make a certain type of mob that, when shears, drops "Krystalanite Nuggets" and "Krystalanite Shards". I've got the idea down, but can't seem to figure out how a mob can drop two items of different ammounts at the same time. Maybe a procedure or a loot table? And how do I make them eat a certain block to regenerate, and how do I make them shearable?

Last seen on 04:42, 9. Sep 2024
Joined Oct 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm quite a noob at this…
Fri, 08/16/2024 - 23:50

I'm quite a noob at this. But I'll answer what I came up with based on what I understood of what you need. I think everything is answered in one answer.
First, you go to the entity configuration and create a procedure in the right click trigger.
Then you put in the procedure something like this:

https://i.ibb.co/Th7Lb5s/sgseg.png

Last seen on 17:12, 14. Sep 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you, kind sir! Also,…
Sat, 08/17/2024 - 01:51

Thank you, kind sir! Also, yes, you put source entity in rather than event/target entity.