TConstruct Villager (rework)

TConstruct
Added: Registered Villager to the Spawn Egg
Fixed: Moved the TradeHandler, not nesaasry if addToVillages is false
TVillageTrades
Removed: The old implementation was too monotonous.
Added: Randomizer for each "TConstruct" Villager, now are the recipes
more random and more valueable.
This commit is contained in:
samtrion committed 2013-10-21 19:57:00 +02:00
1 parent cd24da2765
commit 3bcc85a36a
2 files changed
+92 -11

No files matched your search

+4 -1
View File
@@ -108,9 +108,12 @@ public class TConstruct
GameRegistry.registerCraftingHandler(new TCraftingHandler());
NetworkRegistry.instance().registerGuiHandler(instance, proxy);
VillagerRegistry.instance().registerVillageTradeHandler(78943, new TVillageTrades());
if (PHConstruct.addToVillages)
{
// adds to the villager spawner egg
VillagerRegistry.instance().registerVillagerId(78943);
// moved down, not needed if 'addToVillages' is false
VillagerRegistry.instance().registerVillageTradeHandler(78943, new TVillageTrades());
VillagerRegistry.instance().registerVillageCreationHandler(new VillageToolStationHandler());
VillagerRegistry.instance().registerVillageCreationHandler(new VillageSmelteryHandler());
try