Myxomatosis - Rabbit Virus in Minecraft
Post date: Jul 09, 2014 1:53:59 PM
Scoreboard initialisation:
/scoreboard objectives add INFECTED dummy
/scoreboard objectives add MYXOMATOSIS dummy
Virus control mechanism:
/scoreboard players add @e[score_INFECTED_min=1] MYXOMATOSIS 1
This counts the time the rabbit has been infected, used to handle infection behaviour
/execute @e[score_INFECTED_min=1] ~ ~ ~ particle blockcrack_152_0 ~ ~1 ~ 0 1 0 1 1
Spray a red particle
/execute @e[score_MYXOMATOSIS_min=87] ~ ~ ~ kill @e[type=Rabbit,r=0,c=1]Â
Kill this rabbit when the virus has run it's course
/execute @e[score_MYXOMATOSIS_min=50] ~ ~ ~ particle blockcrack_152_0 ~ ~1 ~ 0 1 0 1 10
Spray red particles
/execute @e[score_MYXOMATOSIS_min=70] ~ ~ ~ particle blockcrack_152_0 ~ ~1 ~ 0 1 0 1 10
Spray more red particles
/execute @e[score_INFECTED_min=1] ~ ~ ~ /scoreboard players set @e[type=Rabbit,r=1] INFECTED 1
Infect rabbits close to an infected rabbit
/execute @e[score_MYXOMATOSIS_min=70] ~ ~ ~ /scoreboard players set @e[type=Rabbit,r=5] INFECTED 1
Infect rabbits around a badly infected rabbit
/execute @e[type=Player] ~ ~ ~ /scoreboard players set @e[type=Rabbit,r=3] INFECTED 1
Any rabbit close enough to a player will become infected. Also, @a or @p would work.