I want to make an overpowered kit that uses one command and I need the custom trade villager to be in a pre-filled chest and I've tried
/give @p chest{BlockEnityTag:{Items:[{Slot:2,id:villager_spawn_egg,Count:127,tag:{EntityTag:{VillagerData:{profession:armorer,level:5,type:plains},Offers:{Recipes:[{buy:{id:stick,Count:1},sell:{id:emerald_block,Count:64},maxUses:9999999},{buy:{id:emerald,Count:1},sell:{id:stick,Count:64},maxUses:9999999},{buy:{id:stick,Count:1},sell:{id:paper,Count:64},maxUses:9999999},{buy:{id:stick,Count:1},sell:{id:gunpowder,Count:64},maxUses:9999999},{buy:{id:stick,Count:1},sell:{id:oak_log,Count:64},maxUses:9999999},{buy:{id:stick,Count:1},sell:{id:netherite_block,Count:64},maxUses:9999999}]}}}}]}} 1
it seems to be working but it gives nothing in the chest and I'm not sure if it can be done and I have a summon command for the villager
/summon villager ~ ~1 ~ {VillagerData:{profession:armorer,level:5,type:plains},Offers:{Recipes:[{buy:{id:stick,Count:1},sell:{id:emerald_block,Count:64},maxUses:9999999},{buy:{id:emerald,Count:1},sell:{id:stick,Count:64},maxUses:9999999},{buy:{id:stick,Count:1},sell:{id:paper,Count:64},maxUses:9999999},{buy:{id:stick,Count:1},sell:{id:gunpowder,Count:64},maxUses:9999999},{buy:{id:stick,Count:1},sell:{id:oak_log,Count:64},maxUses:9999999},{buy:{id:stick,Count:1},sell:{id:netherite_block,Count:64},maxUses:9999999}]}}
both with the chest command
/give @p chest{BlockEnityTag:{Items:[{Slot:2,id:villager_spawn_egg,Count:127}]}} 1
and Count:127
is possible I checked