>surface
/ one block
type=block,ID=lucky:lucky_block_emerald@chance=500

/ lucky structure
group(type=structure,ID=emerald_gen_good;type=block,ID=lucky:lucky_block_emerald,posY=#bPosY+1,NBTTag=(Luck=75))@chance=500

/ unlucky structure
group(type=structure,ID=emerald_ruins_natural;type=block,ID=lucky:lucky_block_emerald,NBTTag=(Luck=-75))@chance=500

>nether
type=block,ID=lucky:lucky_block_emerald,NBTTag=(Luck=-80)@chance=50

>end
type=block,ID=lucky:lucky_block_emerald,NBTTag=(Luck=50)@chance=30

/ endercrystal structure
group(type=structure,ID=ender_crystal_enderman,rotation=#rand(0,3);type=entity,ID=EnderCrystal,posY=#bPosY+17)@chance=50