5.1.0

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/STRUCTURECHANCE~

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.
The structureChance means every time the Lucky Block spawns it will have a 1 in (structureChance) chance of spawning within a structure.

~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.

>properties
spawnrate=200
structureChance=2
recipe=pgp,gdg,pgp,g,coal_block,d,dropper,p,coal
doDropsOnCreativeMode=false

>craftingitems
dirt=64
deadbush=64
sponge=64
grass=64
tnt=64
coal=1



rotten_flesh=1
spider_eye=1
fermented_spider_eye=1
poisonous_potato=1
fish,3=1

>drops
/========== TOOLS & ARMOR ==========

/all wood, stone and gold tools
group(ID=wooden_sword;ID=wooden_shovel;ID=wooden_pickaxe;ID=wooden_axe;ID=wooden_hoe)@luck=1
group(ID=stone_sword;ID=stone_shovel;ID=stone_pickaxe;ID=stone_axe;ID=stone_hoe)@luck=1
group(ID=golden_sword;ID=golden_shovel;ID=golden_pickaxe;ID=golden_axe;ID=golden_hoe)@luck=100
/2-3 iron tools
group:#random-2-3(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck=100
/all leather and gold armor
group(ID=leather_helmet;ID=leather_chestplate;ID=leather_leggings;ID=leather_boots)@luck=0
/2-3 chain and iron armor
group:#random-2-3(ID=chainmail_helmet;ID=chainmail_chestplate;ID=chainmail_leggings;ID=chainmail_boots)@luck=2
group:#random-2-3(ID=iron_helmet;ID=iron_chestplate;ID=iron_leggings;ID=iron_boots;ID=iron_horse_armor)@luck=100
/all horse armor
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2
/bow and arrows
group(ID=bow;ID=arrow,amount=#random-16-32)@luck=1

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

ID=sponge@luck=1
ID=tnt,amount=8@luck=1
ID=obsidian,amount=16@luck=1
ID=enchanting_table@luck=2
ID=dropper,amount=8@luck=0
ID=coal_block,amount=16@luck=0

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

ID=coal,amount=#random-16-64@luck=1
ID=obsidian,amount=#random-8-16@luck=1
ID=dirt,amount=64@luck=-1
ID=saddle,amount=2@luck=0
ID=cake@luck=0
ID=rotten_flesh@luck=0
ID=deadbush,NBTTag=(display=(Name="#cRomantic bush"))@luck=0
ID=stick,NBTTag=(ench=#knockback_2,display=(Name="#e#lStick of Power!!!"))@luck=1

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

/bookshelves and books
group(ID=bookshelf,amount=#random-6-12;ID=book,amount=#random-8-16)@luck=0
/pumpkins and jack o'lanterns
group(ID=pumpkin,amount=#random-8-16;ID=lit_pumpkin,amount=#random-8-16)@luck=0
/buckets
group(ID=bucket,amount=#random-1-2;ID=water_bucket,amount=#random-1-2;ID=lava_bucket,amount=#random-1-2;ID=milk_bucket,amount=#random-1-2)@luck=0
/meat (raw and cooked)
group:1(group(ID=porkchop,amount=#random-8-16;ID=cooked_porkchop,amount=#random-4-8);group(ID=fish,amount=#random-8-16;ID=cooked_fished,amount=#random-4-8);group(ID=beef,amount=#random-8-16;ID=cooked_beef,amount=#random-4-8);group(ID=chicken,amount=#random-8-16;ID=cooked_chicken,amount=#random-4-8))@luck=1
/vegetable food (carrots, potatoes, pumpkin pie)
group:1(group(ID=carrot,amount=#random-8-16;ID=golden_carrot,amount=#random-4-8);group(ID=potato,amount=#random-8-16;ID=baked_potato,amount=#random-4-8;ID=poisonous_potato,amount=#random-2-4);group(ID=beef,amount=#random-8-16;ID=cooked_beef,amount=#random-4-8);group(ID=pumpkin_pie,amount=#random-6-12))@luck=1
/potions
ID=potion,damage=#randomPotionDamage,amount=#random-4-8,reinitialize=true@luck=1
/spawn eggs
ID=spawn_egg,damage=#randomSpawnEggDamage,amount=#random-4-8,reinitialize=true@luck=1
/heads
ID=skull,damage=#random-0-4,amount=#random-1-3,reinitialize=true@luck=0
/jukebox music discs
group(ID=jukebox;ID=#random-2256-2267,amount=#random-1-3,reinitialize=true)@luck=1
/colorful
group(group:1(ID=wool,damage=#random-0-15,amount=#random-32-64,reinitialize=true;ID=stained_hardened_clay,damage=#random-0-15,amount=#random-32-64,reinitialize=true;ID=dye,damage=#random-0-15,amount=#random-32-64,reinitialize=true);type=particle,ID=2002,damage=#randomPotionEffect,amount=20,reinitialize=true)@luck=1
/quartz
group(ID=stone_slab,damage=7,amount=#random-4-8;ID=quartz_ore,amount=#random-16-32;ID=quartz_block,amount=#random-4-8;ID=quartz_block,damage=1,amount=#random-4-8;ID=quartz_block,damage=2,amount=#random-4-8;ID=quartz_stairs,amount=#random-4-8;ID=quartz,amount=#random-24-32;type=particle,ID=2002,damage=14)@luck=1
/fish
group(ID=fishing_rod;ID=#random-349-350,damage=#random-0-3,amount=#random-10-20,reinitialize=true)@luck=1
/message with mushroom
group(type=command,ID="/tell #playerName Listen to me, #playerName. You are defenitely NOT in grave danger. You need to run. Now. Take this mushroom, it is your only hope.",commandSender="PlayerInDistress";ID=red_mushroom,NBTTag=(display=(Name="#cOnly Hope")))@luck=-1;
/random jokes
group:1(ID=clock,NBTTag=(display=(Name="You're wasting your time"));ID=fish,damage=2,NBTTag=(display=(Name="I'm funny"));ID=fish,damage=3,NBTTag=(display=(Name="Oooooh!")))@luck=-1
/flowers
group(ID=red_flower,damage=#random-0-8,amount=64,reinitialize=true)@luck=0
/enchantment books
ID=enchanted_book,NBTTag=(ench=#randomEnchantment),amount=#random-7-10,reinitialize=true@luck=1

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

/passive mobs
group:1(type=entity,ID=Pig,NBTTag=(CustomName="#e#lUnLucky Pig",CustomNameVisible=true);type=entity,ID=Cow,NBTTag=(CustomName="#e#lUnlucky Cow",CustomNameVisible=true);type=entity,ID=Chicken,NBTTag=(CustomName="#e#lUnlucky Chicken",CustomNameVisible=true);type=entity,ID=Sheep,NBTTag=(CustomName="#e#lUnlucky Sheep",CustomNameVisible=true);type=entity,ID=Squid,NBTTag=(CustomName="#e#lLucky Squid",CustomNameVisible=true))@luck=0
/colored sheep
type=entity,ID=Sheep,NBTTag=(CustomName="#cM#6r. #eR#aa#2i#bn#3b#5o#dw",CustomNameVisible=true,Color=#random-0-15b),scatterOffset=4-4,adjustHeight=2,amount=16,relativeToPlayer=true,reinitialize=true@luck=1
/lucky eggs
type=entity,ID=luckyegg,amount=20@luck=2
type=entity,ID=luckyegg,amount=#random-1-48@luck=2
/launched expbottles
type=entity,ID=launched_expbottle,amount=#random-20-45@luck=2
type=entity,ID=launched_expbottle,amount=#random-2-6@luck=0
/launched tnt
type=entity,ID=launched_tnt,amount=64@luck=0
type=entity,ID=launched_tnt,amount=64@luck=0
/lightning creeper
group(type=difficulty,ID=hard;type=entity,ID=Creeper,amount=12,scatterOffset=1-1,adjustHeight=2.reinitialize=true;type=entity,ID=lightning)@luck=0
/giant
group(type=difficulty,ID=hard;type=entity,ID=Giant)@luck=-2
/wither
group(type=difficulty,ID=hard;type=entity,ID=WitherBoss)@chance=0.1@luck=1
/ghast
group(type=difficulty,ID=hard;type=entity,ID=Ghast)@chance=0.2@luck=1
/stacked villager and withers
type=entity,ID=Villager,NBTTag=(Riding=(id=WitherBoss,Riding=(id=WitherBoss,Riding=(id=WitherBoss,Riding=(id=WitherBoss,Riding=(id=WitherBoss,Riding=(id=WitherBoss,Riding=(id=WitherBoss))))))))@luck=0
/EnderDrgons
type=entity,ID=EnderDragon,amount=12,scatterOffset=4-4,adjustHeight=2,reinitialize=true,NBTTag=(Type=#random-0-4,Owner=#playerName)@luck=1
/witch with bats
group(type=difficulty,ID=hard;type=entity,ID=Witch,adjustHeight=1;type=entity,ID=Bat,amount=64,posY=#bPosY+#random-0-2,scatterOffset=0-1,adjustHeight=1,reinitialize=true)@luck=-1
/huge slime and magma cube
group:1(type=entity,ID=Slime,NBTTag=(Size=50);type=entity,ID=LavaSlime,NBTTag=(Size=50))@luck=-2
/pet wolves
group(type=particle,ID="heart",amount=20,scatterOffset=0-2,reinitialize=true;type=entity,ID=Wolf,amount=#random-5-10,scatterOffset=3-3,adjustHeight=1,reinitialize=true,NBTTag=(CollarColor=#random-0-14,Owner=#playerName,Sitting=1))@luck=1
/pet cats
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=sponge,Count=1),sell=(id=emerald_block,Count=1),maxUses=100),(buy=(id=end_portal_frame,Count=1),sell=(id=emerald,Count=1),maxUses=100),(buy=(id=saddle,Count=1),sell=(id=emerald,Count=5),maxUses=100),(buy=(id=cake,Count=1),sell=(id=emerald_block,Count=1),maxUses=100)]),CustomName="#e#lComfused Villager",CustomNameVisible=true)@luck=1
group(type=particle,ID="heart",amount=20,scatterOffset=0-2,reinitialize=true;type=entity,ID=Ozelot,amount=#random-5-10,scatterOffset=3-3,adjustHeight=1,reinitialize=true,NBTTag=(CatType=#random-0-3,Owner=#playerName,Sitting=1))@luck=0
/lucky villagers
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#random-20-64),sell=(id=dirt,Count=1,tag=,display=(Name="#e#lLucky Dirt"))),maxUses=64),ag(buy=(id=diamond,Count=#random-63-64)
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#random-12-64),sell=(id=leather_helmet,Count=1,tag=,display=(Name="#e#lUnluckyhelmet"))),maxUses=64
type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=diamond,Count=#random-10-64),sell=(id=wodden_shovel,Count=1,tag=,display=(Name="#e#lLucky Shovel"))),maxUses=64),(buy=(id=diamond,Count=#random-63-64)

type=entity,ID=Villager,NBTTag=(Offers=(Recipes=[(buy=(id=emerald,Count=#random-32-64),sell=(id=coal,Count=1),maxUses=100),(buy=(id=diamond,Count=#random-32-64),sell=(id=coal,Count=1),maxUses=100),(buy=(id=gold_ingot,Count=#random-32-64),sell=(id=coal,Count=1),maxUses=100),(buy=(id=beacon,Count=#random-32-64),sell=(id=coal,Count=1),maxUses=100)]),CustomName="#e#lSanta?!",CustomNameVisible=true)@luck=-2

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

/traps
type=structure,ID=anvil_trap,relativeToPlayer=true@luck=0
type=structure,ID=lava_trap,relativeToPlayer=true@luck=0
type=structure,ID=water_trap,relativeToPlayer=true@luck=0
type=structure,ID=pit_trap,relativeToPlayer=true@luck=50

/lucky fort and temple
type=structure,ID=fort,relativeToPlayer=true@luck=2
type=structure,ID=temple,relativeToPlayer=true@chance=0.4@luck=2

/falling blocks (iron, gold, obsidian, sponge, tnt, dirt)
type=falling_block,ID=iron_block@luck=0
type=falling_block,ID=gold_block@luck=0
type=falling_block,ID=obsidian@luck=0
type=falling_block,ID=@luck=-1
type=falling_block,ID=dirt@luck=0
type=falling_block,ID=sponge@luck=0
type=falling_block,ID=tnt@luck=2

/bedrock problem
type=structure,ID=bedrock_problem@luck=-1

/explosion
group(type=difficulty,ID=hard;type=structure,ID=explosion,damage=6)@luck=-2
group(type=difficulty,ID=hard;type=structure,ID=explosion,damage=255)@luck=-2

/colorful pole
group(type=falling_block,ID=stained_hardened_clay,damage=14;type=falling_block,ID=stained_hardened_clay,damage=1,posY=#bPosY+10;type=falling_block,ID=stained_hardened_clay,damage=4,posY=#bPosY+20;type=falling_block,ID=stained_hardened_clay,damage=5,posY=#bPosY+30;type=falling_block,ID=stained_hardened_clay,damage=3,posY=#bPosY+40;type=falling_block,ID=stained_hardened_clay,damage=11,posY=#bPosY+50;type=falling_block,ID=stained_hardened_clay,damage=10,posY=#bPosY+60;type=falling_block,ID=stained_hardened_clay,damage=2,posY=#bPosY+70;type=falling_block,ID=stained_hardened_clay,damage=6,posY=#bPosY+80;type=falling_block,ID=diamond_block,posY=#bPosY+90)@luck=2
group(type=falling_block,ID=obsidian;type=falling_block,ID=obsidian,posY=#bPosY+10;type=falling_block,ID=obsidian,posY=#bPosY+20;type=falling_block,ID=obsidian,posY=#bPosY+30;type=falling_block,ID=obsidian,posY=#bPosY+40;type=falling_block,ID=obsidian,damage=11,posY=#bPosY+50;type=falling_block,ID=obsidian,posY=#bPosY+60;type=falling_block,ID=diamond_block,posY=#bPosY+70;type=falling_block,ID=obsidian,posY=#bPosY+80;type=falling_block,ID=diamond_block,posY=#bPosY+90)@luck=2
group(type=falling_block,ID=tnt;type=falling_block,ID=tnt_block,posY=#bPosY+10;type=falling_block,ID=tnt,posY=#bPosY+20;type=falling_block,ID=tnt,posY=#bPosY+30;type=falling_block,ID=diamond_block,posY=#bPosY+40;type=falling_block,ID=diamond_block,posY=#bPosY+50;type=falling_block,ID=tnt,posY=#bPosY+60;type=falling_block,ID=tnt,posY=#bPosY+70;type=falling_block,ID=redstone_block,posY=#bPosY+80;type=falling_block,ID=cake,posY=#bPosY+90)@luck=1

/chests
type=structure,ID=chest,NBTTag=(type="bonusChest")@luck=0
type=structure,ID=chest,NBTTag=(type="dungeonChest")@luck=1
type=structure,ID=chest,NBTTag=(type="villageBlacksmith")@luck=1
type=structure,ID=chest,NBTTag=(items=[(id=dirt,maxAmount=64,weight=10),(id=gold_ingot,maxAmount=4,weight=10),(id=emerald,maxAmount=1,weight=10),(id=tnt,maxAmount=64,weight=10),(id=Unlucky:Unlucky_block,maxAmount=64,weight=10),(id=golden_apple,maxAmount=2,weight=10),(id=golden_apple,damage=1,maxAmount=1,weight=5)],min=8,max=8)@luck=2

/choice of 2 lucky blocks
type=structure,ID=lucky_choice,relativeToPlayer=true@luck=0

/wishing wells
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #playerName gold_nugget 1 0 {display:{Name:\"#6Coin\"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"#bYour wish was not true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=fireworks,NBTTag='#'randomFireworkRocket,amount=1,posY='#'bPosY+3,scatterOffset=2-2,reinitialize=true;ID=gold_ingot,amount=#random-1-2,posY='#'bPosY+10,scatterOffset=2-2;ID=dirt,amount=#random-20-50,posY='#'bPosY+10,scatterOffset=2-2;ID=sponge,amount=#random-20-50,posY='#'bPosY+10,scatterOffset=2-2)"]))@luck=2
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #playerName gold_nugget 1 0 {display:{Name:\"#6Coin\"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"#eYour wish came true! (If you like potatoes)\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=potato,amount=128,posY='#'bPosY+10,scatterOffset=2-2;ID=baked_potato,amount=64,posY='#'bPosY+10,scatterOffset=2-2;ID=poisonous_potato,amount=32,posY='#'bPosY+10,scatterOffset=2-2)"]))@luck=1
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #playerName gold_nugget 1 0 {display:{Name:\"#6Coin\"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"#4Your apocalyse wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=launched_tnt,posY='#'bPosY+7,amount=100)"]))@luck=-2
group(type=structure,ID=wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #playerName gold_nugget 1 0 {display:{Name:\"#6Coin\"}}";type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"#bYour wish came true! (If you are a noob)\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=fireworks,NBTTag='#'randomFireworkRocket,amount=5,posY='#'bPosY+3,scatterOffset=2-2,reinitialize=true;ID=dirt,amount=#random-20-30,posY='#'bPosY+10,scatterOffset=2-2;ID=sapling
,amount=#random-20-30,posY='#'bPosY+10,scatterOffset=2-2;ID=iron_ingot,amount=#random-20-30,posY='#'bPosY+10,scatterOffset=2-2)"]))@luck=1

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

/sword, difficulty, time, potion effects
group(ID=wooden_sword;type=difficulty,ID=hard;type=time,ID=18750;type=effect,ID=2,duration=30,damage=4;type=effect,ID=8,duration=30;type=effect,ID=15,duration=30;>
/zombies, creepers, spiders + cave spiders
group:1(type=entity,ID=Zombie,amount=#random-49-50,scatterOffset=1-5,adjustHeight=2,reinitialize=true;type=entity,ID=Creeper,amount=#random-50-90,scatterOffset=8-10,adjustHeight=2,reinitialize=true;group(type=entity,ID=Spider,amount=#random-15-60,scatterOffset=8-10,adjustHeight=2,reinitialize=true;type=entity,ID=CaveSpider,amount=#random-50-10,scatterOffset=2-3,adjustHeight=2,reinitialize=true);>
/all
group(type=entity,ID=Zombie,amount=#random-49-50,scatterOffset=1-5,adjustHeight=2,reinitialize=true;type=entity,ID=Creeper,amount=#random-10-90,scatterOffset=8-10,adjustHeight=2,reinitialize=true;group(type=entity,ID=Spider,amount=#random-15-75,scatterOffset=8-10,adjustHeight=2,reinitialize=true;type=entity,ID=CaveSpider,amount=#random-50-100,scatterOffset=2-3,adjustHeight=2,reinitialize=true))))@luck=-2

/========== ENCHANTED ITEMS ==========

/Unlucky block book
ID=written_book,NBTTag=(author="PlayerInDistress",title="#e#Unlucky Block Book",pages=["#l#nThe Lucky Block#r\n\nThe Lucky Block (#odeadus blockus#r) was brought to Minecraft by the gods to punish the good and the evil.","The player's true self will not be revealed after mining this block.\n\nSome fear it, and others have been killed by it.","You must mine it and be prepared for whatever apocalypse follow.\n\nIt is not luck.\n\nIt is #bdeath."])@luck=0
/lucky fishing rod
ID=fishing_rod,NBTTag=(ench=#luckyFishingRodEnchantments,display=(Name="#e#lLucky Fishing Rod"))@luck=2
/lucky armor
group:#random-1-2(ID=iron_helmet,NBTTag=(ench=#luckyHelmetEnchantments,display=(Name="#e#lUnlucky Helmet"));ID=leather_chestplate,NBTTag=(ench=#luckyChestplateEnchantments,display=(Name="#e#lLucky Chestplate"));ID=diamond_leggings,NBTTag=(ench=#luckyLeggingsEnchantments,display=(Name="#e#lLucky Leggings"));ID=golden_boots,NBTTag=(ench=#luckyBootsEnchantments,display=(Name="#e#lLucky Boots")))@luck=2
/unlucky potion
ID=potion,damage=16428,NBTTag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="#e#lUnlucky Potion"))@luck=1
ID=potion,damage=8195,NBTTag=(CustomPotionEffects=#unluckyPotionEffects,display=(Name="#e#lLucky Potion"))@luck=-1