scoreboard players add @s[tag=nitGApple] nitResourceSpawn 1
execute if entity @s[scores={nitResourceSpawn=1..},tag=nitGApple] run summon minecraft:item ~ ~1 ~ {Item:{id:"minecraft:golden_apple",Count:1b},Age:-32768}
scoreboard players remove @s[scores={nitResourceSpawn=1..},tag=nitGApple] nitResourceSpawn 1