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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. That's what I thought did you try what I suggested above?
  2. Posting to github will help a lot at debugging.
  3. The package is net.minecraft.block not net.minecraftforge.block It is Minecraft code, Mojang allows modding, but the only way to mod something is to interact with there code. In this case Forge provides code that you can look at, but not edit. And applies some changes though asm, and patches so you can view them.
  4. Ummm no, this should remove your error @Override public void registerItemRender(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id)); }
  5. Minecraft code
  6. Your method has two { at the beginning.
  7. @Tschipp Under what conditions are you rendering, is this for a block that your mod makes or just as a placement identifier?
  8. public class ItemExample extends Item { private int burnTime; // This is a field/variable created in a class not a local field/varaible. // You should take an int into your constructor that allows that this field is set to. // And then override getItemBurnTime and return this value }
  9. If one works for one and another works for the other one, check if the block is opaque and use the one that works for that.
  10. Probably Your IDE should be saying that this is an error because getItemBurnTime takes an ItemStack not an int. And this is a local variable instead of a class field. This should be returned in getItemBurnTime.
  11. Its ItemBlock not itemBlock.
  12. Yes I understand, and that is why I said this.
  13. Your registerWorldChunkManager doesn't set the worldChunkMgr and it doesn't call the super which does set it. You have commented them out.
  14. Your WorldProvider classes.
  15. If you were to look at GameRegistry.addFuelHandler it would point you to Item#getItemBurnTIme which is a method you need to override in your Item class.
  16. Please don't necropost and make your own topic. This thread will be locked by a moderator later.
  17. I see you have some custom Biome(s) and Dimension(s) theses are probably what is causing it. What was the last thing you did before it crashed. And based on the crash report either the WorldProvider or the ChunkManager for your Dimension is null.
  18. Does it still print the error?
  19. You forgot the comma at the end of your parent tag.
  20. Where ever you want...anywhere in your workspace. You can make a class anywhere you want and extend or implement what ever you want.
  21. Java Creating an Implementation
  22. I'm gonna need more information than "I need help", post your code/what you have. And what you specifically need help with.
  23. Merge them all into one cap.
  24. Then to do this you will want to create a custom implementation of IRecipeFactory and read a modified recipe json that applies an enchantment or multiple enchantments. And then return an IRecipe that has the result with the enchantment. And then for the creative tab Item you need to call setHasSubtypes(true) in your Items constructor. And then override getSubItems() which will add an ItemStack that has the enchantment on it, and only adds it if the creative tab matches.

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.