The coordinates can be added as target selector arguments, i.e. inside the @e[...]
, using the x
, y
, and z
arguments, combined with r
to set a maximum radius. Note that Tilde notation is not allowed for this, you need the absolute coordinates.
Placing an enchanted item in an Item Frame has to be done all at once, since the entitydata is running on the Item Frame, not on the item that is in it. This is done by setting the Item
tag of the item frame to a valid compound NBT structure for an item, such as
{id:"minecraft:stone_sword",tag:{ench:[{id:16,lvl:1}]}}
for a Sharpness I Stone Sword.
Overall, the command you want to be running might look like:
entitydata @e[type=ItemFrame,x=1,y=2,z=3,r=2] {Item:{id:"minecraft:stone_sword",tag:{ench:[{id:16,lvl:1}]}}}
Be careful regarding the closing parentheses.
Best Answer
First, you should add the teams that you want as normal:
For the next part you will need something to edit the NBT data of the world, such as NBTExplorer.
Navigate to your world, and inside that, open
data
>scoreboard.dat
>data
>Teams
.Now you should see some
7 entries
, these are your teams that you created. You can open them up and check theName
s inside to see which is which.You should see that one of the tags each team has is a
Prefix
and aSuffix
. From here you simply need to double click on the Prefix/Suffix you want to change, and enter the string that you it want to show up as. You can make it anything, and use Formatting Codes to add colour or effects.(Note I did 2 s/p for Team_1 and 1 s/p for Team_2)
Once you've changed what you want and saved, these should show up as the prefix and suffix of the teams in game.