How does one use @e data on a custom named snowball

How does one use @e data on a custom named snowball - Man holding credit card and browsing smartphone on street

The below command does not work on a Snowball and I was wondering how to do it.

execute @e[name=snowy] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 0.1 5



Best Answer

In order for your command to work, you either have to first actually assign the name "snowy" to the snowballs, or simply work directly with the snowballs.

The former can be achieved by running the following command on the same clock as the your execute command:

entitydata @e[type=Snowball] {CustomName:"snowy"}

Note how this command simply affects all snowballs even though they are not named yet? We can cut out the middle man by simply using

execute @e[type=Snowball] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 0.1 5

The Minecraft wiki has a list of all valid target selector arguments, and the valid Entity IDs for the type selector are found in sidebars alongside the NBT data.




Pictures about "How does one use @e data on a custom named snowball"

How does one use @e data on a custom named snowball - Male taking photo of credit card on smartphone on street in daytime
How does one use @e data on a custom named snowball - Young man in disposable mask using smartphone in middle of shopping center
How does one use @e data on a custom named snowball - Person in White Long Sleeve Shirt Using Macbook Pro



How do you make custom snowballs in Minecraft?

Right-clicking with a snowball in your hand will fling it in the direction that you're pointing, just like an egg. Snowballs deal no damage, with one exception.

How do you make lightning snowballs in Minecraft with Java?

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]



Simply learn Snowball Lab || What is AWS Snowball | HOW TO TRANSFER BIG AMOUNT OF DATA ON AWS




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

Images: Anete Lusina, Anete Lusina, Gustavo Fring, Thirdman