so i made a class for creating summoning structures like iron golem and snow golem.
To create a new summoning structures you just have to create a new instance that takes three parameters:
headBlockTypeId: The type ID of the head block
bodyBlockTypeId: The type ID of the body block
spawnEntityTypeId: The type ID of the entity to spawn
Example: const goldGolem = new IronGolemStructureSpawner('minecraft:carved_pumpkin', 'minecraft:gold_block', 'minecraft:iron_golem')
||Credits are not needed but appreciated. You can credit me by leaving my username thin_35186 ||