Skip to main content
Bumped by Community user
Bumped by Community user

imI am trying to execute a test command where every single creeper with a walkspeed of 0 spawned in, runs a command to summon a zombie at directly at the creeper with the nbt iNBT data I specified with the nbt.

commands iCommands I tried:

  • /execute as @e[type=creeper] at @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie/execute as @e[type=creeper] at @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

  • /execute at @e[type=creeper,nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie/execute at @e[type=creeper,nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

  • /execute at @e[type=creeper] if entity @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie/execute at @e[type=creeper] if entity @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

and that was all i could think of to try and make itThose commands did not work, how do I do this?

im trying to execute a test command where every single creeper with a walkspeed of 0 spawned in, runs a command summon zombie at directly at the creeper with the nbt i specified with the nbt

commands i tried

  • /execute as @e[type=creeper] at @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

  • /execute at @e[type=creeper,nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

  • /execute at @e[type=creeper] if entity @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

and that was all i could think of to try and make it work

I am trying to execute a test command where every single creeper with a walkspeed of 0 spawned in runs a command to summon a zombie directly at the creeper with the NBT data I specified.

Commands I tried:

  • /execute as @e[type=creeper] at @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

  • /execute at @e[type=creeper,nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

  • /execute at @e[type=creeper] if entity @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

Those commands did not work, how do I do this?

Source Link

how do i execute a command at an entity with a certain nbt data

im trying to execute a test command where every single creeper with a walkspeed of 0 spawned in, runs a command summon zombie at directly at the creeper with the nbt i specified with the nbt

commands i tried

  • /execute as @e[type=creeper] at @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

  • /execute at @e[type=creeper,nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

  • /execute at @e[type=creeper] if entity @s[nbt={Attributes:generic.movementSpeed,Base:0f}] run summon zombie

and that was all i could think of to try and make it work