tag @a remove KyuGive
data merge entity @s {PickupDelay:10}
#execute at @s run tag @p[gamemode=!spectator] add KyuGive
#execute in overworld run setblock 999984 127 999981 minecraft:redstone_block
#tag @s add Tree22

execute at @s run tag @p[gamemode=!spectator] add KyuGive
give @p[tag=KyuGive] minecraft:gold_nugget
execute if predicate suhc:25percent run execute at @s positioned ~ ~500 ~ run function zzzzdonotuse:halfsec/raredroptable2
kill @s[type=item]

tag @a remove KyuGive

