Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. http://mcforge.readthedocs.io/en/latest/gettingstarted/ Follow this tutorial, this is all you need to start modding.
  2. Proper formatting, especially indentation.
  3. Post the logs.
  4. It looks like several files can't be saved correctly, which makes me think you don't have write access to that folder. Also, your file structure is weird. These are 2 lines from the log: [21:37:19] [Client thread/ERROR] [FML]: Attempting to load configuration from C:\Users\Syndra\AppData\Roaming\.minecraft\instances\1.11.2\config, which is not a directory [21:37:18] [Client thread/WARN]: Unable to create resourcepack folder: C:\Users\Syndra\AppData\Roaming\.minecraft\instances\1.11.2 \resourcepacks Some of the have 1.11.2 with a space in the folder name, and some without. This may also help cause the issue.
  5. This isn't possible right now, and most likely never will be, due to some restraints in the Minecraft code base. Why do you want to register blocks at runtime?
  6. The way you are using a Map<TileEntity, EnumFacing> is not good. Everytime you call HashMap#put , it overrides the previous value for that key. So if a TileEntity has multiple sides, only the last will retain in the Map . for(TileEntity tileEntity : energyUsers.keySet()) { for(EnumFacing facing : energyUsers.values()) { if(tileEntity.hasCapability(CapabilityEnergy.ENERGY, facing)) { IEnergyStorage cap = tileEntity.getCapability(CapabilityEnergy.ENERGY, facing); if(cap != null) { handleEnergy(tileEntity, cap); } } } } This is wrong, especially the for loops. You go through each TileEntity , then go through every side in the Map (hint: only the last from each TileEntity ). This doesn't make sense. Just have a List<TileEntity> to save them, then go through each side when in the part of the code when you need the energy from the TileEntity .
  7. 2 questions: do you understand and know what each line in your code does? If not, do you at least know Java?
  8. The items in the creative tab are sorted by their ID. If you register an Item before another one, it's listed before the other one. So you have to make sure your Items are registered in order. Note: if you already have a test world with those Items, they won't be sorted properly, because the previous IDs are already used. Make a new world to see the proper result.
  9. You are using integer division everywhere ( 12/16 ), which will always be rounded down (12/16 = 0.75 = 0). To do proper division with decimals, use floats (12F/16F = 0.75F).
  10. ItemStack s can't be null anymore, so you'll have to replace that with ItemStack.EMPTY . You'll also have to use a NonNullList<ItemStack> instead of an ItemStack[] to avoid null entries in your array.
  11. It does. If the models of other blocks don't have the tintindex set, it won't call IBlockColor#colorMultiplier , thus not be able to handle every block in Minecraft and other mods without resource packs.
  12. Instead of using an ItemStack[] , use a NonNullList<ItemStack> .
  13. IItemPropertyGetter only declares a single, client-side-only method. I don't think that'll work. I should look better...
  14. 1.7.10 is no longer supported by Forge.
  15. That is not what the EAQ said. You have to open splash.properties and set "enabled" to false .
  16. I don't think there's currently a way to do that, and if there is, it would most likely use an IItemPropertyGetter . I haven't worked with them, so I don't know if it's possible at all.
  17. Disable the loading screen as described in the EAQ.
  18. Caused by: java.lang.RuntimeException: StructureComponent "com.Egietje.degeweldigemod.world.gen.StructureCheeseVillagePieces$Start" missing ID Mapping, Modder see MapGenStructureIO at net.minecraft.world.gen.structure.StructureComponent.createStructureBaseNBT(StructureComponent.java:54) ~[structureComponent.class:?] Seems pretty obvious to me, go look at MapGenStructureIO , you have to register your component.
  19. If you want to scale a certain part of a model, you have to scale it, render it and then set the scale back to the original for the other parts not to be scaled.
  20. java.lang.NoClassDefFoundError: codechicken/core/launch/CodeChickenCorePlugin at codechicken.nei.asm.NEICorePlugin.getASMTransformerClass(NEICorePlugin.java:17) Please read the installation instructions for the mods you want to install. NEI requires CodeChickenCore to run. Edit: please make your own thread next time, as this is completely unrelated from the other thread.
  21. 1.7.10 is no longer supported by Forge.
  22. You should call EntityLivingBase#addPotionEffect on an instance of EntityLivingBase . You have to parameters of type EntityLivingBase , the first one being the target and the second being the attacker. You decide which one to use.
  23. Disable the loading screen as described in the EAQ.
  24. As far as I remember, the default FontRenderer doesn't handle bigger fonts. To make your font bigger, use GL11.glScalef(scaleX,scaleY,scaleZ) .
  25. No, this is basic Java. You can't compare Strings using == .
×
×
  • Create New...

Important Information

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