Rabbit Invasion

Make a rabbit and try to get rid of it. Won’t happen, two more new rabbits appear each time one gets killed!
Try the code:
player.onChat("rabbit", function () { mobs.spawn(RABBIT, pos(0, 0, 0)) }) mobs.onMobKilled(RABBIT, function () { for (let i = 0; i < 2; i++) { mobs.spawn(RABBIT, randpos( pos(-5, 0, -5), pos(5, 0, 5) )) } })