
# -> Set farmland
setblock ~ ~ ~ farmland[moisture=7]

# -> If water is dirty or its sea water then return
execute if score #or.water_bucket_type OverlyRealistic.General.ArbitraryData matches 1 run \
    return fail
execute if score #or.water_bucket_type OverlyRealistic.General.ArbitraryData matches 3 run \
    return fail

# -> Create crop addition marker
execute align xyz \
    unless entity @n[type=marker,tag=OverlyRealistic.Block.CropAdditionMarker,dx=0,dy=1,dz=0] \
    positioned ~0.5 ~1.5 ~0.5 \
    summon marker run \
        function overly_realistic:players/items/water_bucket/create_water_crop_addition_marker
