Skip to content

Commit

Permalink
Add Dyer village vending profession
Browse files Browse the repository at this point in the history
  • Loading branch information
OreCruncher committed Sep 18, 2015
1 parent b9f873a commit e7e6e5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class VillagerProfession {
public static final VillagerProfessionCustom arborist;
public static final VillagerProfessionCustom hunter;
public static final VillagerProfessionCustom tinker;
public static final VillagerProfessionCustom dyer;

private static Method tradeList;

Expand Down Expand Up @@ -128,13 +129,19 @@ public class VillagerProfession {
tinker.addTrade(new VillagerTrade().setWant(1, 2).setOffer(Blocks.sticky_piston, 0, 1, 2).setProbability(0.5F));
tinker.addTrade(new VillagerTrade().setWant(1, 2).setOffer(Blocks.tnt, 0, 3, 4).setProbability(0.5F));
professions.add(new VillagerProfessionItem(tinker, 50));

dyer = new VillagerProfessionCustom("msg.VendoFormat.Dyer", DyeHelper.COLOR_WHITE, DyeHelper.COLOR_MAGENTA);
for(int i = 0; i < 16; i++)
dyer.addTrade(new VillagerTrade().setWant(1, 2).setOffer(Items.dye, i, 4, 8).setProbability(0.7F));
professions.add(new VillagerProfessionItem(dyer, 80));

} else {

herder = null;
arborist = null;
hunter = null;
tinker = null;
dyer = null;

}
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/recycling/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ msg.VendoFormat.Herder=Herder
msg.VendoFormat.Arborist=Arborist
msg.VendoFormat.Hunter=Hunter
msg.VendoFormat.Tinker=Tinker
msg.VendoFormat.Dyer=Dyer

# Achievements
achievement.feelingScrappy=Feeling Scrappy!
Expand Down

0 comments on commit e7e6e5c

Please sign in to comment.