#why doesnt this work for skeletons

1 messages · Page 1 of 1 (latest)

flint hazel
#
    if event-entity is a zombie:
        set {_r} to a random integer between 1 and 2
        if {_r} = 2:
            set event-entity's zombie spawn reinforcements attribute to 1
    if event-entity is a zombie or skeleton:
        set {_helmet} to a random element of tag values of minecraft tag "head_armor"
        set {_chestplate} to a random element of tag values of minecraft tag "chest_armor"
        set {_leggings} to a random element of tag values of minecraft tag "leg_armor"
        set {_boots} to a random element of tag values of minecraft tag "foot_armor"
        randomly enchant {_helmet} at level (random integer between 1 and 30), allowing treasure enchantments
        randomly enchant {_chestplate} at level (random integer between 1 and 30), allowing treasure enchantments
        randomly enchant {_leggings} at level (random integer between 1 and 30), allowing treasure enchantments
        randomly enchant {_boots} at level (random integer between 1 and 30), allowing treasure enchantments
        set helmet of event-entity to {_helmet}
        set chestplate of event-entity to {_chestplate}
        set leggings of event-entity to {_leggings}
        set boots of event-entity to {_boots}```
there arent any errors but skeletons just don't get any armor
and zombies work just fine
unique turret
#

Try using if any there

flint hazel
unique turret
#

And making a case for zombies and skeletons

flint hazel
flint hazel
unique turret
#
  case 1
  case 2
then:
  your code```
unique turret
flint hazel
#

wait

#

it does work

#

and now skeletons have armor

#

wow

#

ur a genius

unique turret
#

Well given your earlier code event-entity is a zombie worked, but event-entity is a zombie or skeleton didnt, its likely the x or y that breaks it. So just check for one entity at a time

desert treeBOT
# flint hazel ty

Consider increasing someone's reputation with </reputation increase:1458495875985969212> if you found them to be helpful!