Skip to content

Commit

Permalink
Merge pull request #1036 from saldejums/cyberzombies
Browse files Browse the repository at this point in the history
Add cyberzombie invasions in the nether and tweak zombie invasions
  • Loading branch information
bruberu authored Nov 4, 2024
2 parents baf5e4c + fd8c4bb commit 3260116
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions groovy/postInit/gameplay/Invasions.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@ import net.minecraft.init.MobEffects;
import net.minecraft.potion.PotionEffect;
import techguns.entities.npcs.Bandit;

new MobHordeEvent((player) -> {return new EntityZombie(player.world);}, 5, 10, "zombie_medium")
new MobHordeEvent((player) -> {EntityZombie zombie = new EntityZombie(player.world);
zombie.addPotionEffect(new PotionEffect(MobEffects.SPEED, 999999, 1));
return zombie;}, 5, 10, "zombie_medium")
.setAdvancementUnlock(new ResourceLocation("gregtech:steam/1_first_tools"))
.setNightOnly(true)
.setTimer(144000, 216000) // 2 - 3 hours
.setCanUsePods(false)

new MobHordeEvent((player) -> {EntityZombie zombie = new EntityZombie(player.world);
zombie.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 999999, 1));
zombie.addPotionEffect(new PotionEffect(MobEffects.STRENGTH, 999999, 1));
zombie.addPotionEffect(new PotionEffect(MobEffects.SPEED, 999999));
zombie.addPotionEffect(new PotionEffect(MobEffects.SPEED, 999999, 1));
return zombie;}, 6, 12, "zombie_hard")
.setAdvancementUnlock(new ResourceLocation("gregtech:steam/16_steel_boiler"))
.setNightOnly(true)
.setTimer(144000, 216000) // 2 - 3 hours
.setCanUsePods(false)

new MobHordeEvent((player) -> {Bandit bandit = new Bandit(player.world); bandit.addRandomArmor(0); return bandit;}, 2, 4, "bandit_medium")
.setAdvancementUnlock(new ResourceLocation("gregtech:low_voltage/23_lv_assembler"))
.setTimer(72000, 216000) // 1 - 3 hours

0 comments on commit 3260116

Please sign in to comment.