Enchant dandelion in 1.7 minecraft [duplicate]

Solution 1:

When fixing stuff it is a good idea to split up the command in multiple lines, so you can actually see what's wrong.

You missed a bracket and the Lore String needs to be encased in quotes when using more than one word:

/give @p yellow_flower 1 0 {
   display:{
      Name:"Mleczyk",
      Lore:[
          Mlecz za AlphaTesty,  <-- Quotes " "
          -Sid Leniwiec         <-- Quotes " "
        ]
     }
 },                             <-- closed too soon
 {                              <-- ench doesn't need to be encased
   ench:[
       {id:34,lvl:1             <-- Closing Bracket  } 
     ]
 }

Fixed:

/give @p yellow_flower 1 0 {display:{Name:"Mleczyk",Lore:["Mlecz za AlphaTesty", "-Sid Leniwiec"]},ench:[{id:34,lvl:1}]}