Mobs wearing armor on occasions?

Started by X11_OmegalingYT on

Topic category: Help with modding (Java Edition)

Last seen on 06:49, 20. Jun 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mobs wearing armor on occasions?

Is there a way to make is so mobs can occasionally spawn with armor, similarly to how Zombies and Skeletons do, where they don't always spawn with it, but can sometimes?

Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe create a copy of that…
Sun, 04/05/2020 - 18:48

Maybe create a copy of that mob that can only spawn with armor, and make it rarer than the first mob.

Last seen on 20:08, 17. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Execute this command when…
Sun, 11/20/2022 - 00:27

Execute this command when the entity of your choice spawns:

/data merge entity @e[type=zombie,limit=1,sort=nearest] {ArmorItems:[{},{},{id:golden_chestplate,Count:1}],ArmorDropChances:[0f,0f,0f]}

Replace the golden chestplate with the item of your choice. Alternatively, just have a procedure that changes the item in the armor slot of the nearest entity of the desired type to your custom item.