1

-=Command Help=-

Frost770 2/13/15 10:01 pm
317
2/24/2015 10:33 am
I'm trying to make a system so that when a player wears a leather helmet (Named: AirHelm ) that it will give the player water breathing potion effect.

Also, how do I spawn a leather helmet that's unbreakable?

Thanks for the help in advance,
Frost77011
Posted by
Frost770
Level 1 : New Miner
2

  Have something to say?

JoinSign in

5

TheArchitect_95
02/24/2015 10:33 am
Level 32 : Artisan Architect
If you attach the effect command to a fill clock and only give the player water breathing for one second, then as soon as they remove it, the command will fail and the effect will stop.

And have a command which sets the helmet score to zero on a slower clock, such as a comparator clock, this will only have an effect when the command on the much faster fill clock fails.
1
Skitto493
02/14/2015 12:45 am
Level 55 : Grandmaster Dragon
have a dummy scoreboard objective.

Now have a command block on a clock. The command:

/scoreboard players set @a OBJECTIVE 1 {Inventory:[{Slot:103b,tag:{display:{Name:"AirHelm"}}}]}

For the unbreakable helmet, simply add on the "Unbreakable:1" data tag.

Now all you have to do is effect players with the scoreboard value with water breathing.

/effect @a[score_OBJECTIVE_min=1] water_breathing <DURATION> <AMPLIFIER>
1
Frost770
02/14/2015 12:03 pm
Level 1 : New Miner
How do i set it so that when they take the helmet off the objective gets set to 0?
1
SirBlobman
02/13/2015 11:19 pm
Level 24 : Expert Modder
I can make a leather helmet unbreakable heres the command:
/give PlayerNameHere leather_helmet 1 0 {Unbreakable:1,display:{Name:Air Helm,Lore:[Lets you breather underwater...]}}

You can set up something with scoreboard. I'm not excellent in the redstone field. Might even be /testfor stuff
1
012Dragon012
02/13/2015 10:14 pm
Level 2 : Apprentice Explorer
I am not the best person for this sort of thing but you could use and if statement to ru this command if you make a plugin or mod for it I don't think it would be to difficult
1

Welcome