This command is supposed to do what is said in the title, and the custom trade is an enchanted book. I am version 1.12, and this command does not work.
Also, since 1.11, entity ids are no longer like AreaAffectCloud, but like area_affect_cloud, and 1.13 just plain ignores them if they have uppercase letters, so you might want to get into a habit of that.
I don't think you can summon something with infinite health, but you can have a repeating command block that runs "/effect @e[type=Villager] regeneration 2 255 true" and they won't take any damage.
This command is supposed to do what is said in the title, and the custom trade is an enchanted book. I am version 1.12, and this command does not work.
/summon Villager ~ ~1.5 ~ {Offers:{Recipes:[{buy:{id:"minecraft:rotten_flesh",Count:64},sell:{id:"minecraft:enchanted_book",tag:{StoredEnchantments:[{id:16,lvl:4}]}}Count:1}]},Attributes:[{Name:generic.maxHealth,Base:1000}],Health:1000,NoAI:1,Rotation:[180f,0f]}You forgot a comma after the StoredEnchantments:
/summon villager ~ ~1.5 ~ {Offers:{Recipes:[{buy:{id:"minecraft:rotten_flesh",Count:64},sell:{id:"minecraft:enchanted_book",tag:{StoredEnchantments:[{id:16,lvl:4}]}},Count:1}]},Attributes:[{Name:generic.maxHealth,Base:1000}],Health:1000,NoAI:1,Rotation:[180f,0f]}Also, since 1.11, entity ids are no longer like AreaAffectCloud, but like area_affect_cloud, and 1.13 just plain ignores them if they have uppercase letters, so you might want to get into a habit of that.
I don't think you can summon something with infinite health, but you can have a repeating command block that runs "/effect @e[type=Villager] regeneration 2 255 true" and they won't take any damage.
Subscribe if you want I don't care it's whatever dlhgflksvdhg https://www.youtube.com/formulafanboy
You should probably make it invulnerable instead {Invulnerable:1b}.