execute @e[type=vatonage:christmastree] ~ ~ ~ function christmastree

scoreboard objectives add presenttimer dummy presenttimer
scoreboard players add @e[type=vatonage:present] presenttimer 1
scoreboard objectives add presentrandom dummy presentrandom
execute @e[type=vatonage:present,scores={presenttimer=39..}] ~ ~ ~ function loadeffect