This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Command /execute @a {Inventory:[{tag:{display:{Name:"Spawn_Iron_Golem"}}}]} ~ ~ ~ /scoreboard players set @p IrnGolemhave 1
I know you can do some stuff with the "!" i just dont know how to do said stuff
Ok, first thing is that the scoreboard command accepts nbt data, so you don't need the execute:
/scoreboard players set @a IrnGolemhave 1 {Inventory:[{tag:{display:{Name:"Spawn_Iron_Golem"}}}]}
There is no way to 'invert' the command. Instead, you need to have the selector on the commands blocks using this condition inverted.
For example, if you want to execute a command at a player that does not meet the condition, the use
/execute @a[score_IrnGolemhave=0]
This means the command will execute at anyone with a score of 0 or less.
Check out my command block creations:
Mechanization: A function script tech mod
Nexus Invasion: A custom PVE 'defend the nexus' gamemode
Elder Botany: Growable ores
oh ok but i want to set the score of a player who does not have said item to zero so yeah.... any ideas
Command
/execute @a {Inventory:[{tag:{display:{Name:"Spawn_Iron_Golem"}}}]} ~ ~ ~ /scoreboard players set @p IrnGolemhave 1
I know you can do some stuff with the "!" i just dont know how to do said stuff
Ok, first thing is that the scoreboard command accepts nbt data, so you don't need the execute:
There is no way to 'invert' the command. Instead, you need to have the selector on the commands blocks using this condition inverted.
For example, if you want to execute a command at a player that does not meet the condition, the use
This means the command will execute at anyone with a score of 0 or less.
Check out my command block creations:
Mechanization: A function script tech mod
Nexus Invasion: A custom PVE 'defend the nexus' gamemode
Elder Botany: Growable ores
oh ok but i want to set the score of a player who does not have said item to zero so yeah.... any ideas