XP for farming in survival

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Tylerr

Member
Nov 16, 2019
2
0
0
23
Mining drops XP, killing mobs drops XP, smelting ores drops XP, fishing drops XP, but farming doesn't.

I think this is a bit outside my scope. Could somebody write a script that sometimes drops a few XP when a player mines ripe crops?
[doublepost=1574455117,1573944103][/doublepost]Well, this will be good enough I guess.

Code:
on mine of ripe wheat plant:
    chance of 50%
    drop 4 xp

on mine of ripe carrot plant:
    chance of 50%
    drop 4 xp

on mine of ripe potato plant:
    chance of 50%
    drop 4 xp

on mine of ripe beetroot plant:
    chance of 50%
    drop 4 xp