Minecraft – How to summon an invisible entity upon spawning

minecraft-commandsminecraft-java-edition

I'm trying to summon a slime that is invisible when you summon it, but whenever I run the command below, the slime appears for a half a second and then disappears.

/summon slime ~ ~1 ~ {NoGravity:1b,Size:0,NoAI:1,Silent:1,DeathLootTable:"empty",ActiveEffects:[{Id:14,Amplifier:100,Duration:999999,ShowParticles:0b}]}

There is no Invisible tag for slimes, so I was wondering if there was a way to make the slime completely invisible when you spawn it. I only need the slime to be summoned for about a second before being killed or despawned.

I am on Minecraft 1.14.4

Best Answer

This is a known bug: https://bugs.mojang.com/browse/MC-72774

One possible workaround is to summon them out of sight, then teleport them to their destination at least one tick later.