4.2.1

WARNING:

The first line indicates the version of this file.
If it does not match the version of the mod, this file will be replaced.
Backup this file if you want to keep any changes you made to it.

Instruction on how to customize the Lucky Block might be added
For now, look at everything below the '>drops' line to understand the syntax.

~SPAWNRATE~

The spawnrate means the Lucky Block will have a 1 in (spawnrate) chance of spawning per chunk.
This means the smaller the spawnrate, the more likely it is to spawn. Set it to 0 to prevent natural spawning.

~RECIPE~

To configure the recipe, use the first 3 groups of letters to show what the recipe will look like in the crafting table.
A space instead of a letter will indicate that nothing goes there. Then, match each letter to it's appropriate item/block.
Look below to understand. for no recipe, don't put anything below the recipe line.

>IDs
850
>spawnrate
200
>recipe
ggg,gdg,ggg,g,item:266,d,block:158
>drops
/========== TOOLS & ARMOR ==========

/all wood, stone and gold tools
group(ID=268;ID=269;ID=270;ID=271;ID=290)
group(ID=272;ID=273;ID=274;ID=275;ID=291)
group(ID=283;ID=284;ID=285;ID=286;ID=294)
/2-3 iron tools
group:random-2-3(ID=256;ID=257;ID=258;ID=267;ID=292)
/1-2 diamond tools
group:random-1-2(ID=276;ID=277;ID=278;ID=279;ID=293)
/all leather and gold armor
group(ID=298;ID=299;ID=300;ID=301)
group(ID=314;ID=315;ID=316;ID=317;ID=418)
/2-3 chain and iron armor
group:random-2-3(ID=302;ID=303;ID=304;ID=305)
group:random-2-3(ID=306;ID=307;ID=308;ID=309;ID=417)
/1-2 diamond armor
group:random-1-2(ID=310;ID=311;ID=312;ID=313;ID=419)
/all horse armor
group(ID=417;ID=418;ID=419)
/bow and arrows
group(ID=261;ID=262,amount=random-16-32)

/========== BLOCKS ==========

/sponge
ID=19
/TNT
ID=46,amount=8
/obsidian
ID=49,amount=14
/enchantment table
ID=116
/end portal frame
ID=120,amount=random-2-6
/dragon egg
ID=122
/ender chest
ID=130,amount=2
/beacon block
ID=138
/dropper
ID=158,amount=8
/hay bale
ID=170,amount=8

/========= ITEMS ==========

/gold ingots
ID=266,amount=random-8-16
/stick
ID=280
/painting
ID=321,amount=4
/saddle
ID=329,amount=2
/cake
ID=354
/rotten flesh
ID=367
/nether star
ID=399

/========== GROUPS ==========

/bookshenlves and books
group(ID=47,amount=random-6-12;ID=340,amount=random-8-16)
/pumpkins and jack o'lanterns
group(ID=86,amount=random-8-16;ID=91,amount=random-8-16)
/golden apples
group(ID=322,amount=random-2-4;ID=322,amount=random-1-2,damage=1)
/buckets
group(ID=325,amount=random-1-2;ID=326,amount=random-1-2;ID=327,amount=random-1-2;ID=335,amount=random-1-2)
/meat (raw and cooked)
group:1(group(ID=319,amount=random-8-16;ID=320,amount=random-4-8);group(ID=349,amount=random-8-16;ID=350,amount=random-4-8);group(ID=363,amount=random-8-16;ID=364,amount=random-4-8);group(ID=365,amount=random-8-16;ID=366,amount=random-4-8))
/vegetable food (carrots, potatoes, pumpkin pie)
group:1(group(ID=391,amount=random-8-16;ID=396,amount=random-4-8);group(ID=392,amount=random-8-16;ID=393,amount=random-4-8;ID=394,amount=random-2-4);group(ID=363,amount=random-8-16;ID=364,amount=random-4-8);group(ID=400,amount=random-6-12))
/ender pearls and eyes 
group(ID=368,amount=10;ID=381,amount=5)
/potions
ID=373,damage=randomPotionDamage,amount=random-4-8,reinitialize=true
/spawn eggs
ID=383,damage=randomSpawnEggDamage,amount=random-4-8,reinitialize=true
/heads
ID=397,damage=random-0-4,amount=random-1-3,reinitialize=true
/juke box music discs
group(ID=84;ID=random-2256-2267,amount=random-1-3,reinitialize=true)
/brewing
group(ID=368,amount=random-1-3;ID=369,amount=random-1-3;ID=370,amount=random-1-3;ID=371,amount=random-1-3;ID=372,amount=random-1-3;ID=375,amount=random-1-3;ID=376,amount=random-1-3;ID=377,amount=random-1-3;ID=378,amount=random-1-3;ID=381,amount=random-1-3;ID=382,amount=random-1-3;type=particle,ID=2002,damage=3)
/redstone
group(ID=23,amount=random-2-4;ID=25,amount=1;ID=29,amount=random-2-4;ID=33,amount=4;ID=46,amount=random-4-6;ID=69,amount=2;ID=70,amount=2;ID=72,amount=2;ID=76,amount=8;ID=77,amount=2;ID=96,amount=1;ID=107,amount=1;ID=123,amount=1;ID=131,amount=2;ID=143,amount=2;ID=147,amount=1;ID=148,amount=1;ID=151,amount=1;ID=152,amount=1;ID=154,amount=1;ID=158,amount=random-2-4;ID=324,amount=1;ID=330,amount=1;ID=331,amount=random-32-64;ID=356,amount=8;ID=404,amount=2;type=particle,ID=2002,damage=9)
/colorful
group(group:1(ID=35,damage=random-0-15,amount=random-32-64,reinitialize=true;ID=159,damage=random-0-15,amount=random-32-64,reinitialize=true;ID=351,damage=random-0-15,amount=random-32-64,reinitialize=true);type=particle,ID=2002,damage=randomPotionEffect,amount=20,reinitialize=true)
/iron, gold, diamond, emerald with fireworks
group(ID=265,amount=random-8-16;ID=266,amount=random-8-16;ID=264,amount=random-8-16;ID=388,amount=random-8-16;type=entity,name=fireworks,NBTTag=randomFireworkNBTTag,amount=20,scatterOffset=0-2,reinitialize=true)
/quartz
group(ID=44,damage=7,amount=random-4-8;ID=153,amount=random-16-32;ID=155,amount=random-4-8;ID=155,damage=1,amount=random-4-8;ID=155,damage=2,amount=random-4-8;ID=156,amount=random-4-8;ID=406,amount=random-24-32;type=particle,ID=2002,damage=14)

/========== ENTITIES ==========

/passive mobs
group:1(type=entity,name=Pig,NBTTag=tag(text=CustomName(§e§lLucky Pig),flag=CustomNameVisible(true));type=entity,name=Cow,NBTTag=tag(text=CustomName(§e§lLucky Cow),flag=CustomNameVisible(true));type=entity,name=Chicken,NBTTag=tag(text=CustomName(§e§lLucky Chicken),flag=CustomNameVisible(true));type=entity,name=Sheep,NBTTag=tag(text=CustomName(§e§lLucky Sheep),flag=CustomNameVisible(true));type=entity,name=Squid,NBTTag=tag(text=CustomName(§e§lUnlucky Squid),flag=CustomNameVisible(true)))

/colored sheep
type=entity,name=Sheep,NBTTag=tag(text=CustomName(§cM§6r. §eR§aa§2i§bn§3b§5o§dw),flag=CustomNameVisible(true),byteNumber=Color(random-0-15)),scatterOffset=4-4,adjustHeight=2,amount=16,relativeToPlayer=true,reinitialize=true

/lucky eggs
type=entity,name=luckyegg,amount=20

/exp bottles
type=entity,name=expbottle,amount=random-8-16

/tnt
type=entity,name=tnt,amount=15

/lightning creeper
group(type=difficulty,ID=3;type=entity,name=Creeper;type=entity,name=lightning)

/giant and wither
group(type=difficulty,ID=3;group:1(type=entity,name=Giant;type=entity,name=WitherBoss))

/========== STRUCTURES ==========

/traps
type=structure,name=anviltrap,relativeToPlayer=true
type=structure,name=lavatrap,relativeToPlayer=true
type=structure,name=watertrap,relativeToPlayer=true
type=structure,name=pittrap,relativeToPlayer=true

/lucky fort
type=structure,name=fort,relativeToPlayer=true

/falling blocks (iron, gold, diamond, emerald)
type=structure,name=fallingblock,ID=42
type=structure,name=fallingblock,ID=41
type=structure,name=fallingblock,ID=57
type=structure,name=fallingblock,ID=133

/bedrock
type=structure,name=bedrock

/explosion
group(type=difficulty,ID=3;type=structure,name=explosion,damage=6)

/colorful pole
group(type=structure,name=fallingblock,ID=159,damage=14,posYOffset=0;type=structure,name=fallingblock,ID=159,damage=1,posYOffset=10;type=structure,name=fallingblock,ID=159,damage=4,posYOffset=20;type=structure,name=fallingblock,ID=159,damage=5,posYOffset=30;type=structure,name=fallingblock,ID=159,damage=3,posYOffset=40;type=structure,name=fallingblock,ID=159,damage=11,posYOffset=50;type=structure,name=fallingblock,ID=159,damage=10,posYOffset=60;type=structure,name=fallingblock,ID=159,damage=2,posYOffset=70;type=structure,name=fallingblock,ID=159,damage=6,posYOffset=80;type=structure,name=fallingblock,ID=57,posYOffset=90)

/chests
type=structure,name=chest,NBTTag=tag(text=type(bonusChest))
type=structure,name=chest,NBTTag=tag(text=type(dungeonChest))
type=structure,name=chest,NBTTag=tag(text=type(villageBlacksmith))
type=structure,name=chest,NBTTag=tag(NBTTagList=items(NBTTag=tag(number=id(265),number=maxAmount(8),number=weight(10)),NBTTag=tag(number=id(266),number=maxAmount(4),number=weight(10)),NBTTag=tag(number=id(388),number=maxAmount(4),number=weight(10)),NBTTag=tag(number=id(264),number=maxAmount(4),number=weight(10)),NBTTag=tag(number=id(850),number=maxAmount(2),number=weight(10)),NBTTag=tag(number=id(322),number=maxAmount(2),number=weight(10)),NBTTag=tag(number=id(322),number=damage(1),number=maxAmount(1),number=weight(5))),number=min(8),number=max(8))

/========== MONSTER APOCALYPSE ==========

/sword, difficulty, time, potion effects
group(ID=268;type=difficulty,ID=3;type=time,ID=18750;type=effect,ID=2,duration=30,damage=4;type=effect,ID=9,duration=30;type=effect,ID=15,duration=30;>
/zombies, creepers, spiders + cave spiders
group:1(type=entity,name=Zombie,amount=random-20-50,scatterOffset=8-10,adjustHeight=2,reinitialize=true;type=entity,name=Creeper,amount=random-10-30,scatterOffset=8-10,adjustHeight=2,reinitialize=true;group(type=entity,name=Spider,amount=random-15-45,scatterOffset=8-10,adjustHeight=2,reinitialize=true;type=entity,name=CaveSpider,amount=random-5-10,scatterOffset=8-10,adjustHeight=2,reinitialize=true);>
/all
group(type=entity,name=Zombie,amount=random-20-50,scatterOffset=8-10,adjustHeight=2,reinitialize=true;type=entity,name=Creeper,amount=random-10-30,scatterOffset=8-10,adjustHeight=2,reinitialize=true;group(type=entity,name=Spider,amount=random-15-45,scatterOffset=8-10,adjustHeight=2,reinitialize=true;type=entity,name=CaveSpider,amount=random-5-10,scatterOffset=8-10,adjustHeight=2,reinitialize=true))))

/========== NBT ITEMS ==========

/lucky block book
ID=387,NBTTag=tag(text=author(PlayerInDistress),text=title(§e§lLucky Block Book),NBTTagList=pages(text=1(§l§nThe Lucky Block§r\n\nThe Lucky Block (§ofortunus blockus§r) was brouhgt to Minecraft by the gods to reward the good and punish the evil.),text=2(The player's true self will be revealed after mining this block.\n\nSome fear it, and others have been made rich by it.),text=3(You must mine it and be prepared for whatever will follow.\n\nIt is not luck.\n\nIt is §bdestiny§r.)))

/enchanted sword
ID=276,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(16),shortNumber=lvl(5)),NBTTag=tag(shortNumber=id(17),shortNumber=lvl(5)),NBTTag=tag(shortNumber=id(18),shortNumber=lvl(5)),NBTTag=tag(shortNumber=id(19),shortNumber=lvl(2)),NBTTag=tag(shortNumber=id(20),shortNumber=lvl(2)),NBTTag=tag(shortNumber=id(21),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Sword)))

/enchanted bow
ID=261,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(48),shortNumber=lvl(5)),NBTTag=tag(shortNumber=id(49),shortNumber=lvl(2)),NBTTag=tag(shortNumber=id(50),shortNumber=lvl(1)),NBTTag=tag(shortNumber=id(51),shortNumber=lvl(1)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Bow)))

/enchanted tools
group:random-1-2(ID=277,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(32),shortNumber=lvl(5)),NBTTag=tag(shortNumber=id(33),shortNumber=lvl(1)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(35),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Shovel)));>
ID=278,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(32),shortNumber=lvl(5)),NBTTag=tag(shortNumber=id(33),shortNumber=lvl(1)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(35),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Pickaxe)));>
ID=279,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(32),shortNumber=lvl(5)),NBTTag=tag(shortNumber=id(33),shortNumber=lvl(1)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(35),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Axe)));>
ID=293,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(32),shortNumber=lvl(5)),NBTTag=tag(shortNumber=id(33),shortNumber=lvl(1)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(35),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Hoe))))

/enchanted armor
group:random-1-2(ID=310,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(0),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(1),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(3),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(4),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(5),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(6),shortNumber=lvl(1)),NBTTag=tag(shortNumber=id(7),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Helmet)));>
ID=311,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(0),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(1),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(3),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(4),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(7),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Chestplate)));>
ID=312,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(0),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(1),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(3),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(4),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(7),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Leggings)));>
ID=313,NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(0),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(1),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(2),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(3),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(4),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(7),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))),NBTTag=display(text=Name(§e§lLucky Boots))))

/========== DECKED ZOMBIE ==========

/sword
group(type=difficulty,ID=3;type=entity,name=Zombie,NBTTag=tag(NBTTagList=Equipment(NBTTag=tag(shortNumber=id(276),byteNumber=Count(1),shortNumber=Damage(0),NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(16),shortNumber=lvl(30)),NBTTag=tag(shortNumber=id(17),shortNumber=lvl(30)),NBTTag=tag(shortNumber=id(18),shortNumber=lvl(30)),NBTTag=tag(shortNumber=id(19),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(20),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(21),shortNumber=lvl(6)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))))),>
/helmet
NBTTag=tag(shortNumber=id(310),byteNumber=Count(1),shortNumber=Damage(0),NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(0),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(1),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(3),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(4),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(5),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(6),shortNumber=lvl(1)),NBTTag=tag(shortNumber=id(7),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))))),>
/chestplate
NBTTag=tag(shortNumber=id(311),byteNumber=Count(1),shortNumber=Damage(0),NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(0),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(1),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(3),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(4),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(7),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))))),>
/leggings
NBTTag=tag(shortNumber=id(312),byteNumber=Count(1),shortNumber=Damage(0),NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(0),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(1),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(3),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(4),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(7),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))))),>
/boots
NBTTag=tag(shortNumber=id(313),byteNumber=Count(1),shortNumber=Damage(0),NBTTag=tag(NBTTagList=ench(NBTTag=tag(shortNumber=id(0),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(1),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(2),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(3),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(4),shortNumber=lvl(4)),NBTTag=tag(shortNumber=id(7),shortNumber=lvl(3)),NBTTag=tag(shortNumber=id(34),shortNumber=lvl(3))))))))