I am trying to create a vanilla serve that has random skulls around the map and when wearing a specific skull you get a specific potion effect.
any ideas how to do this in a multiplayer world?
This was my attempt, I just started using command blocks not to long ago so I basically just put commands together that if found just coping and pasting stuff
Trying to give speed to anyone wearing the helmet named "Champion" that has that skull id
The problem is that you can't have special tags in any command but /testfor and /scoreboard. By special tags, I mean anything that has to go in curly brackets {}. Here's how you should do it:
First, make a scoreboard objective
/scoreboard objectives add <scoreboardName> dummy
Next, have a clock repeating the following commands in order.
/scoreboard players set @a <scoreboardName> 0
/scoreboard players set @a <scoreboardName> 1 {Inventory:[{Slot:103b,id:"minecraft:skull",tag:{display:{Name:"Champion"},SkullOwner:{Id:"af9c456f-ced6-45a9-b90a-0d24ad7aced4",Properties{textures[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGM2MzE0YzM2YmVjY2JiZmIwNDdhM2Q1YTA3Nzk2OWM5OTdhNTZjNjk3ZjJkNWVhMjExMjljNjg4YjMyZTZiYSJ9fX0="}]}}}}]}
I am trying to create a vanilla serve that has random skulls around the map and when wearing a specific skull you get a specific potion effect.
any ideas how to do this in a multiplayer world?
This was my attempt, I just started using command blocks not to long ago so I basically just put commands together that if found just coping and pasting stuff
/execute @a ~ ~ ~ /effect @a {Inventory:[{Slot:103b,id:"minecraft:skull",tag:{display:{Name:"Champion"},SkullOwner:{Id:"af9c456f-ced6-45a9-b90a-0d24ad7aced4",Properties{textures[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGM2MzE0YzM2YmVjY2JiZmIwNDdhM2Q1YTA3Nzk2OWM5OTdhNTZjNjk3ZjJkNWVhMjExMjljNjg4YjMyZTZiYSJ9fX0="}]}}}}]} 1 1 0
Everything appears to be in place but I'm not even close to an expert with command blocks any ideas?
looks right to me but ill try it in my own game and see what's wrong
Is the command hooked up to a fill clock or (if using 1.9) a repeater block?
⠀
s̮̹̃rͭ͆̄͊̓̍ͪ͝e̮̹̜͈ͫ̓̀̋̂v̥̭̻̖̗͕̓ͫ̎ͦa̵͇ͥ͆ͣ͐w̞͎̩̻̮̏̆̈́̅͂t͕̝̼͒̂͗͂h̋̿
The problem is that you can't have special tags in any command but /testfor and /scoreboard. By special tags, I mean anything that has to go in curly brackets {}. Here's how you should do it:
First, make a scoreboard objective
Next, have a clock repeating the following commands in order.
If you want to add more, just add:
Then just repeat, just replace the twos with threes, than with fours, etc.
Haha Thanks so much, I have been trying to figure out a way to do this for a while.
Hey is actually said something about failing so find value separator in the "set scoreboard to 1" command but I reduced it to this size
/scoreboard players set @a tiger 1 {Inventory:[{Slot:103b,id:"minecraft:skull",tag:{display:{Name:"Champion"},SkullOwner:{Id:"af9c456f-ced6-45a9-b90a-0d24ad7aced4"}}}]}
and it works perfectly!