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.

larsgerrits

Members
  • Joined

  • Last visited

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. 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.
  4. 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?
  5. 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 .
  6. 2 questions: do you understand and know what each line in your code does? If not, do you at least know Java?
  7. 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.
  8. 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).
  9. 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.
  10. 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.
  11. Instead of using an ItemStack[] , use a NonNullList<ItemStack> .
  12. IItemPropertyGetter only declares a single, client-side-only method. I don't think that'll work. I should look better...
  13. 1.7.10 is no longer supported by Forge.
  14. That is not what the EAQ said. You have to open splash.properties and set "enabled" to false .
  15. 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.
  16. Disable the loading screen as described in the EAQ.
  17. 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.
  18. 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.
  19. 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.
  20. 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.
  21. Disable the loading screen as described in the EAQ.
  22. As far as I remember, the default FontRenderer doesn't handle bigger fonts. To make your font bigger, use GL11.glScalef(scaleX,scaleY,scaleZ) .
  23. No, this is basic Java. You can't compare Strings using == .

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.