
# -> Add to time
scoreboard players add @s OverlyRealistic.World.CropAdditionTimeCurrent 1

# -> If current time != max time then return
execute unless score @s OverlyRealistic.World.CropAdditionTimeCurrent >= @s OverlyRealistic.World.CropAdditionTimeMax run \
    return fail

# -> Increase crop growth (1x1)
execute unless entity @s[tag=OverlyRealistic.Block.CropAddition_AffectsMultipleBlocks] \
    at @s run \
        function overly_realistic:general/custom_blocks/crop_addition_markers/increase_growth_1x1

# -> Increase crop growth (cubed)
execute if entity @s[tag=OverlyRealistic.Block.CropAddition_IsCubed] \
    at @s run \
        function overly_realistic:general/custom_blocks/crop_addition_markers/affects_multiple_blocks/addition_is_cubed

# -> Remove marker
kill @s
