# Pack changes for 'FrostElement-Build002-MC1.18.x', applied in memory over the author's own file.
# What they do and why: ADDON_PATCHES.md.

@addon FrostElement-Build002-MC1.18.x

@file drops.txt

@match
group(
type=structure,ID=eleice_wellice;type=message,ID="A wishing well? Maybe you should throw in a coin...";
type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
type=message,ID=\"$bYour ice wish came true!\";
type=block,ID=air,posY='#'bPosY+3;
type=block,ID=beacon,posY='#'bPosY+2;
type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);
ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
ID=lapis_lazuli,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2)
)"])
)@luck=2@chance=0.8
@replace
group(
    type=structure,ID=eleice_wellice;type=message,ID="A wishing well? Maybe you should throw in a coin...";
    type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$bYour ice wish came true!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag='#'randFireworksRocket)),amount=5,posY='#'bPosY+3,posOffset='#'circleOffset(2);
        ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=lapis_lazuli,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=2@chance=0.8
@end

@match
group(
type=structure,ID=eleice_wellice;type=message,ID="A wishing well? Maybe you should throw in a coin...";
type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
type=message,ID=\"$eYour materials wish came true!\";
type=block,ID=air,posY='#'bPosY+3;
type=block,ID=beacon,posY='#'bPosY+2;
type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);
ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
ID=prismarine_crystals,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
ID=amethyst_shard,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2)
)"])
)@luck=2
@replace
group(
    type=structure,ID=eleice_wellice;type=message,ID="A wishing well? Maybe you should throw in a coin...";
    type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$eYour materials wish came true!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=firework_rocket,NBTTag=(LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag='#'randFireworksRocket)),amount=5,posY='#'bPosY+3,posOffset='#'circleOffset(2);
        ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=prismarine_crystals,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);
        ID=amethyst_shard,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2)
    )"])
)@luck=2
@end

@match
group(
type=structure,ID=eleice_wellice;
type=message,ID="A wishing well? Maybe you should throw in a coin...";
type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
type=message,ID=\"$fYour polar wish came true!\";
type=block,ID=air,posY='#'bPosY+3;
type=block,ID=beacon,posY='#'bPosY+2;
type=entity,ID=polar_bear,posOffset='#'circleOffset(#rand(1,5)),amount=#rand(4,8)
type=entity,ID=snow_golem,posOffset='#'circleOffset(#rand(1,5)),amount=#rand(6,14)
)"])
)@luck=0
@replace
group(
    type=structure,ID=eleice_wellice;
    type=message,ID="A wishing well? Maybe you should throw in a coin...";
    type=command,ID=/give #pName gold_nugget{display:{Name:"{\"text\":\"Coin\",\"color\":\"gold\"}"}};
    type=block,ID=lucky:lucky_block,posY=#bPosY-3,NBTTag=(Drops=["group(
        type=message,ID=\"$fYour polar wish came true!\";
        type=block,ID=air,posY='#'bPosY+3;
        type=block,ID=beacon,posY='#'bPosY+2;
        type=entity,ID=polar_bear,posOffset='#'circleOffset('#'rand(1,5)),amount='#'rand(4,8);
	    type=entity,ID=snow_golem,posOffset='#'circleOffset('#'rand(1,5)),amount='#'rand(6,14)
    )"])
)@luck=0
@end

@match
group(
type=item,ID=lucky:eleice_lucky_sword;
type=item,ID=lucky:eleice_lucky_bow;
type=item,ID=lucky:eleice_lucky_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(10,15);
type=entity,ID=firework_rocket,NBTTag=(
LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag=#randFireworksRocket)
),amount=20,posOffset=#circleOffset(0,2)
)@luck=2
@replace
group(
    type=item,ID=lucky:eleice_lucky_sword;
    type=item,ID=lucky:eleice_lucky_bow;
    type=item,ID=lucky:eleice_lucky_potion,NBTTag=(Luck=#randList(100,-100)),amount=#rand(10,15);
    type=entity,ID=firework_rocket,NBTTag=(
        LifeTime=20,FireworksItem=(id=firework_rocket,Count=1,tag=#randFireworksRocket)
    ),amount=5,posOffset=#circleOffset(0,2)
)@luck=2
@end

@file natural_gen.txt

@match
type=block,ID=lucky:eleice_lucky_block@chance=110
@replace
type=block,ID=lucky:eleice_lucky_block@chance=250
@end

