Builds‎ > ‎

Myxomatosis - Rabbit Virus in Minecraft

posted Jul 9, 2014, 6:53 AM by Adrian Brightmoore   [ updated Jul 9, 2014, 7:15 AM ]

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.


ċ
Myxomatosis_v1.zip
(4693k)
Adrian Brightmoore,
Jul 9, 2014, 6:56 AM
Comments