/ Knockback
group(type=effect,ID=special_knockback,range=6,excludePlayer=true,power=1.8,pos=#pPos,delay=0.1;type=particle,ID=explode,size=(1.0,0.3,1.0),particleAmount=500,pos=#pExactPos)@luck=2

/One Hit Sword
group(type=command,ID="setblock ~ ~-1 ~ beacon";type=command,ID="playsound random.break @a ~ ~ ~";type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20;\
type=command,ID="setblock ~ ~-1 ~1 iron_block",delay=2;type=command,ID="playsound random.break @a ~ ~ ~",delay=2;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=2;\
type=command,ID="setblock ~1 ~-1 ~1 stonebrick",delay=4;type=command,ID="playsound random.break @a ~ ~ ~",delay=4;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=4;\
type=command,ID="setblock ~1 ~-1 ~ diamond_block",delay=6;type=command,ID="playsound random.break @a ~ ~ ~",delay=6;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=6;\
type=command,ID="setblock ~1 ~-1 ~-1 stonebrick",delay=8;type=command,ID="playsound random.break @a ~ ~ ~",delay=8;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=8;\
type=command,ID="setblock ~ ~-1 ~-1 emerald_block",delay=10;type=command,ID="playsound random.break @a ~ ~ ~",delay=10;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=10;\
type=command,ID="setblock ~-1 ~-1 ~-1 stonebrick",delay=12;type=command,ID="playsound random.break @a ~ ~ ~",delay=12;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=12;\
type=command,ID="setblock ~-1 ~-1 ~ lapis_block",delay=14;type=command,ID="playsound random.break @a ~ ~ ~",delay=14;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=14;\
type=command,ID="setblock ~-1 ~-1 ~1 stonebrick",delay=16;type=command,ID="playsound random.break @a ~ ~ ~",delay=16;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=16;\
type=command,ID="summon LightningBolt ~ ~ ~",delay=18; \
type=command,ID="setblock ~ ~-1 ~1 bedrock",delay=20;type=command,ID="playsound mob.wither.death @a ~ ~ ~",delay=20;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=20;\
type=command,ID="setblock ~ ~-1 ~-1 bedrock",delay=22;type=command,ID="playsound mob.wither.death @a ~ ~ ~",delay=22;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=22;\
type=command,ID="setblock ~1 ~-1 ~ bedrock",delay=24;type=command,ID="playsound mob.wither.death @a ~ ~ ~",delay=24;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=24;\
type=command,ID="setblock ~-1 ~-1 ~ bedrock",delay=26;type=command,ID="playsound mob.wither.death @a ~ ~ ~",delay=26;type=particle,ID="cloud",size=(0.5,0.5,0.5),particleAmount=20,delay=26;\
type=command,ID="summon LightningBolt ~ ~ ~",delay=28;type=command,ID="summon LightningBolt ~ ~ ~",delay=28;type=command,ID="setblock ~ ~-1 ~ wool",delay=28; \
type=command,ID="setblock ~ ~ ~1 air",delay=30; \
type=command,ID="setblock ~-1 ~ ~1 air",delay=30; \
type=command,ID="setblock ~-1 ~ ~ air",delay=30; \
type=command,ID="setblock ~-1 ~ ~-1 air",delay=30; \
type=command,ID="setblock ~ ~ ~-1 air",delay=30; \
type=command,ID="setblock ~1 ~ ~-1 air",delay=30; \
type=command,ID="setblock ~1 ~ ~ air",delay=30; \
type=command,ID="setblock ~1 ~ ~1 air",delay=30; \
type=command,ID="setblock ~ ~ ~ air",delay=30; \

/====TEST===

ID=arrow,amount=31@luck=0
ID=arrow,amount=1@luck=0
ID=diamond_sword@luck=1
ID=lucky:lucky_block_plural,amount=#rand(2,5)@luck=0
group(ID=golden_apple,amount=#rand(2,4);ID=golden_apple,amount=#rand(1,2),damage=1)@luck=3
ID=lucky:plural_lucky_sword,NBTTag=(ench=#luckySwordEnchantments)@luck=3
ID=lootplusplus:plural.op_box,amount=1@luck=0
ID=diamond_helmet,NBTTag=(ench=#luckyHelmetEnchantments)@luck=3
ID=diamond_chestplate,NBTTag=(ench=#luckyChestplateEnchantments)@luck=3
ID=diamond_leggings,NBTTag=(ench=#luckyLeggingsEnchantments)@luck=3
ID=diamond_boots,NBTTag=(ench=#luckyBootsEnchantments)@luck=3
ID=diamond_pickaxe,NBTTag=(ench=#luckyToolEnchantments)@luck=2
ID=iron_ingot,amount=#rand(5,10)@luck=1
ID=diamond,amount=#rand(2,6)@luck=2
ID=gold_ingot,amount=#rand(7,13)@luck=1
ID=emerald,amount=#rand(1,3)@luck=2
ID=sapling,NBTTag=(display=(Name="$a$lRegowth"))@luck=1
type=block,ID=lootplusplus:plural.op_box
ID=boat,amount=200,NBTTag=(display=(Name="$cBotOP"))@luck=2
ID=wooden_sword,NBTTag=(ench=[(id=16,lvl=500)])@luck=3
ID=diamond_block,amount=#rand(10,15)@luck=4
ID=emerald_block,amount=#rand(2,7)@luck=4
ID=iron_block,amount=#rand(12,20)@luck=4
type=block,ID=standing_sign,meta=11,tileEntity=(Text1="Plural",Text2="Lucky Block",Text3="created by",Text4="RandomTeleport")@luck=0
ID=stick,NBTTag=(ench=[(id=35,lvl=500)])@luck=3

Id=planks,amount=#rand(20,30)@luck=0

/-------------BLOCKS ------------

/RANDOM ITEMS

/ORES
group(ID=iron_ingot,amount=#rand(10,20);type=particle,ID="happyVillager",size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID="note.pling",volume=1.5)@luck=1
group(ID=gold_ingot,amount=#rand(10,20);type=particle,ID="happyVillager",size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID="note.pling",volume=1.5)@luck=1
group(ID=diamond,amount=#rand(10,20);type=particle,ID="happyVillager",size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID="note.pling",volume=1.5)@luck=1
group(ID=emerald,amount=#rand(10,20);type=particle,ID="happyVillager",size=(0.5,0.5,0.5),particleAmount=20;type=sound,ID="note.pling",volume=1.5)@luck=1

/RANDOM LUCKY TOOLS
ID=diamond_sword,NBTTag=(ench=[(id=16,lvl=#rand(1,8)),(id=20,lvl=#rand(0,1)),(id=21,lvl=#rand(2,5)),(id=34,lvl=#rand(3,8))],display=(Name="6Lucky Sword"))@luck=2
ID=diamond_helmet,NBTTag=(ench=[(id=0,lvl=#rand(1,8)),(id=1,lvl=#rand(1,5)),(id=5,lvl=#rand(2,5)),(id=4,lvl=#rand(3,8))],display=(Name="6Lucky Helmet"))@luck=2
ID=diamond_chestplate,NBTTag=(ench=[(id=0,lvl=#rand(1,8)),(id=1,lvl=#rand(1,5)),(id=4,lvl=#rand(2,5)),(id=3,lvl=#rand(3,8))],display=(Name="6Lucky Chestplate"))@luck=2
ID=diamond_leggings,NBTTag=(ench=[(id=0,lvl=#rand(1,8)),(id=1,lvl=#rand(1,5)),(id=4,lvl=#rand(2,5)),(id=3,lvl=#rand(3,8))],display=(Name="6Lucky Leggings"))@luck=2
ID=diamond_boots,NBTTag=(ench=[(id=0,lvl=#rand(1,8)),(id=1,lvl=#rand(1,5)),(id=8,lvl=#rand(2,5)),(id=2,lvl=#rand(3,8))],display=(Name="6Lucky Boots"))@luck=2
ID=bow,NBTTag=(ench=[(id=48,lvl=#rand(1,8)),(id=49,lvl=#rand(1,5)),(id=50,lvl=#rand(2,5)),(id=51,lvl=#rand(3,8))],display=(Name="6Lucky Bow"))@luck=2
ID=diamond_pickaxe,NBTTag=(ench=[(id=32,lvl=#rand(1,8)),(id=34,lvl=#rand(1,5)),(id=35,lvl=#rand(2,5)),(id=33,lvl=#rand(0,1))],display=(Name="6Lucky Pickaxe"))@luck=2
ID=diamond_axe,NBTTag=(ench=[(id=32,lvl=#rand(1,8)),(id=34,lvl=#rand(1,5)),(id=35,lvl=#rand(2,5)),(id=33,lvl=#rand(0,1))],display=(Name="6Lucky Axe"))@luck=2
ID=diamond_shovel,NBTTag=(ench=[(id=32,lvl=#rand(1,8)),(id=34,lvl=#rand(1,5)),(id=35,lvl=#rand(2,5)),(id=33,lvl=#rand(0,1))],display=(Name="6Lucky Shovel"))@luck=2
ID=diamond_sword,NBTTag=(ench=[(id=16,lvl=3000)],display=(Name="Its Fake",Lore=["r7Sharpness X","r7Fire Aspect X","r7Unbreaking X","r7Smite X","r7Looting X"," ","9+120 Attack Damage"]),HideFlags=1)@luck=2
ID=wooden_pickaxe,NBTTag=(ench=[(id=32,lvl=127)],display=(Name="6Super (un)lucky Pickaxe"))@luck=2

/VENOM
group(type=structure,ID=wishing_well;type=message,ID="A Wishing Well. Maybe you should throw in...";type=command,ID="/give #pName lootplusplus:trollface 1 0 {display:{Name:"a Trollface"}}";type=block,ID=lucky:lucky_block_troll,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID="$bYour pizza wish came true!";type=block,ID=air,posY='#'bPosY+4;type=block,ID=flowing_lava,posY=#bPosY+4;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=lootplusplus:plural.pizza,amount=#rand(3,10),posY='#'bPosY+10,posOffset='#'circleOffset(3);ID=golden_carrot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(3))"]))@luck=2@chanche=0.5

group(type=structure,ID=wishing_well;type=message,ID="A Wishing Well. Maybe you should throw in...";type=command,ID="/give #pName lootplusplus:trollface 1 0 {display:{Name:"a Trollface"}}";type=block,ID=lucky:lucky_block_troll,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID="4RIP WORLD!!!";type=block,ID=air,posY='#'bPosY+4;type=block,ID=flowing_lava,posY=#bPosY+4;type=entity,ID=PrimedTnt,NBTTag=(Fuse=50b,Motion='#'randLaunchMotion),posY='#'bPosY+6,amount=200,posOffset='#'circleOffset(3))"]))@luck=-2

group(type=structure,ID=wishing_well;type=message,ID="A Wishing Well. Maybe you should throw in...";type=command,ID="/give #pName lootplusplus:trollface 1 0 {display:{Name:"a Trollface"}}";type=block,ID=lucky:lucky_block_troll,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID="$bYour dead wish came true!";type=command,ID="/kill @p")"]))@luck=-2

group(type=structure,ID=wishing_well;type=message,ID="A Wishing Well. Maybe you should throw in...";type=command,ID="/give #pName lootplusplus:trollface 1 0 {display:{Name:"a Trollface"}}";type=block,ID=lucky:lucky_block_troll,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID="$bYour wish came true!";type=block,ID=air,posY='#'bPosY+4;type=block,ID=flowing_lava,posY=#bPosY+4;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(10,20),posY='#'bPosY+10,posOffset='#'circleOffset(3);ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(3);ID=iron_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(3);ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(3))"]))@luck=2















