#Right Click Harvest Help

13 messages · Page 1 of 1 (latest)

unkempt harbor
#

Hey! I'm trying to add in a system where you can simply right click to harvest any crop block (similar to sweet berries). Just wondering if anyone is able to point me in the right direction on how to go about this, would also have to work on a server. Thanks 🙂

ashen wave
unkempt harbor
#

How would I go about implementing that?

ashen wave
ashen wave
unkempt harbor
#

Ah, yeah. I understand, so I'm registering an event that will listen for the interface and I can shove the logic in that.

Where would you recommend I register the event? Should I create a new class for it?

ashen wave
ashen wave
ashen wave
unkempt harbor
#

Gotcha

#

So I've made a class called "HarvestEvent" and have this setup

#

I guess I'd have to have it destroy the crop block and then automatically plant it back, how would I go about doing that?

ashen wave