Need some help with farming mod..

Started by KubusiastyMapper on Wed, 08/19/2020 - 11:28

Topic category: Help with modding (Java Edition)

Last seen on 15:48, 22. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need some help with farming mod..
Thu, 08/20/2020 - 07:52 (edited)

Hello

I need help because I don't know how to make one procedure.

Because in my mod there's new cow (the cow from my mod has the same model and texture but works differently).

I have made procedure that checks what you have in hand.

If you hold in hand right item cow gives milk. 

There's no delay. So player can milk any time he wants. I don't know how to make delay.

I want to do delay ex. 500 tick. So Player must wait 500 tick before he will can milk cow again.

Is this possible?

 

Sorry for my english. I'm from Poland

Thanks for any replies.

 

Edited by KubusiastyMapper on Thu, 08/20/2020 - 07:52
Yes, use tick update and…
Thu, 08/20/2020 - 13:31

Yes, use tick update and entity NBT to store counter value. Then use this counter as delay.

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Last seen on 15:48, 22. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks
Fri, 08/21/2020 - 10:11

Thanks