Advertisement
Skylinerw

RE: "Weapon Fatigue" - Commands

Dec 27th, 2013
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Via: https://www.youtube.com/watch?v=LNbYRgpd7-E
  2.  
  3. Objective:
  4.  
  5. /scoreboard objectives add DEALT stat.damageDealt
  6.  
  7. EXAMPLE 1 (does not support multiplayer, but is extremely accurate):
  8.  
  9. First command block:
  10.  
  11. /setblock ~ ~1 ~ redstone_block 0 destroy
  12.  
  13. Second command block:
  14.  
  15. /effect @a[score_DEALT_min=1] 18 2 255
  16.  
  17. Third command block:
  18.  
  19. /scoreboard players set @a DEALT 0
  20.  
  21.  
  22. EXAMPLE 2 (supports multiplayer, but is not as accurate as the first example):
  23.  
  24. First command block:
  25.  
  26. /effect @a[score_DEALT_min=1] 18 2 255
  27.  
  28. Second command block:
  29.  
  30. /scoreboard players set @a DEALT 0
  31.  
  32. -----
  33.  
  34. So yes, they're just the same commands, just different clocks. The duration will be the time between attacks, which is restricted to time in seconds, with a minimum of 1 second and maximum of 1,000,000 seconds.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement