33
33
import thaumcraft .api .ThaumcraftApi ;
34
34
import thaumcraft .api .aspects .Aspect ;
35
35
import thaumcraft .api .aspects .AspectList ;
36
+ import thaumcraft .api .wands .StaffRod ;
37
+ import thaumcraft .api .wands .WandCap ;
36
38
import thaumcraft .api .wands .WandRod ;
37
39
import thaumcraft .common .config .ConfigBlocks ;
38
40
import thaumcraft .common .lib .ThaumcraftCraftingManager ;
66
68
import flaxbeard .thaumicexploration .enchantment .EnchantmentBinding ;
67
69
import flaxbeard .thaumicexploration .enchantment .EnchantmentDisarm ;
68
70
import flaxbeard .thaumicexploration .enchantment .EnchantmentNightVision ;
71
+ import flaxbeard .thaumicexploration .event .TXArmorEventHandler ;
69
72
import flaxbeard .thaumicexploration .event .TXBootsEventHandler ;
70
73
import flaxbeard .thaumicexploration .event .TXEventHandler ;
71
74
import flaxbeard .thaumicexploration .event .TXTickHandler ;
82
85
import flaxbeard .thaumicexploration .item .ItemTXRuneMeteorBoots ;
83
86
import flaxbeard .thaumicexploration .item .ItemTaintSeedFood ;
84
87
import flaxbeard .thaumicexploration .item .focus .ItemFocusNecromancy ;
85
- import flaxbeard .thaumicexploration .misc .FauxAspect ;
86
88
import flaxbeard .thaumicexploration .misc .TXPotion ;
87
89
import flaxbeard .thaumicexploration .misc .TXTaintPotion ;
88
90
import flaxbeard .thaumicexploration .misc .WorldGenTX ;
@@ -127,10 +129,20 @@ public class ThaumicExploration {
127
129
public static int transmutationCoreID ;
128
130
public static Item amberCore ;
129
131
public static int amberCoreID ;
132
+ public static Item amberStaffCore ;
133
+ public static int amberStaffCoreID ;
130
134
public static Item necroCore ;
131
135
public static int necroCoreID ;
132
136
public static Item breadCore ;
133
137
public static int breadCoreID ;
138
+ public static Item sojournerCap ;
139
+ public static int sojournerCapID ;
140
+ public static Item sojournerCapUncharged ;
141
+ public static int sojournerCapUnchargedID ;
142
+ public static Item mechanistCap ;
143
+ public static int mechanistCapID ;
144
+ public static Item mechanistCapUncharged ;
145
+ public static int mechanistCapUnchargedID ;
134
146
135
147
public static EnumArmorMaterial armorMaterialCrystal ;
136
148
public static Item maskEvil ;
@@ -154,6 +166,23 @@ public class ThaumicExploration {
154
166
public static Item talismanFood ;
155
167
public static int talismanFoodID ;
156
168
169
+ public static Item enhancedHelmetRunic ;
170
+ public static Item enhancedChestRunic ;
171
+ public static Item enhancedLegsRunic ;
172
+ public static Item enhancedBootsRunic ;
173
+ public static Item enhancedHelmetRunic2 ;
174
+ public static Item enhancedChestRunic2 ;
175
+ public static Item enhancedLegsRunic2 ;
176
+ public static Item enhancedBootsRunic2 ;
177
+ public static int enhancedHelmetRunicID ;
178
+ public static int enhancedChestRunicID ;
179
+ public static int enhancedLegsRunicID ;
180
+ public static int enhancedBootsRunicID ;
181
+ public static int enhancedHelmetRunic2ID ;
182
+ public static int enhancedChestRunic2ID ;
183
+ public static int enhancedLegsRunic2ID ;
184
+ public static int enhancedBootsRunic2ID ;
185
+
157
186
public static Item taintBerry ;
158
187
public static int taintBerryID ;
159
188
@@ -184,10 +213,15 @@ public class ThaumicExploration {
184
213
public static int replicatorID ;
185
214
public static Block skullCandle ;
186
215
public static int skullCandleID ;
216
+
187
217
public static WandRod WAND_ROD_CRYSTAL ;
188
218
public static WandRod WAND_ROD_AMBER ;
189
219
public static WandRod WAND_ROD_NECRO ;
190
220
public static WandRod WAND_ROD_BREAD ;
221
+ public static StaffRod STAFF_ROD_AMBER ;
222
+
223
+ public static WandCap WAND_CAP_SOJOURNER ;
224
+ public static WandCap WAND_CAP_MECHANIST ;
191
225
192
226
public WorldGenTX worldGen ;
193
227
@@ -209,6 +243,10 @@ public class ThaumicExploration {
209
243
public static boolean allowFood ;
210
244
public static boolean allowUrn ;
211
245
public static boolean allowBoots ;
246
+ public static boolean allowSojourner ;
247
+ public static boolean allowMechanist ;
248
+ public static boolean allowEnchants ;
249
+ public static boolean allowTainturgy ;
212
250
213
251
public static Aspect fakeAspectNecro ;
214
252
@@ -240,7 +278,7 @@ public class ThaumicExploration {
240
278
241
279
242
280
private TXBootsEventHandler entityEventHandler ;
243
-
281
+ private TXArmorEventHandler entityEventHandler2 ;
244
282
@ EventHandler
245
283
public void preInit (FMLPreInitializationEvent event ) {
246
284
@@ -282,6 +320,7 @@ public void preInit(FMLPreInitializationEvent event) {
282
320
jarSealLinkedID = config .getItem ("Linked Jar Binding Seal" , 11007 ).getInt ();
283
321
transmutationCoreID = config .getItem ("Transmutation Filter Wand Core" , 11004 ).getInt ();
284
322
amberCoreID = config .getItem ("Amber Wand Core" , 11005 ).getInt ();
323
+ amberStaffCoreID = config .getItem ("Amber Staff Core" , 11033 ).getInt ();
285
324
maskEvilID = config .getItem ("Mask of Cruelty" , 11008 ).getInt ();
286
325
bootsMeteorID = config .getItem ("Boots of the Meteor" , 11010 ).getInt ();
287
326
bootsCometID = config .getItem ("Boots of the Comet" , 11011 ).getInt ();
@@ -296,6 +335,21 @@ public void preInit(FMLPreInitializationEvent event) {
296
335
runicBootsMeteorID = config .getItem ("Runic Boots of the Meteor" , 11018 ).getInt ();
297
336
runicBootsCometID = config .getItem ("Runic Boots of the Comet" , 11019 ).getInt ();
298
337
338
+ enhancedHelmetRunicID = config .getItem ("Enhanced Runic Headpiece" , 11021 ).getInt ();
339
+ enhancedChestRunicID = config .getItem ("Enhanced Runic Chestpiece" , 11022 ).getInt ();
340
+ enhancedLegsRunicID = config .getItem ("Enhanced Runic Legpiece" , 11023 ).getInt ();
341
+ enhancedBootsRunicID = config .getItem ("Enhanced Runic Runic Footpiece" , 11024 ).getInt ();
342
+ enhancedHelmetRunic2ID = config .getItem ("Enhanced Runic Headpiece (2)" , 11025 ).getInt ();
343
+ enhancedChestRunic2ID = config .getItem ("Enhanced Runic Chestpiece (2)" , 11026 ).getInt ();
344
+ enhancedLegsRunic2ID = config .getItem ("Enhanced Runic Legpiece (2)" , 11027 ).getInt ();
345
+ enhancedBootsRunic2ID = config .getItem ("Enhanced Runic Runic Footpiece (2)" , 11028 ).getInt ();
346
+
347
+ sojournerCapUnchargedID = config .getItem ("Inert Sojourner's Cap" , 11030 ).getInt ();
348
+ sojournerCapID = config .getItem ("Sojourner's Cap" , 11029 ).getInt ();
349
+
350
+ mechanistCapUnchargedID = config .getItem ("Inert Mechanist's Cap" , 11031 ).getInt ();
351
+ mechanistCapID = config .getItem ("Mechanist's Cap" , 11032 ).getInt ();
352
+
299
353
//Block IDs
300
354
boundChestID = config .getBlock ("Bound Chest" , 700 ).getInt ();
301
355
boundJarID = config .getBlock ("Bound Jar" , 701 ).getInt ();
@@ -322,13 +376,17 @@ public void preInit(FMLPreInitializationEvent event) {
322
376
breadWand = config .get ("Easter Eggs" , "Enable Thaumic Frenchurgy" , false ).getBoolean (true );
323
377
brainsGolem = config .get ("Miscellaneous" , "Use Purified Brains in advanced golems" , true ).getBoolean (true );
324
378
taintBloom = config .get ("Miscellaneous" , "Move the Etheral Bloom to the Tainturgy tab" , true ).getBoolean (true );
325
- allowBoundInventories = config .get ("Miscellaneous" , "Allow bound inventories" , true ).getBoolean (true );
326
- allowReplication = config .get ("Miscellaneous" , "Allow Thaumic Replicator" , true ).getBoolean (true );
327
- allowCrucSouls = config .get ("Miscellaneous" , "Allow Crucible of Souls" , true ).getBoolean (true );
328
- allowThinkTank = config .get ("Miscellaneous" , "Allow Think Tank" , true ).getBoolean (true );
329
- allowFood = config .get ("Miscellaneous" , "Allow Talisman of Nourishment" , true ).getBoolean (true );
330
- allowUrn = config .get ("Miscellaneous" , "Allow Everfull Urn" , true ).getBoolean (true );
331
- allowBoots = config .get ("Miscellaneous" , "Allow Boots of the Meteor/Comet" , true ).getBoolean (true );
379
+ allowBoundInventories = config .get ("Miscellaneous" , "Enable bound inventories" , true ).getBoolean (true );
380
+ allowReplication = config .get ("Miscellaneous" , "Enable Thaumic Replicator" , true ).getBoolean (true );
381
+ allowCrucSouls = config .get ("Miscellaneous" , "Enable Crucible of Souls" , true ).getBoolean (true );
382
+ allowThinkTank = config .get ("Miscellaneous" , "Enable Think Tank" , true ).getBoolean (true );
383
+ allowFood = config .get ("Miscellaneous" , "Enable Talisman of Nourishment" , true ).getBoolean (true );
384
+ allowUrn = config .get ("Miscellaneous" , "Enable Everfull Urn" , true ).getBoolean (true );
385
+ allowBoots = config .get ("Miscellaneous" , "Enable Boots of the Meteor/Comet" , true ).getBoolean (true );
386
+ allowSojourner = config .get ("Miscellaneous" , "Enable Sojourner's Wand Caps" , true ).getBoolean (true );
387
+ allowMechanist = config .get ("Miscellaneous" , "Enable Mechanist's Wand Caps" , true ).getBoolean (true );
388
+ allowEnchants = config .get ("Miscellaneous" , "Enable TX Enchantments" , true ).getBoolean (true );
389
+ allowTainturgy = config .get ("Miscellaneous" , "Enable Tainturgy Tab & Wispy Dreamcatcher" , true ).getBoolean (true );
332
390
allowMagicPlankReplication = config .get ("Replicator" , "Allow replication of Greatwood/Silverwood planks" , true ).getBoolean (true );
333
391
allowModWoodReplication = config .get ("Replicator" , "Allow replication of other mods' logs and planks" , true ).getBoolean (true );
334
392
allowModStoneReplication = config .get ("Replicator" , "Allow replication of other mods' stone blocks" , true ).getBoolean (true );
@@ -340,12 +398,16 @@ public void preInit(FMLPreInitializationEvent event) {
340
398
341
399
@ EventHandler
342
400
public void load (FMLInitializationEvent event ) {
343
- fakeAspectNecro = new FauxAspect ("Necromantic Energy" , 0x870404 , null , new ResourceLocation ("thaumicexploration" , "textures/tabs/necroAspect.png" ), 771 );
401
+ // fakeAspectNecro = new FauxAspect("Necromantic Energy", 0x870404, null, new ResourceLocation("thaumicexploration", "textures/tabs/necroAspect.png"), 771);
344
402
345
403
TickRegistry .registerTickHandler (new TXTickHandler (), Side .CLIENT );
346
404
this .entityEventHandler = new TXBootsEventHandler ();
347
405
348
406
MinecraftForge .EVENT_BUS .register (this .entityEventHandler );
407
+
408
+ this .entityEventHandler2 = new TXArmorEventHandler ();
409
+
410
+ MinecraftForge .EVENT_BUS .register (this .entityEventHandler2 );
349
411
NetworkRegistry .instance ().registerGuiHandler (instance , new TXGuiHandler ());
350
412
351
413
everfullUrnRenderID = RenderingRegistry .getNextAvailableRenderId ();
@@ -403,10 +465,17 @@ public void load(FMLInitializationEvent event) {
403
465
transmutationCore = (new Item (transmutationCoreID )).setUnlocalizedName ("thaumicexploration:transmutationCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodTransmutation" );
404
466
talismanFood = (new ItemFoodTalisman (talismanFoodID )).setUnlocalizedName ("thaumicexploration:talismanFood" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:talismanFood" );
405
467
amberCore = (new Item (amberCoreID )).setUnlocalizedName ("thaumicexploration:amberCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodAmber" );
468
+ amberStaffCore = (new Item (amberStaffCoreID )).setUnlocalizedName ("thaumicexploration:amberStaffCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodAmber_staff" );
406
469
necroCore = (new Item (necroCoreID )).setUnlocalizedName ("thaumicexploration:necroCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodNecro" );
407
470
if (this .breadWand ) {
408
471
breadCore = (new Item (breadCoreID )).setUnlocalizedName ("thaumicexploration:breadCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodBread" );
409
472
}
473
+ sojournerCap = (new Item (sojournerCapID )).setUnlocalizedName ("thaumicexploration:capSojourner" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:capSojournerCharged" );
474
+ sojournerCapUncharged = (new Item (sojournerCapUnchargedID )).setUnlocalizedName ("thaumicexploration:capSojournerInert" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:capSojourner" );
475
+
476
+ mechanistCap = (new Item (mechanistCapID )).setUnlocalizedName ("thaumicexploration:capMechanist" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:capMechanistCharged" );
477
+ mechanistCapUncharged = (new Item (mechanistCapUnchargedID )).setUnlocalizedName ("thaumicexploration:capMechanistInert" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:capMechanist" );
478
+
410
479
pureZombieBrain = (new ItemBrain (pureZombieBrainID )).setUnlocalizedName ("thaumicexploration:pureZombieBrain" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:pureZombieBrain" );
411
480
blankSeal = (new ItemBlankSeal (blankSealID ).setCreativeTab (tab ).setTextureName ("thaumicexploration:sealBlank" ));
412
481
chestSeal = (new ItemChestSeal (chestSealID ).setCreativeTab (tab ).setTextureName ("thaumicexploration:sealChest" ).setUnlocalizedName ("thaumicexploration:chestSeal" ));
@@ -427,19 +496,35 @@ public void load(FMLInitializationEvent event) {
427
496
itemAltar = (new ItemReed (itemAltarID , necroPedestal )).setUnlocalizedName ("thaumicexploration:necroAltar" ).setCreativeTab (tab ).setTextureName ("thaumicExploration:necroAltar" );
428
497
429
498
//Wands
499
+ STAFF_ROD_AMBER = new StaffRod ("AMBER" ,25 ,new ItemStack (ThaumicExploration .amberStaffCore ),18 ,new WandRodAmberOnUpdate (), new ResourceLocation ("thaumicexploration:textures/models/rodAmber.png" ));
430
500
WAND_ROD_AMBER = new WandRod ("AMBER" ,10 ,new ItemStack (ThaumicExploration .amberCore ),8 ,new WandRodAmberOnUpdate (), new ResourceLocation ("thaumicexploration:textures/models/rodAmber.png" ));
431
501
WAND_ROD_CRYSTAL = new WandRod ("transmutation" ,100 ,new ItemStack (ThaumicExploration .transmutationCore ),1 ,new WandRodTransmutationOnUpdate ());
432
502
WAND_ROD_NECRO = new WandRod ("NECROMANCER" ,100 ,new ItemStack (ThaumicExploration .necroCore ),15 ,new WandRodNecromancerOnUpdate (), new ResourceLocation ("thaumicexploration:textures/models/rodNecro.png" ));
433
503
if (this .breadWand ) {
434
504
WAND_ROD_BREAD = new WandRod ("BREAD" ,39 ,new ItemStack (ThaumicExploration .breadCore ),8 ,new WandRodBreadOnUpdate (), new ResourceLocation ("thaumicexploration:textures/models/rodBread.png" ));
435
505
}
506
+ WAND_CAP_SOJOURNER = new WandCap ("SOJOURNER" , 0.95F , new ItemStack (ThaumicExploration .sojournerCap ), 6 );
507
+ WAND_CAP_SOJOURNER .setTexture (new ResourceLocation ("thaumicexploration:textures/models/capSojourner.png" ));
508
+
509
+ WAND_CAP_MECHANIST = new WandCap ("MECHANIST" , 0.95F , new ItemStack (ThaumicExploration .mechanistCap ), 6 );
510
+ WAND_CAP_MECHANIST .setTexture (new ResourceLocation ("thaumicexploration:textures/models/capMechanist.png" ));
511
+
436
512
//WandRod.rods.put("transmutation1", WAND_ROD_CRYSTAL1);
437
513
enchantmentBinding = new EnchantmentBinding (enchantmentBindingID , 1 );
438
514
enchantmentNightVision = new EnchantmentNightVision (enchantmentNightVisionID , 1 );
439
515
enchantmentDisarm = new EnchantmentDisarm (enchantmentDisarmID , 1 );
440
516
if (Loader .isModLoaded ("ThaumicTinkerer" )) {
441
517
TTIntegration .registerEnchants ();
442
518
}
519
+
520
+ // enhancedHelmetRunic = new ItemEnhancedRunicArmor(1, enhancedHelmetRunicID, ThaumcraftApi.armorMatSpecial, 0, 0).setUnlocalizedName("thaumicexploration:enhancedHelmetRunic").setCreativeTab(tab);
521
+ // enhancedChestRunic = new ItemEnhancedRunicArmor(1,enhancedChestRunicID, ThaumcraftApi.armorMatSpecial, 0, 1).setUnlocalizedName("thaumicexploration:enhancedChestplateRunic").setCreativeTab(tab);
522
+ // enhancedLegsRunic = new ItemEnhancedRunicArmor(1,enhancedLegsRunicID, ThaumcraftApi.armorMatSpecial, 0, 2).setUnlocalizedName("thaumicexploration:enhancedLeggingsRunic").setCreativeTab(tab);
523
+ // enhancedBootsRunic = new ItemEnhancedRunicArmor(1,enhancedBootsRunicID, ThaumcraftApi.armorMatSpecial, 0, 3).setUnlocalizedName("thaumicexploration:enhancedBootsRunic").setCreativeTab(tab);
524
+ // enhancedHelmetRunic2 = new ItemEnhancedRunicArmor(2, enhancedHelmetRunic2ID, ThaumcraftApi.armorMatSpecial, 0, 0).setUnlocalizedName("thaumicexploration:enhancedHelmetRunic");
525
+ // enhancedChestRunic2 = new ItemEnhancedRunicArmor(2,enhancedChestRunic2ID, ThaumcraftApi.armorMatSpecial, 0, 1).setUnlocalizedName("thaumicexploration:enhancedChestplateRunic");
526
+ // enhancedLegsRunic2 = new ItemEnhancedRunicArmor(2,enhancedLegsRunic2ID, ThaumcraftApi.armorMatSpecial, 0, 2).setUnlocalizedName("thaumicexploration:enhancedLeggingsRunic");
527
+ // enhancedBootsRunic2 = new ItemEnhancedRunicArmor(2,enhancedBootsRunic2ID, ThaumcraftApi.armorMatSpecial, 0, 3).setUnlocalizedName("thaumicexploration:enhancedBootsRunic");
443
528
444
529
potionBinding = (new TXPotion (potionBindingID , false , 0 )).setIconIndex (0 , 0 ).setPotionName ("potion.binding" );
445
530
potionTaintWithdrawl = (new TXTaintPotion (potionTaintWithdrawlID , true , 0 )).setPotionName ("potion.taintWithdrawl" );
@@ -448,6 +533,7 @@ public void load(FMLInitializationEvent event) {
448
533
proxy .registerRenderers ();
449
534
}
450
535
536
+
451
537
@ EventHandler
452
538
public void postInit (FMLPostInitializationEvent event ) {
453
539
//Researches, Thaumcraft Recipes
0 commit comments