I tried summoning a villager with their job site and bed already assigned. The command block gui showed no problems with the code but execution returned "Unable to summon entity"
I tried eliminating the CustomName and changing the level to 1 but I was only able to summon the villager after I removed the "Brain" tag which includes the home (bed) and job site.
Anyone have any idea why this didn't work or even better, a way to make it work?
Since I wasn't getting any response on this, I did some experimenting on a work around. My object was to create a village where the villagers all have "homes" adjacent to their job sites. I made that happen by starting in an empty village. (easy enough to get, just stick around during the night long enough for the zombies to pick off all of the villagers. Most villages are too big for the iron golem to effectively protect, even if he does stick around.) I broke all of the beds, except the first one I wanted to use, then I spawned a villager from a spawn egg next to the closest job site. It worked like a charm. The villager almost immediately took on the profession associated with the job site and then headed for the one available bed. I then added back one bed at a time Until I had all of the villagers where I wanted them. I did have a bit of trouble with a butcher and an armorer but once I figured out that the block immediately above the job site block has to be open, I got them done, too. I hope this helps someone else.
I tried summoning a villager with their job site and bed already assigned. The command block gui showed no problems with the code but execution returned "Unable to summon entity"
This is the code I used:
summon minecraft:villager ~ ~1 ~-2 {Brain: {memories: {"minecraft:meeting_point": {pos: [I;253,73,-375], dimension: "minecraft:overworld"}, "minecaft:home": {pos: [I;231,70,-364], dimension: "minecraft:overworld"}, "minecraft:job_site": {pos: [I;236,69,-380], dimension: "minecraft:overworld"}}},VillagerData: {profession: "minecraft:farmer", level:2,type: "minecraft:plains"},CustomName:'{"text":"Farmer"}'}
I tried eliminating the CustomName and changing the level to 1 but I was only able to summon the villager after I removed the "Brain" tag which includes the home (bed) and job site.
Anyone have any idea why this didn't work or even better, a way to make it work?
Since I wasn't getting any response on this, I did some experimenting on a work around. My object was to create a village where the villagers all have "homes" adjacent to their job sites. I made that happen by starting in an empty village. (easy enough to get, just stick around during the night long enough for the zombies to pick off all of the villagers. Most villages are too big for the iron golem to effectively protect, even if he does stick around.) I broke all of the beds, except the first one I wanted to use, then I spawned a villager from a spawn egg next to the closest job site. It worked like a charm. The villager almost immediately took on the profession associated with the job site and then headed for the one available bed. I then added back one bed at a time Until I had all of the villagers where I wanted them. I did have a bit of trouble with a butcher and an armorer but once I figured out that the block immediately above the job site block has to be open, I got them done, too. I hope this helps someone else.