Plants are able to be harvested indefinitely with OnCropGatherNot An Issue
basically when i use OnCropGather it all works fine and everything but when people harvest a plant that has been planted not spawned it just wont go away you can infinitely harvest it till you make clones of it, This happens with pumpkins, corn & cloth and i have no idea how to fix that
The OnCropGather hook does nothing without plugins, so you'd need to be a little more specific as to what you are doing with it.
In response to Wulf ():
The OnCropGather hook does nothing without plugins, so you'd need to be a little more specific as to...
I am making a 2x plugin http://prntscr.com/musdua
By returning, you are canceling all further code in the hook location from running; so there's your issue.
In response to Wulf ():
By returning, you are canceling all further code in the hook location from running; so there's your...
I know but how can i manually remove the plant?
In response to 8qbit ():
I know but how can i manually remove the plant?
I'd suggest just modifying the item, not giving it yourself. Otherwise, you can take a look at Rust's source code by using a tool such as JustDecompile.
In response to Wulf ():
I'd suggest just modifying the item, not giving it yourself. Otherwise, you can take a look at Rust'...
So just item.amount = item.amount * 2; should be okay?
Locked automatically