19
19
import net .minecraft .entity .EnumCreatureType ;
20
20
import net .minecraft .item .EnumArmorMaterial ;
21
21
import net .minecraft .item .Item ;
22
+ import net .minecraft .item .ItemReed ;
22
23
import net .minecraft .item .ItemStack ;
23
24
import net .minecraft .potion .Potion ;
24
25
import net .minecraft .util .ResourceLocation ;
25
26
import net .minecraft .world .biome .BiomeGenBase ;
26
- import net .minecraftforge .client .event .sound .SoundLoadEvent ;
27
27
import net .minecraftforge .common .Configuration ;
28
28
import net .minecraftforge .common .MinecraftForge ;
29
- import net .minecraftforge .event .ForgeSubscribe ;
30
29
import net .minecraftforge .oredict .OreDictionary ;
31
30
32
31
import org .apache .commons .lang3 .tuple .MutablePair ;
79
78
import flaxbeard .thaumicexploration .item .ItemFoodTalisman ;
80
79
import flaxbeard .thaumicexploration .item .ItemTXArmorSpecial ;
81
80
import flaxbeard .thaumicexploration .item .ItemTXArmorSpecialDiscount ;
81
+ import flaxbeard .thaumicexploration .item .ItemTXRuneCometBoots ;
82
+ import flaxbeard .thaumicexploration .item .ItemTXRuneMeteorBoots ;
82
83
import flaxbeard .thaumicexploration .item .ItemTaintSeedFood ;
83
84
import flaxbeard .thaumicexploration .item .focus .ItemFocusNecromancy ;
84
85
import flaxbeard .thaumicexploration .misc .FauxAspect ;
97
98
import flaxbeard .thaumicexploration .tile .TileEntityReplicator ;
98
99
import flaxbeard .thaumicexploration .tile .TileEntityThinkTank ;
99
100
import flaxbeard .thaumicexploration .wand .WandRodAmberOnUpdate ;
101
+ import flaxbeard .thaumicexploration .wand .WandRodBreadOnUpdate ;
102
+ import flaxbeard .thaumicexploration .wand .WandRodNecromancerOnUpdate ;
100
103
import flaxbeard .thaumicexploration .wand .WandRodTransmutationOnUpdate ;
101
104
102
105
@@ -124,16 +127,26 @@ public class ThaumicExploration {
124
127
public static int transmutationCoreID ;
125
128
public static Item amberCore ;
126
129
public static int amberCoreID ;
130
+ public static Item necroCore ;
131
+ public static int necroCoreID ;
132
+ public static Item breadCore ;
133
+ public static int breadCoreID ;
127
134
128
135
public static EnumArmorMaterial armorMaterialCrystal ;
129
136
public static Item maskEvil ;
130
137
public static int maskEvilID ;
131
138
public static Item focusNecromancy ;
132
139
public static int focusNecromancyID ;
140
+
133
141
public static Item bootsMeteor ;
134
142
public static int bootsMeteorID ;
135
143
public static Item bootsComet ;
136
144
public static int bootsCometID ;
145
+ public static Item runicBootsMeteor ;
146
+ public static int runicBootsMeteorID ;
147
+ public static Item runicBootsComet ;
148
+ public static int runicBootsCometID ;
149
+
137
150
public static Item charmNoTaint ;
138
151
public static int charmNoTaintID ;
139
152
public static Item charmTaint ;
@@ -144,6 +157,9 @@ public class ThaumicExploration {
144
157
public static Item taintBerry ;
145
158
public static int taintBerryID ;
146
159
160
+ public static Item itemAltar ;
161
+ public static int itemAltarID ;
162
+
147
163
public static Block boundChest ;
148
164
public static int boundChestID ;
149
165
public static Block boundJar ;
@@ -170,6 +186,8 @@ public class ThaumicExploration {
170
186
public static int skullCandleID ;
171
187
public static WandRod WAND_ROD_CRYSTAL ;
172
188
public static WandRod WAND_ROD_AMBER ;
189
+ public static WandRod WAND_ROD_NECRO ;
190
+ public static WandRod WAND_ROD_BREAD ;
173
191
174
192
public WorldGenTX worldGen ;
175
193
@@ -200,6 +218,7 @@ public class ThaumicExploration {
200
218
201
219
public static boolean brainsGolem ;
202
220
public static boolean taintBloom ;
221
+ public static boolean breadWand ;
203
222
204
223
public static int potionBindingID ;
205
224
public static int potionTaintWithdrawlID ;
@@ -271,6 +290,11 @@ public void preInit(FMLPreInitializationEvent event) {
271
290
taintBerryID = config .getItem ("Taintberry" , 11015 ).getInt ();
272
291
talismanFoodID = config .getItem ("Talisman of Nourishment" , 11013 ).getInt ();
273
292
focusNecromancyID = config .getItem ("Focus of Necromancy" , 11009 ).getInt ();
293
+ necroCoreID = config .getItem ("Necromancer's Wand Core" , 11016 ).getInt ();
294
+ breadCoreID = config .getItem ("Baguette Wand Core" , 11020 ).getInt ();
295
+ itemAltarID = config .getItem ("Necromantic Pedestal (Item)" , 11017 ).getInt ();
296
+ runicBootsMeteorID = config .getItem ("Runic Boots of the Meteor" , 11018 ).getInt ();
297
+ runicBootsCometID = config .getItem ("Runic Boots of the Comet" , 11019 ).getInt ();
274
298
275
299
//Block IDs
276
300
boundChestID = config .getBlock ("Bound Chest" , 700 ).getInt ();
@@ -295,6 +319,7 @@ public void preInit(FMLPreInitializationEvent event) {
295
319
296
320
//allowOsmotic = config.get("Miscellaneous", "Add new enchantments to Thaumic Tinkerer's Osmotic Enchanter (Requires TT Build 72+)", true).getBoolean(true);
297
321
prefix = config .get ("Miscellaneous" , "Display [TX] prefix before Thaumic Exploration research" , true ).getBoolean (true );
322
+ breadWand = config .get ("Easter Eggs" , "Enable Thaumic Frenchurgy" , false ).getBoolean (true );
298
323
brainsGolem = config .get ("Miscellaneous" , "Use Purified Brains in advanced golems" , true ).getBoolean (true );
299
324
taintBloom = config .get ("Miscellaneous" , "Move the Etheral Bloom to the Tainturgy tab" , true ).getBoolean (true );
300
325
allowBoundInventories = config .get ("Miscellaneous" , "Allow bound inventories" , true ).getBoolean (true );
@@ -350,7 +375,7 @@ public void load(FMLInitializationEvent event) {
350
375
crucibleSouls = new BlockCrucibleSouls (crucibleSoulsID ).setHardness (2.0F ).setUnlocalizedName ("thaumicexploration:crucibleSouls" ).setCreativeTab (tab ).setTextureName ("thaumicExploration:crucible3" );
351
376
replicator = new BlockReplicator (replicatorID ).setHardness (4.0F ).setUnlocalizedName ("thaumicexploration:replicator" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:replicatorBottom" );
352
377
353
- necroPedestal = new BlockNecroPedestal (necroPedestalID , Material .ground ).setUnlocalizedName ("thaumicexploration:necroPedestal" );
378
+ necroPedestal = new BlockNecroPedestal (necroPedestalID , Material .rock ).setUnlocalizedName ("thaumicexploration:necroPedestal" );
354
379
355
380
necroFire = (BlockFire )(new BlockNecroFire (necroFireID )).setUnlocalizedName ("thaumicexploration:necroFire" ).setTextureName ("thaumicexploration:fire" ).setHardness (0.0F ).setLightValue (1.0F ).setStepSound (Block .soundWoodFootstep );
356
381
@@ -378,6 +403,10 @@ public void load(FMLInitializationEvent event) {
378
403
transmutationCore = (new Item (transmutationCoreID )).setUnlocalizedName ("thaumicexploration:transmutationCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodTransmutation" );
379
404
talismanFood = (new ItemFoodTalisman (talismanFoodID )).setUnlocalizedName ("thaumicexploration:talismanFood" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:talismanFood" );
380
405
amberCore = (new Item (amberCoreID )).setUnlocalizedName ("thaumicexploration:amberCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodAmber" );
406
+ necroCore = (new Item (necroCoreID )).setUnlocalizedName ("thaumicexploration:necroCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodNecro" );
407
+ if (this .breadWand ) {
408
+ breadCore = (new Item (breadCoreID )).setUnlocalizedName ("thaumicexploration:breadCore" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:rodBread" );
409
+ }
381
410
pureZombieBrain = (new ItemBrain (pureZombieBrainID )).setUnlocalizedName ("thaumicexploration:pureZombieBrain" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:pureZombieBrain" );
382
411
blankSeal = (new ItemBlankSeal (blankSealID ).setCreativeTab (tab ).setTextureName ("thaumicexploration:sealBlank" ));
383
412
chestSeal = (new ItemChestSeal (chestSealID ).setCreativeTab (tab ).setTextureName ("thaumicexploration:sealChest" ).setUnlocalizedName ("thaumicexploration:chestSeal" ));
@@ -390,13 +419,20 @@ public void load(FMLInitializationEvent event) {
390
419
maskEvil = (new ItemTXArmorSpecialDiscount (maskEvilID , ThaumcraftApi .armorMatSpecial , 2 , 0 )).setUnlocalizedName ("thaumicexploration:maskEvil" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:maskEvil" );
391
420
bootsMeteor = (new ItemTXArmorSpecial (bootsMeteorID , ThaumcraftApi .armorMatSpecial , 4 , 3 )).setUnlocalizedName ("thaumicexploration:bootsMeteor" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:bootsMeteor" );
392
421
bootsComet = (new ItemTXArmorSpecial (bootsCometID , ThaumcraftApi .armorMatSpecial , 4 , 3 )).setUnlocalizedName ("thaumicexploration:bootsComet" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:bootsComet" );
422
+ runicBootsMeteor = (new ItemTXRuneMeteorBoots (runicBootsMeteorID , ThaumcraftApi .armorMatSpecial , 0 , 3 )).setUnlocalizedName ("thaumicexploration:runicBootsMeteor" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:runicBootsMeteor" );
423
+ runicBootsComet = (new ItemTXRuneCometBoots (runicBootsCometID , ThaumcraftApi .armorMatSpecial , 0 , 3 )).setUnlocalizedName ("thaumicexploration:runicBootsComet" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:runicBootsComet" );
393
424
focusNecromancy = (new ItemFocusNecromancy (focusNecromancyID )).setUnlocalizedName ("thaumicexploration:necromancy" ).setCreativeTab (tab ).setTextureName ("thaumicexploration:focusNecromancy" );
394
425
taintBerry = (new ItemTaintSeedFood (taintBerryID , 1 , 0.3F , Block .tnt .blockID , ConfigBlocks .blockTaint .blockID )).setCreativeTab (tab ).setUnlocalizedName ("thaumicexploration:taintBerry" ).setTextureName ("thaumicExploration:taintBerry" );
395
426
//Item skull = (new ItemSkullCandle(11016)).setUnlocalizedName("skull").setTextureName("skull");
427
+ itemAltar = (new ItemReed (itemAltarID , necroPedestal )).setUnlocalizedName ("thaumicexploration:necroAltar" ).setCreativeTab (tab ).setTextureName ("thaumicExploration:necroAltar" );
396
428
397
429
//Wands
398
- WAND_ROD_AMBER = new WandRod ("amber " ,10 ,new ItemStack (ThaumicExploration .amberCore ),8 ,new WandRodAmberOnUpdate (), new ResourceLocation ("thaumicexploration:textures/models/rodAmber.png" ));
430
+ WAND_ROD_AMBER = new WandRod ("AMBER " ,10 ,new ItemStack (ThaumicExploration .amberCore ),8 ,new WandRodAmberOnUpdate (), new ResourceLocation ("thaumicexploration:textures/models/rodAmber.png" ));
399
431
WAND_ROD_CRYSTAL = new WandRod ("transmutation" ,100 ,new ItemStack (ThaumicExploration .transmutationCore ),1 ,new WandRodTransmutationOnUpdate ());
432
+ WAND_ROD_NECRO = new WandRod ("NECROMANCER" ,100 ,new ItemStack (ThaumicExploration .necroCore ),15 ,new WandRodNecromancerOnUpdate (), new ResourceLocation ("thaumicexploration:textures/models/rodNecro.png" ));
433
+ if (this .breadWand ) {
434
+ WAND_ROD_BREAD = new WandRod ("BREAD" ,39 ,new ItemStack (ThaumicExploration .breadCore ),8 ,new WandRodBreadOnUpdate (), new ResourceLocation ("thaumicexploration:textures/models/rodBread.png" ));
435
+ }
400
436
//WandRod.rods.put("transmutation1", WAND_ROD_CRYSTAL1);
401
437
enchantmentBinding = new EnchantmentBinding (enchantmentBindingID , 1 );
402
438
enchantmentNightVision = new EnchantmentNightVision (enchantmentNightVisionID , 1 );
@@ -417,6 +453,7 @@ public void postInit(FMLPostInitializationEvent event) {
417
453
//Researches, Thaumcraft Recipes
418
454
ModRecipes .initRecipes ();
419
455
ModResearch .initResearch ();
456
+ //NecromanticAltarAPI.initNecromanticRecipes();
420
457
proxy .setUnicode ();
421
458
422
459
allowedItems .add (MutablePair .of (Block .stone .blockID ,0 ));
@@ -589,13 +626,6 @@ private void addAchievementDesc(String ach, String desc)
589
626
}
590
627
591
628
592
-
593
- @ ForgeSubscribe
594
- public void onSound (SoundLoadEvent event ) {
595
- // You add them the same way as you add blocks.
596
- //event.manager.addSound("steamcraft:wobble.ogg");
597
- }
598
-
599
629
private class TXTab extends CreativeTabs {
600
630
601
631
public TXTab (int par1 , String par2Str ) {
0 commit comments