How can I replace a snowball with a custom creeper?

How can I replace a snowball with a custom creeper? - A Person Buying From a Grocery

I want to use the /execute command and replace a snowball with a creeper, using this command:

/summon Creeper {Fuse:1,ActiveEffects:[{Id:14,Amplifier:11,Duration:10000,ShowParticles:0b},{Id:7,Amplifier:"0",Duration:10000,ShowParticles:1b}],Attributes:[{Name:generic.maxHealth,Base:2}],Silent:0,Riding:{id:"FallingSand",Riding:{Fuse:1,id:"Creeper",ActiveEffects:[{Id:7,Amplifier:"0",Duration:10000,ShowParticles:0b},{Id:14,Amplifier:"0",Duration:10000,ShowParticles:0b}],Attributes:[{Name:generic.maxHealth,Base:10}],Riding:{id:"FallingSand",Riding:{Fuse:1,id:"Creeper",Attributes:[{Name:generic.maxHealth,Base:10}],ActiveEffects:[{Id:7,Amplifier:"0",Duration:100000,ShowParticles:0b},{Id:14,Amplifier:"0",Duration:10000,ShowParticles:0b}],Riding:{id:"FallingSand",Riding:{Attributes:[{Name:generic.maxHealth,Base:10}],id:"Creeper",Fuse:1,ActiveEffects:[{Id:7,Amplifier:"0",Duration:100000,ShowParticles:0b},{Id:14,Amplifier:"0",Duration:100000,ShowParticles:0b}],Riding:{id:"FallingSand",Riding:{ActiveEffects:[{Id:7,Amplifier:"0",Duration:10000,ShowParticles:0b},{Id:14,Amplifier:"0",Duration:10000,ShowParticles:0b}],id:"Creeper",Attributes:[{Name:generic.maxHealth,Base:10}],Fuse:1,Riding:{id:"FallingSand"}}}}}}}}}}

However, it's not working. It only spawns one creeper with no custom effects. What's wrong?



Best Answer

You are missing the coordinates for the /summon command:

/summon <entity> X Y Z {dataTags}

One very minor issue is the use of quotation marks around the value for Amplifier, which causes it to have a tag-type of String rather than the numerical tag-type it's looking for (specifically Byte, though with /summon it can be declared as any numerical type). The tag is essentially ignored, but since it's intended to be 0, it doesn't matter as that's the default.

Fixed command:

/summon Creeper ~ ~1 ~ {Fuse:1,ActiveEffects:[{Id:14,Amplifier:11,Duration:10000,ShowParticles:0b},{Id:7,Amplifier:"0",Duration:10000,ShowParticles:1b}],Attributes:[{Name:generic.maxHealth,Base:2}],Silent:0,Riding:{id:"FallingSand",Riding:{Fuse:1,id:"Creeper",ActiveEffects:[{Id:7,Amplifier:0,Duration:10000,ShowParticles:0b},{Id:14,Amplifier:0,Duration:10000,ShowParticles:0b}],Attributes:[{Name:generic.maxHealth,Base:10}],Riding:{id:"FallingSand",Riding:{Fuse:1,id:"Creeper",Attributes:[{Name:generic.maxHealth,Base:10}],ActiveEffects:[{Id:7,Amplifier:0,Duration:100000,ShowParticles:0b},{Id:14,Amplifier:0,Duration:10000,ShowParticles:0b}],Riding:{id:"FallingSand",Riding:{Attributes:[{Name:generic.maxHealth,Base:10}],id:"Creeper",Fuse:1,ActiveEffects:[{Id:7,Amplifier:0,Duration:100000,ShowParticles:0b},{Id:14,Amplifier:0,Duration:100000,ShowParticles:0b}],Riding:{id:"FallingSand",Riding:{ActiveEffects:[{Id:7,Amplifier:0,Duration:10000,ShowParticles:0b},{Id:14,Amplifier:0,Duration:10000,ShowParticles:0b}],id:"Creeper",Attributes:[{Name:generic.maxHealth,Base:10}],Fuse:1,Riding:{id:"FallingSand"}}}}}}}}}}



Pictures about "How can I replace a snowball with a custom creeper?"

How can I replace a snowball with a custom creeper? - Person Holding Can With Blue and White Knit Sweater
How can I replace a snowball with a custom creeper? - Close-Up Photograph of a Can
How can I replace a snowball with a custom creeper? - Yellow Haired Woman in Brown Hat Illustration



How do you make ultra snowballs in Minecraft?

Repeating, Unconditional, Needs Redstone: execute at @e[type=minecraft:armor_stand,tag=grenade] unless entity @e[type=minecraft:snowball,distance=.. 2] run summon tnt. Chain, Unconditional, Always Active: kill @e[type=minecraft:armor_stand,tag=grenade]



COMMAND CREATIONS Ep1 ULTRA DIGGING SNOWBALL




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Julia Avamotive, Anna Shvets, Tima Miroshnichenko, Alexander Sergienko