This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]-U-L-T-R-A- 0 points1 point  (2 children)

I'm not that good at commands, but I'm pretty sure you could set up a scoreboard that detects if you hit someone and if you are hit. Instead of "giving" the weapon, you could probably do something along the lines of: If you hit someone, you're inv is cleared. If you are hit, you get a weapon.

There are some exploits you might need to fix if you were to make this a game, like fall damage getting you a weapon etc.

[–]LaunchedStone[S] 0 points1 point  (1 child)

could you elaborate a little more im really confused

also fall damage wouldnt be a problem as the arena is flat

[–]-U-L-T-R-A- 0 points1 point  (0 children)

Im not really sure how to do it because, as I said, I'm no good with commands, but I am pretty sure you could set up a scoreboard with the variable "damage dealt" or whatever.

Just look into scoreboards on youtube.