execute if data entity @s Item if predicate survivalplus:can_see_sky if predicate survivalplus:100thchance run function survivalplus:tools/farming/plant_start
execute unless data entity @s Item if block ~ ~ ~ #minecraft:crops if predicate survivalplus:can_see_sky if predicate survivalplus:raining if predicate survivalplus:100thchance run function survivalplus:tools/farming/grow
execute unless data entity @s Item unless block ~ ~ ~ #minecraft:crops run kill @s