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.

sequituri

Forge Modder
  • Joined

  • Last visited

Everything posted by sequituri

  1. So, what version of Minecraft is this? Since you have a block ID, I know it aint 1.7.2
  2. Did you even write your backpacks.render function to expect a an EntityLiving as it's argument. Since you are casting it down to Entity, I suspect that isn't true. The player in the EntityLiving, not the backpack. I'd suggest you use the object you get to get the held item, then render that with the view transformations of the player (1st argument). Maybe it should work as written, but I'd set a breakpoint there and see what is happening.
  3. There are different names. There is the Icon Name, the Block registered name, and the unlocalized name. Each has a different purpose. There is even a display name. Which are you trying to change?
  4. You need to learn how to use NBT storage properly, such as NBTTagList and NBTTagCompound and how to properly record counts for things you put in there. You cannot put arbitrary values in NBT tags and expect the receiver to know "know what you meant". It doesn't work that way. Check for typos. I doubt both the array/list and the map have the same # of elements.
  5. When coding in languages like C, C++, and Java, there is a distinct need to be absolutely precise in spelling, syntactic structure, capitalization, and practically in every other detail. No two computer program are alike and even if they look alike, the computer sees the details most people miss. Here's the think, the compiler is looking at every single character, one at a time - humans of every ilk read whole section of letters and numbers as a block of information. if you've seen those "cn u rd ths" posts on facebook then you know what I mean. We inherently see the similarities and assume they are the same. Now, everything someone says, "I copied it exactly," or "I typed it the same as they did," I suspect they missed something. What they don't understand, as I explained above, they are different and the computer sees it.
  6. Me neither, I just followed the instructions on setting up a Forge project and I have no problems. Gradle manages the library dependencies and sources file locations automatically unless some fudges with the [Configure Build Path>] options.
  7. SureenInk, Busti is referring to the Forge OreDictionary (i believe). If you are creating new ores, you would do well to register them in the Ore registry so other mods can use them in recipes, too. Or simply not have a conflict about it when there are more than 1 lead ores in the game.
  8. Well, that other guy's code is crashing in the Preinit event handler. Since, it dies and never returns it causes you to crash. I see you are also experiencing a different crash now. Post the logs and I'll try to help.
  9. Yes, but you said this. That will not work in any environment, obfuscated or not, should Forge not be installed. Hence, the try catch. If you want to work within the environment as provided, use the provided API for command handlers.
  10. I use this, private static final Logger logger = LogManager.getFormatterLogger(MODID);
  11. Only on ClientSide: [*]player's World instance [*]the player instance [*]inventory slot # [*]true is above is the currently selected item
  12. First, that event is not cancellable. The item is crafted after the event returns. Second, the onPickupFromSlot() method that fires that event also decrements the stacksize by 1 for every item in the craftMatrix, so you need to use 1 less. Third, always call craftMatrix.getSizeInventory rather than using a hard coded number like 10 for your loop. You will sometimes get ArrayIndexOutOfBounds exception and crash otherwise. Last, I don't see you using the ICrafting interface. Of course, that may be too hard, but it is the only way to alter the crafting matrix (especially from the server side.)
  13. try / catch block around the code and your good as gold.
  14. According to your crashlog, Item.getIdFromItem(this.field_151002_e) is returning with a -1 for the block ID for that ITEM. So, yeah your item in not registered with a block properly.
  15. I concur with what TGG said, there are better ways to go about inventing the wheel that is already on cars, trucks, wagons, and moon rovers. Why not use what's already in Minecraft rather than risk killing servers, clients, breaking savegames, and many other hazards?
  16. This is how I made my recipes. The word oreXxxxx is normally used for different ores. So, mine is checking for anything that matches my metals: oreTin, oreZinc, oreCopper, oreLead, oreNickle, etc. and using them to make similar recipes.
  17. That repeatChop method is highly recursive and is prone to repeatedly check the same nine blocks up to 3 times each. Doing 18 times the amount of work it needs to.
  18. I knew you'd get it. Always look over the code you use to see what might not apply to you specific case and you win.
  19. Get the entity doing the damage and find the weapon they hold: [*]Get the type of damage [*]If damage instanceof EntityDamageSource [*] get ((EntityDamageSource)damageSource).getEntity().getHeldItem() [*] check for enchantments Read the nbtTagList from here: public NBTTagList ItemStack#getEnchantmentTagList() If the list has elements, they will be the enchantments
  20. It looks like your code is correct (which is not true, of course). The only guesses I can make is you have more than one ItemID class in different packages, and you import the wrong one.
  21. Well, to me it looks like your itemID's did not get set to the proper values, but you didn't include that code. Sorry, I cannot help you without knowing how that codes works (or in this case doesn't work.)
  22. That's nice of you to not bother learning how to code. I hope someone cares, because I give up on you.
  23. Would you explain which ones, please? I only have this in my run config right now: --tweakClass cpw.mods.fml.common.launcher.FMLTweaker I suspect that I wasn't reading the board closely enough and missed it somewhere. [Never mind, sorry. I figured it out.]
  24. That file is normally automatically resolved to the home/.gradle/cache file where gradle installs it. Why is it looking somewhere else now?
  25. what is the class net.minecraft.src.Start for? I don't have that in my version. Is it something that you put in for coremods?

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.