NBT help about /summon villagers command

execute as @s at @s run summon minecraft:villager ~ ~1.6 ~

# Add new mob tag, and any subsequent NBT changes
execute as @s at @s run tag @e[type=minecraft:villager,distance=..2,tag=!gz-a4-oldmob] add gz-a4-newmob
execute as @e[tag=gz-a4-newmob] at @s run function gamerz_riot:extra/villager-set-name

# Add oldmob tag and remove newmob tag
tag @e[tag=gz-a4-newmob] add gz-a4-oldmob
tag @e[tag=gz-a4-newmob] remove gz-a4-newmob ```

this command spawning villagers that not picking up items and not breading
Continue to help post