How to make targets in minecraft
There are other answers below:
The @s target selector is used to target the entity that is executing the command. This is often referred to as “yourself” in the Minecraft help. For example, you can use the @s selector with the /give command to give the player who is running the command 64 tnt:
In this tutorial i show you how to make a Target store! this is part 1 where we make the actual target building and some of the outside!Part 1 –
Minecraft Tutorial: How To Make A Target Store – YouTube. Minecraft Tutorial: How To Make A Target Store. Watch later. Share. Copy link. Info. Shopping. Tap to unmute. If playback doesn’t begin …
Arrows and tridents instead cause the target to emit power for 10 redstone ticks (1 second), similar to stone buttons. A target can be hit with any of the projectiles mentioned above. The strength of the signal depends on how close the projectile is …
Targets a random player. Bedrock Edition can use @r to target non-player entities via the type selector argument; in Java Edition, to select a random entity, use @e [sort=random] instead. In Bedrock Edition, @r can only target entities who are alive.
Mob target command. A command to force a certain mob to only target another certain mob, or a group of mobs. For example: /mobtarget Minecraft:skeleton [Minecraft:villager] /mobtarget Minecraft:enderman [Minecraft:zombie] [Minecraft:pig] [Minecraft:chicken] (The mob that is to be targeted is in brackets.)
Perform the commands you’d like, targeting arrows with a SpecialArrow score of exactly 1. /execute @e [type=Arrow,score_SpecialArrow_min=1,score_SpecialArrow=1] ~ ~ ~ summon ThrownPotion ~ ~ ~ {Potion: {id:potion,Damage:8197}} Afterwards, the score is set to 2 if that particular arrow is now in the ground.
Player target = getServer().getPlayer(args[0]); this has a yellow line under .getPlayer and also has a big line in it