#zomifiedpiglin set agrow(no idea how to spell this word)

1 messages · Page 1 of 1 (latest)

vagrant grotto
#

Here is some code to modify spawn properties of zombiefied piglin's to spawn with armor and effects, I want to add it to make them angry at the players off spawn. I currently have code for this, but it does not work. any alternatives?

            
            
            
            PigZombie zombifiedpiglin = (PigZombie) event.getEntity();
            
            
            zombifiedpiglin.getEquipment().setHelmet(new ItemStack(Material.DIAMOND_HELMET));
            zombifiedpiglin.getEquipment().setChestplate(new ItemStack(Material.DIAMOND_CHESTPLATE));
            zombifiedpiglin.getEquipment().setLeggings(new ItemStack(Material.DIAMOND_LEGGINGS));
            zombifiedpiglin.getEquipment().setBoots(new ItemStack(Material.DIAMOND_BOOTS));
            
            zombifiedpiglin.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 999999999, 2));
            zombifiedpiglin.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 999999999, 5));
            
            
            zombifiedpiglin.setAngry(true);
                    
                    
            
        };```
#

the current code is zombifiedpiglin.setAngry(true);

stuck forum
#

do they get armour?

vagrant grotto