Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

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. Your method has two { at the beginning.
  6. @Tschipp Under what conditions are you rendering, is this for a block that your mod makes or just as a placement identifier?
  7. 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 }
  8. 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.
  9. 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.
  10. Yes I understand, and that is why I said this.
  11. Your registerWorldChunkManager doesn't set the worldChunkMgr and it doesn't call the super which does set it. You have commented them out.
  12. 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.
  13. Please don't necropost and make your own topic. This thread will be locked by a moderator later.
  14. 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.
  15. You forgot the comma at the end of your parent tag.
  16. Where ever you want...anywhere in your workspace. You can make a class anywhere you want and extend or implement what ever you want.
  17. I'm gonna need more information than "I need help", post your code/what you have. And what you specifically need help with.
  18. 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.
×
×
  • Create New...

Important Information

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