package totemic_commons.pokefenn.ceremony;

import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.world.World;
import totemic_commons.pokefenn.api.ceremony.Ceremony;
import totemic_commons.pokefenn.api.music.MusicInstrument;
import totemic_commons.pokefenn.entity.boss.EntityBaykok;
import totemic_commons.pokefenn.util.EntityUtil;

public class CeremonyBaykok extends Ceremony
{
    public CeremonyBaykok(String name, int musicNeeded, int maxStartupTime, MusicInstrument... instruments)
    {
        super(name, musicNeeded, maxStartupTime, instruments);
    }

    @Override
    public void effect(World world, BlockPos pos, int time)
    {
        BlockPos spos = pos.offset(EnumFacing.getHorizontal(world.rand.nextInt(4)));
        EntityUtil.spawnEntity(world, spos.getX() + 0.5, spos.getY(), spos.getZ() + 0.5, new EntityBaykok(world));
    }

}

@@ -670,32 +670,180 @@
 int time)%0A    %7B%0A
+        if(world.isRemote %7C%7C time != getEffectTime() - 1)%0A            return;%0A%0A        world.playBroadcastSound(1013, pos, 0); //Wither spawn sound%0A
         BlockPos
@@ -1033,10 +1033,90 @@
 %0A    %7D%0A%0A
+    @Override%0A    public int getEffectTime()%0A    %7B%0A        return 3 * 20;%0A    %7D%0A
 %7D%0A

Add delay to Baykok spawn and play sound