Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HavocMasterChief

Members
  • Joined

  • Last visited

Everything posted by HavocMasterChief

  1. I am not fully sure what reflection is. I have taken a course on Java, but I do not recall ever hearing of reflection.
  2. 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?
  3. 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.
  4. 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); }
  5. 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?
  6. 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.
  7. 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?
  8. Does anyone have any suggestions as to where I head from there?
  9. 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. } }
  10. Hello, I am in need of assistance in making vanilla mobs, (pig,cow,chicken,etc..), hostile when attacked.
  11. 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.
  12. 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 }
  13. 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.
  14. Thanks, I will reply once I test it.
  15. 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?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.