Hello everyone,
I'm attempting to make my first skript but I've come across a problem that I need a bit of help on because I can't seem to fix it.
My plugin: I'm attempting to make a plugin where all crops could be right clicked to harvest and they will automatically replant themselves, I'm nearly finished with it and it is actually fully working in principle. Basically, its doing what it needs to, however, because the block isn't directly broken by the player, its not giving the player mcMMO skill or Jobs Reborn money. I've attempted to fix this by using Skillett's "Naturally break block" option as well as the normal "Break block" methord but its had no effect either way.
Here's the skript (Just the part on wheat so I don't post a sort of repeating of the same thing over and over.:
First part I also need help on because planting also gives Mcmmo exp.
Now, I know many of you will ask: Why not change the "on right click on ripe wheat" to "On break on ripe wheat", I want to prevent right clicking if I can because I feel like it defeats the point. The point of right clicking to harvest is because you can do it so much faster. If it can't be done without manually breaking, I guess I'll do it, but I feel like it can be and I just don't know how.
Thanks for any help or tips that can be provided.
[doublepost=1509980927,1509812143][/doublepost]Bump
Sorry if bumping isn't allowed on this forum, I looked but couldn't find rules section anywhere.
Also, I'm aware that I could have it run a command to give exp to the player everytime, but this would happen so frequently I'm afraid it would lag the server or spam the console. Also, it would make configuring mcmmo/jobs a bit more difficult cause any exp changes/money changes I make, I'd also have to change in the skript as well.
I'm attempting to make my first skript but I've come across a problem that I need a bit of help on because I can't seem to fix it.
My plugin: I'm attempting to make a plugin where all crops could be right clicked to harvest and they will automatically replant themselves, I'm nearly finished with it and it is actually fully working in principle. Basically, its doing what it needs to, however, because the block isn't directly broken by the player, its not giving the player mcMMO skill or Jobs Reborn money. I've attempted to fix this by using Skillett's "Naturally break block" option as well as the normal "Break block" methord but its had no effect either way.
Here's the skript (Just the part on wheat so I don't post a sort of repeating of the same thing over and over.:
code_language.skript:
on rightclick on soil:
block above is air
player has seeds
set block above to crops
remove seeds from player
on rightclick on ripe wheat:
naturally break block
set block to crops
Now, I know many of you will ask: Why not change the "on right click on ripe wheat" to "On break on ripe wheat", I want to prevent right clicking if I can because I feel like it defeats the point. The point of right clicking to harvest is because you can do it so much faster. If it can't be done without manually breaking, I guess I'll do it, but I feel like it can be and I just don't know how.
Thanks for any help or tips that can be provided.
[doublepost=1509980927,1509812143][/doublepost]Bump
Sorry if bumping isn't allowed on this forum, I looked but couldn't find rules section anywhere.
Also, I'm aware that I could have it run a command to give exp to the player everytime, but this would happen so frequently I'm afraid it would lag the server or spam the console. Also, it would make configuring mcmmo/jobs a bit more difficult cause any exp changes/money changes I make, I'd also have to change in the skript as well.