set {_nbt} to nbt compound from "{SpawnData:{id:""minecraft:zombie""},MaxNearbyEntities:30s,SpawnRange:4s,RequiredPlayerRange:16s,SpawnCount:4s,SpawnPotentials:[{Entity:{id:""minecraft:zombie""},Weight:1}],MinSpawnDelay:10,MaxSpawnDelay:50s}"
set nbt-block at player to spawner with nbt {_nbt}
może coś takiego?
https://skripthub.net/docs/?id=4053