1

Command Block (Help me)

360Gamer 072 4/28/13 5:43 pm
305
4/28/2013 5:56 pm
Well, i need help with the command block as of course i'm a noob with it,
I'm seconds away from finishing my map but i need help with a certain thing,
i have seen in maps that the command blocks used names, like
[@] You have defeated me (Players name)
but im not sure how to do it D:
so if you know how to do
it, then please tell me
-360Gamer072
Posted by
360Gamer 072
Level 30 : Artisan Ninja
70

  Have something to say?

JoinSign in

5

tm1990
04/28/2013 5:56 pm
Level 37 : Artisan Dragon
You can use @a for all players @p for the closest player and @r for a random player. And you can add radius gamemode and stuff like that like this @a[r=20,m=0]. That will select all players in survival in a 20 blocks radius

What you can use after @a/@p or @r are:
R = radius
M= gamemode
Team = scoreboard teams
Mr = maximum radius or minimum radius (not sure which)
And some others i dont remeber
1
MusaTheLegend
04/28/2013 5:53 pm
Level 57 : Grandmaster Necromancer
@p = Nearest player. (You must be close to the command block in this case).
1
MusaTheLegend
04/28/2013 5:50 pm
Level 57 : Grandmaster Necromancer
I dont really know because for players it's only @p (Nearest player) @r (Random player) and @a (All players).

If the map is only for one player and you are referring to a boss battle
([@] You have defeated me (Players name)
As in the boss is saying that the (player) defeated him, if so use this in the command block:
Command block >
"/say You have defeated me @a"
(Note: That will only work, like I said, if there is only one player playing the map. If the boss is suppose to say that when you get close to the command block the announces it, then write this:
Command block >
"/say You have defeated me @p"
@p referring to the nearest player, in this case, the victor.

Hope I helped


- M
1
presmar
04/28/2013 5:47 pm
Level 7 : Apprentice Network
type this
say hi there @p
witch translates out to
hi there {playername}
1
360Gamer 072
04/28/2013 5:51 pm
Level 30 : Artisan Ninja
Wow thanks it worked
1

Welcome