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

execute align xyz positioned ~.5 ~.5 ~.5 unless predicate magical_addons:block/visible run return run setblock ~ ~ ~ soul_soil

## Light
fill ~1 ~ ~ ~-1 ~ ~ light[level=2] replace #magical_addons:light_replaceable
fill ~ ~1 ~ ~ ~-1 ~ light[level=2] replace #magical_addons:light_replaceable
fill ~ ~ ~1 ~ ~ ~-1 light[level=2] replace #magical_addons:light_replaceable

## Up
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~-1 ~ #magical_addons:non_collidable run setblock ~ ~ ~ spawner{components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:item_name":{"translate":"item.magical_addons.medium_sparkstone_bud"},"minecraft:tooltip_display":{"hidden_components":["minecraft:block_entity_data"]},"minecraft:custom_data":{magical_addons:{properties:{face:"UP"},loot_id:7,generated:1b,break_speed:8.0,sound:"playsound block.amethyst_block.step block @a ~ ~ ~ 0.15 1.1",id:medium_sparkstone_bud}}},MaxNearbyEntities:0s,RequiredPlayerRange:0s,SpawnCount:0s,MaxSpawnDelay:800s,id:"minecraft:mob_spawner",SpawnRange:4s,Delay:0s,MinSpawnDelay:200s,SpawnPotentials:[]}
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~-1 ~ #magical_addons:non_collidable run return run summon item_display ~ ~ ~ {data:{magical_addons:{id:"medium_sparkstone_bud",face:"up",break_cmd:"execute if predicate magical_addons:block/medium_sparkstone_bud/broken_face_up run function magical_addons:block/custom/medium_sparkstone_bud/break"}},Rotation:[0f,0f],item_display:"head",item:{id:"spawner",components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:custom_model_data":{strings:["block"]}}},view_range:64,Tags:[maddons.block,maddons.medium_sparkstone_bud,maddons.block.face_up]}

## Down
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~1 ~ #magical_addons:non_collidable run setblock ~ ~ ~ spawner{components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:item_name":{"translate":"item.magical_addons.medium_sparkstone_bud"},"minecraft:tooltip_display":{"hidden_components":["minecraft:block_entity_data"]},"minecraft:custom_data":{magical_addons:{properties:{face:"DOWN"},loot_id:7,generated:1b,break_speed:8.0,sound:"playsound block.amethyst_block.step block @a ~ ~ ~ 0.15 1.1",id:medium_sparkstone_bud}}},MaxNearbyEntities:0s,RequiredPlayerRange:0s,SpawnCount:0s,MaxSpawnDelay:800s,id:"minecraft:mob_spawner",SpawnRange:4s,Delay:0s,MinSpawnDelay:200s,SpawnPotentials:[]}
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~1 ~ #magical_addons:non_collidable summon item_display run return run data merge entity @s {data:{magical_addons:{id:"medium_sparkstone_bud",face:"down",break_cmd:"execute if predicate magical_addons:block/medium_sparkstone_bud/broken_face_down run function magical_addons:block/custom/medium_sparkstone_bud/break"}},Rotation:[0f,0f],transformation:{left_rotation:[0f,0f,1f,0f]},item_display:"head",item:{id:"spawner",components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:custom_model_data":{strings:["block"]}}},view_range:64,Tags:[maddons.block,maddons.medium_sparkstone_bud,maddons.block.face_down]}

## North
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~ ~1 #magical_addons:non_collidable run setblock ~ ~ ~ spawner{components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:item_name":{"translate":"item.magical_addons.medium_sparkstone_bud"},"minecraft:tooltip_display":{"hidden_components":["minecraft:block_entity_data"]},"minecraft:custom_data":{magical_addons:{properties:{face:"NORTH"},loot_id:7,generated:1b,break_speed:8.0,sound:"playsound block.amethyst_block.step block @a ~ ~ ~ 0.15 1.1",id:medium_sparkstone_bud}}},MaxNearbyEntities:0s,RequiredPlayerRange:0s,SpawnCount:0s,MaxSpawnDelay:800s,id:"minecraft:mob_spawner",SpawnRange:4s,Delay:0s,MinSpawnDelay:200s,SpawnPotentials:[]}
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~ ~1 #magical_addons:non_collidable run return run summon item_display ~ ~ ~ {data:{magical_addons:{id:"medium_sparkstone_bud",face:"north",break_cmd:"execute if predicate magical_addons:block/medium_sparkstone_bud/broken_face_north run function magical_addons:block/custom/medium_sparkstone_bud/break"}},Rotation:[180f,90f],item_display:"head",item:{id:"spawner",components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:custom_model_data":{strings:["block"]}}},view_range:64,Tags:[maddons.block,maddons.medium_sparkstone_bud,maddons.block.face_north]}

## South
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~ ~-1 #magical_addons:non_collidable run setblock ~ ~ ~ spawner{components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:item_name":{"translate":"item.magical_addons.medium_sparkstone_bud"},"minecraft:tooltip_display":{"hidden_components":["minecraft:block_entity_data"]},"minecraft:custom_data":{magical_addons:{properties:{face:"SOUTH"},loot_id:7,generated:1b,break_speed:8.0,sound:"playsound block.amethyst_block.step block @a ~ ~ ~ 0.15 1.1",id:medium_sparkstone_bud}}},MaxNearbyEntities:0s,RequiredPlayerRange:0s,SpawnCount:0s,MaxSpawnDelay:800s,id:"minecraft:mob_spawner",SpawnRange:4s,Delay:0s,MinSpawnDelay:200s,SpawnPotentials:[]}
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~ ~ ~-1 #magical_addons:non_collidable run return run summon item_display ~ ~ ~ {data:{magical_addons:{id:"medium_sparkstone_bud",face:"south",break_cmd:"execute if predicate magical_addons:block/medium_sparkstone_bud/broken_face_south run function magical_addons:block/custom/medium_sparkstone_bud/break"}},Rotation:[0f,90f],item_display:"head",item:{id:"spawner",components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:custom_model_data":{strings:["block"]}}},view_range:64,Tags:[maddons.block,maddons.medium_sparkstone_bud,maddons.block.face_south]}

## West
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~1 ~ ~ #magical_addons:non_collidable run setblock ~ ~ ~ spawner{components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:item_name":{"translate":"item.magical_addons.medium_sparkstone_bud"},"minecraft:tooltip_display":{"hidden_components":["minecraft:block_entity_data"]},"minecraft:custom_data":{magical_addons:{properties:{face:"WEST"},loot_id:7,generated:1b,break_speed:8.0,sound:"playsound block.amethyst_block.step block @a ~ ~ ~ 0.15 1.1",id:medium_sparkstone_bud}}},MaxNearbyEntities:0s,RequiredPlayerRange:0s,SpawnCount:0s,MaxSpawnDelay:800s,id:"minecraft:mob_spawner",SpawnRange:4s,Delay:0s,MinSpawnDelay:200s,SpawnPotentials:[]}
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~1 ~ ~ #magical_addons:non_collidable run return run summon item_display ~ ~ ~ {data:{magical_addons:{id:"medium_sparkstone_bud",face:"west",break_cmd:"execute if predicate magical_addons:block/medium_sparkstone_bud/broken_face_west run function magical_addons:block/custom/medium_sparkstone_bud/break"}},Rotation:[90f,90f],item_display:"head",item:{id:"spawner",components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:custom_model_data":{strings:["block"]}}},view_range:64,Tags:[maddons.block,maddons.medium_sparkstone_bud,maddons.block.face_west]}

## East
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~-1 ~ ~ #magical_addons:non_collidable run setblock ~ ~ ~ spawner{components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:item_name":{"translate":"item.magical_addons.medium_sparkstone_bud"},"minecraft:tooltip_display":{"hidden_components":["minecraft:block_entity_data"]},"minecraft:custom_data":{magical_addons:{properties:{face:"EAST"},loot_id:7,generated:1b,break_speed:8.0,sound:"playsound block.amethyst_block.step block @a ~ ~ ~ 0.15 1.1",id:medium_sparkstone_bud}}},MaxNearbyEntities:0s,RequiredPlayerRange:0s,SpawnCount:0s,MaxSpawnDelay:800s,id:"minecraft:mob_spawner",SpawnRange:4s,Delay:0s,MinSpawnDelay:200s,SpawnPotentials:[]}
execute align xyz positioned ~.5 ~.5 ~.5 unless block ~-1 ~ ~ #magical_addons:non_collidable run return run summon item_display ~ ~ ~ {data:{magical_addons:{id:"medium_sparkstone_bud",face:"east",break_cmd:"execute if predicate magical_addons:block/medium_sparkstone_bud/broken_face_east run function magical_addons:block/custom/medium_sparkstone_bud/break"}},Rotation:[270f,90f],item_display:"head",item:{id:"spawner",components:{"minecraft:item_model":"magical_addons:medium_sparkstone_bud","minecraft:custom_model_data":{strings:["block"]}}},view_range:64,Tags:[maddons.block,maddons.medium_sparkstone_bud,maddons.block.face_east]}