Mobs wearing armor on occasions?

Started by X11_OmegalingYT on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Sep 2019
Points:
679

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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?

Active 3 years ago
Joined Mar 2020
Points:
1275

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1145
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.

Active 1 day ago
Joined May 2022
Points:
1256

User statistics:

  • Modifications: 14
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
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.