This is a Lucky Villager,inspired by the Lucky Block Mod.Except for this:There are only Lucky Swords and Lucky Pickaxes,but I will make the other stuff too.
How to put it in your world:
1.Get a command block with this command: /give @p command_block
2.Copy and paste the command under in it.
3.Power it with a redstone signal.
4.The Lucky Villager should spawn on top the command block.