How it works:
To see what's inside of each command block just point your mouse over it.
How to read?
Don't worry that's simple.
Just follow the direction the command blocks are pointing. That's it!
execute @e[name=hlngCNTR] ~ ~ ~ scoreboard players add @e[type=Wolf,r=2] timerHeal 1
This command is executed from the armor stand inside the healing machine, and it constantly adds 1 to the score "timerHeal".
entitydata @e[score_timerHeal_min=1,score_timerHeal=1] {Sitting:1,NoAI:1,Motion:[0.0,0.0,0.0]}
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
When the score reaches 1, a Sitting and NoAI tag is added to the wolf.
tp @e[score_timerHeal_min=1,score_timerHeal=1] @e[name=hlngCNTR,c=1]
This command teleports the wolf to the armor stand, therefore the wolf is displayed inside the healing machine.
execute @e[score_timerHeal_min=15,score_timerHeal=15] ~ ~ ~ playsound block.note.pling master @a ~ ~ ~ 1 1.8
When the score reaches 15 a pling sound is played.
execute @e[score_timerHeal_min=30,score_timerHeal=30] ~ ~ ~ playsound block.note.pling master @a ~ ~ ~ 1 2
TIP: In order to copy the command selct it and than press Ctrl + C or CMD + C.
When the score reaches 30 another pling sound is played.
execute @e[score_timerHeal_min=25,score_timerHeal=25] ~ ~ ~ particle heart ~ ~1 ~ .3 0.1 .3 1 6
When the score reaches 25 a particle heart effect is displayed.
entitydata @e[score_timerHeal_min=30,score_timerHeal=30] {Sitting:0,NoAI:0,Motion:[0.0,0.5,0.0],ActiveEffects:[{Id:6,Amplifier:200,Duration:40}]}
When the score reaches 30, an instant health effect is given to the wolf and the tags are re-setted.
Command:
execute @e[name=hlngCNTR] ~ ~ ~ scoreboard players reset @e[score_timerHeal_min=40,type=Wolf,rm=3] timerHeal
Explanation:
This command resets the score to every wolf that goes away from the healing machine once it's been healed.
Commands to run once:
/scoreboard objectives add timerHeal dummy
/summon ArmorStand ~ ~1 ~ {CustomName:hlgnCNTR,Marker:1b,Invisible:1,Invulnerable:1}
© Cimap. All Rights Reserved
This website is not endorsed, associated or affiliated with Mojang AB.