execute store result score #random2 temp run random value 1..6

execute if score #random2 temp matches 1 run summon item ~ ~ ~ {Motion:[0.0,0.6,0.0],Tags:["lucky_block_item","new"],Item:{id:"minecraft:pumpkin_pie",count:1,components:{"minecraft:max_stack_size":1,"minecraft:item_name":[{"color":"#FFA114","text":"D"},{"color":"#FF9C28","text":"e"},{"color":"#FE973B","text":"l"},{"color":"#FE924F","text":"i"},{"color":"#FD8C62","text":"c"},{"color":"#FD8776","text":"i"},{"color":"#FD828A","text":"o"},{"color":"#FC7D9D","text":"u"},{"color":"#FC78B1","text":"s "},{"color":"#FB73C4","text":"P"},{"color":"#FB6DD8","text":"i"},{"color":"#FA63FF","text":"e"}],"minecraft:lore":[{"color":"yellow","italic":false,"text":"Lucky Block Item"}],"minecraft:food":{nutrition:5,saturation:4,can_always_eat:true},"minecraft:consumable":{on_consume_effects:[{type:"minecraft:apply_effects",effects:[{id:"minecraft:health_boost",amplifier:4,duration:4800,show_particles:0b,show_icon:1b}]}]}}}}

execute if score #random2 temp matches 2..6 run summon item ~ ~ ~ {Motion:[0.0,0.6,0.0],Tags:["lucky_block_item","new"],Item:{id:"minecraft:pumpkin_pie",count:1,components:{"minecraft:max_stack_size":1,"minecraft:item_name":[{"color":"#FFA114","text":"D"},{"color":"#FF9C28","text":"e"},{"color":"#FE973B","text":"l"},{"color":"#FE924F","text":"i"},{"color":"#FD8C62","text":"c"},{"color":"#FD8776","text":"i"},{"color":"#FD828A","text":"o"},{"color":"#FC7D9D","text":"u"},{"color":"#FC78B1","text":"s "},{"color":"#FB73C4","text":"P"},{"color":"#FB6DD8","text":"i"},{"color":"#FA63FF","text":"e"}],"minecraft:lore":[{"color":"yellow","italic":false,"text":"Lucky Block Item"}],"minecraft:food":{nutrition:5,saturation:4,can_always_eat:true},"minecraft:consumable":{on_consume_effects:[{type:"minecraft:apply_effects",effects:[{id:"minecraft:wither",amplifier:0,duration:600,show_particles:1b,show_icon:1b},{id:"minecraft:darkness",amplifier:0,duration:1200,show_particles:1b,show_icon:1b}],probability:1}]}}}}