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

execute if score #random2 temp matches 1..2 run summon item ~ ~ ~ {Motion:[0.0,0.6,0.0],Tags:["lucky_block_item"],Item:{id:"minecraft:ender_pearl",count:1,components:{"minecraft:item_name":[{"color":"#FFA114","text":"E"},{"color":"#FF9B2C","text":"n"},{"color":"#FE9543","text":"d"},{"color":"#FE8E5B","text":"e"},{"color":"#FD8872","text":"r "},{"color":"#FD828A","text":"P"},{"color":"#FC7CA1","text":"e"},{"color":"#FC76B9","text":"a"},{"color":"#FB6FD0","text":"r"},{"color":"#FA63FF","text":"l"}],"minecraft:lore":[{"color":"yellow","italic":false,"text":"Lucky Block Item"}]}}}
execute if score #random2 temp matches 3 run summon item ~ ~ ~ {Motion:[0.0,0.6,0.0],Tags:["lucky_block_item"],Item:{id:"minecraft:ender_pearl",count:2,components:{"minecraft:item_name":[{"color":"#FFA114","text":"E"},{"color":"#FF9B2C","text":"n"},{"color":"#FE9543","text":"d"},{"color":"#FE8E5B","text":"e"},{"color":"#FD8872","text":"r "},{"color":"#FD828A","text":"P"},{"color":"#FC7CA1","text":"e"},{"color":"#FC76B9","text":"a"},{"color":"#FB6FD0","text":"r"},{"color":"#FA63FF","text":"l"}],"minecraft:lore":[{"color":"yellow","italic":false,"text":"Lucky Block Item"}]}}}