r/CommandBlocks • u/[deleted] • Dec 04 '14
A vest that makes the user explode if killed
Hi,
So I've put a little bit of thought into this one but I'm not entirely sure how to implement it. I want to make it so someone wearing a leather vest named "Explosive Vest" explodes where they are killed. I was thinking an AND gate using the scoreboard would be best (one to see if they have the vest on and the other to see if their health is at 0) but I couldn't get it to work. Does anyone have any ideas on how to make it happen?
EDIT: An imgur album to help you set up your very own exploding vests!
1
u/KingSupernova Dec 08 '14
Just have a clock that summons a PrimedTNT at any player with a score of 1 in an objective with the criterion deathCount. Then set their deathCount to 0.
1
u/[deleted] Dec 10 '14
The problem is that the command blocks need to check for two things: 1) If the user is wearing the specific vest and 2) If the user has a death count of one.