
HavocMasterChief
Members-
Posts
17 -
Joined
-
Last visited
Everything posted by HavocMasterChief
-
[1.7.2] Removing XP gained from Smelting
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
I am not fully sure what reflection is. I have taken a course on Java, but I do not recall ever hearing of reflection. -
[1.7.2] Removing XP gained from Smelting
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
Ok, I have found the map and method that adds the XP to the output. (Map experienceList) Just to be sure, from here I have to modify the entry in the Map from a separate class? If so, how would I go about setting the float for the output in the method to 0? -
[1.7.2] Removing XP gained from Smelting
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
I'm sorry, but I am still not following. What I am wanting to do is just remove the recipe, and re-create it. Personally I feel as this is the way that I will want to go with it, as it seems simpler in my head. I noticed that they created a Map equaling a new HashMap. I am able to remove crafting recipes just fine by adding a generic to a List, and then calling a while loop to see if it finds the output of the recipes. Is there a way to do the same method with furnace recipes? I have not been able to find much about removing them in 1.7.2. -
[1.7.2] Removing XP gained from Smelting
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
I was able to find the getSmeltingList(), but I cannot get it to call the remove method from the list. I have ran the following init method. @EventHandler public void init(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register(this); FurnaceRecipes.smelting().getSmeltingList().remove(Blocks.iron_ore); GameRegistry.addSmelting(Blocks.coal_ore, new ItemStack(Items.coal, 1),0); GameRegistry.addSmelting(Blocks.iron_ore, new ItemStack(Items.iron_ingot, 1),0); GameRegistry.addSmelting(Blocks.gold_ore, new ItemStack(Items.gold_ingot, 1),0); GameRegistry.addSmelting(Blocks.diamond_ore, new ItemStack(Items.diamond, 1),0); GameRegistry.addSmelting(Blocks.redstone_ore, new ItemStack(Items.redstone, 4),0); } -
I am working on a vanilla tweaks mod and am wishing to remove the XP that is gained from smelting. Is there a specific event that I would have to use a @Subscribe event with?
-
[1.7.2] Making Vanilla mobs hostile on attack.
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
This is what I have so far, I am looking at making a cow act like a zombie. For this, I am creating a custom entity like you said, and then altering it to appear and sound like a cow. public class TSTweaksCow extends EntityZombie { public TSTweaksCow(World par1World) { super(par1World); } } How would I go about loading the model. -
[1.7.2] Making Vanilla mobs hostile on attack.
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
I am trying to make my custom entity look like a cow. In 1.7.2 forge, what is the method that I need to call? -
[1.7.2] Making Vanilla mobs hostile on attack.
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
Does anyone have any suggestions as to where I head from there? -
[1.7.2] Making Vanilla mobs hostile on attack.
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
This is what I have so far, not entirely sure where I go from here. @SubscribeEvent public void hostileMobEvent(AttackEntityEvent event) { if (event.entity instanceof EntityAnimal) { entity. } } -
Hello, I am in need of assistance in making vanilla mobs, (pig,cow,chicken,etc..), hostile when attacked.
-
[Solved][1.7.2] Modifying original ore XP drops
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
Thank you! -
[Solved][1.7.2] Modifying original ore XP drops
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
I know it's not getBlock, it was what I would think it would be for simplicity. When using Event.block.*, I'm not sure what the next part is, What I am looking for is to get the original ores, and set their xp drop to 0. Once I am able to get one block, the others won't be a problem. -
[Solved][1.7.2] Modifying original ore XP drops
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
My only problem as of now, is checking if the block is, (Coal ore, Iron Ore, etc...). I would think that it would be something like this, but it's not. if (event.block.getBlock == Blocks.coal_ore) { // Do This } -
[Solved][1.7.2] Modifying original ore XP drops
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
I am unable to figure out how to replace the drop event on a vanilla ore, to where it will not drop XP. I have modified the mob drops just fine, but cannot figure out the ores. -
[Solved][1.7.2] Modifying original ore XP drops
HavocMasterChief replied to HavocMasterChief's topic in Modder Support
Thanks, I will reply once I test it. -
Hello, I am searching for a way to modify the default ore xp drop values. This is going to be part of a fix based mod to add difficulty, and would like to remove all xp drops from ores. Does anyone have any hints as to how I would go about doing this?