# block:custom/golden_oak_leaves/generate
# called by: dimension:the_aether/worldgen/set_blocks

setblock ~ ~ ~ spawner{components:{"minecraft:item_model":"magical_addons:golden_oak_leaves","minecraft:item_name":{"translate":"item.magical_addons.golden_oak_leaves"},"minecraft:custom_data":{magical_addons:{properties:{persistent:0b},groups:["leaves","explodable"],base_block:"spruce_slab[type=double]",generated:1b,loot_id:3,break_speed:75.0,sound:"playsound block.grass.step block @a ~ ~ ~ 0.15",id:golden_oak_leaves}}},MaxNearbyEntities:0s,RequiredPlayerRange:0s,SpawnCount:0s,MaxSpawnDelay:800s,id:"minecraft:mob_spawner",SpawnRange:4s,Delay:0s,MinSpawnDelay:200s,SpawnPotentials:[]}
execute summon item_display run data merge entity @s {data:{magical_addons:{properties:{persistent:0b},groups:["leaves","explodable"],id:"golden_oak_leaves",break_cmd:"execute unless block ~ ~ ~ spawner{components:{\"minecraft:custom_data\":{magical_addons:{id:golden_oak_leaves}}}} run function magical_addons:block/custom/golden_oak_leaves/break"}},transformation:{scale:[-1f,1f,-1f]},Rotation:[0f,0f],item_display:"head",item:{id:"spawner",components:{"minecraft:item_model":"magical_addons:golden_oak_leaves"}},view_range:64,Tags:[maddons.block,maddons.golden_oak_leaves,maddons.block.leaves]}