Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Via: https://www.youtube.com/watch?v=LNbYRgpd7-E
- Objective:
- /scoreboard objectives add DEALT stat.damageDealt
- EXAMPLE 1 (does not support multiplayer, but is extremely accurate):
- First command block:
- /setblock ~ ~1 ~ redstone_block 0 destroy
- Second command block:
- /effect @a[score_DEALT_min=1] 18 2 255
- Third command block:
- /scoreboard players set @a DEALT 0
- EXAMPLE 2 (supports multiplayer, but is not as accurate as the first example):
- First command block:
- /effect @a[score_DEALT_min=1] 18 2 255
- Second command block:
- /scoreboard players set @a DEALT 0
- -----
- 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