larsgerrits
Members-
Posts
3462 -
Joined
-
Last visited
-
Days Won
17
Everything posted by larsgerrits
-
http://mcforge.readthedocs.io/en/latest/gettingstarted/ Follow this tutorial, this is all you need to start modding.
-
[1.11.2] Custom Fertiliser not working (unsolved)
larsgerrits replied to hhggtg3279's topic in Modder Support
Proper formatting, especially indentation. -
Post the logs.
-
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.
-
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?
-
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 .
-
2 questions: do you understand and know what each line in your code does? If not, do you at least know Java?
-
[1.10.2] {Solved} Creative Tab Organization
larsgerrits replied to EscapeMC's topic in Modder Support
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. -
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).
-
[1.11.2] Crash when trying to open my custom gui. [Solved]
larsgerrits replied to tompinn23's topic in Modder Support
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. -
[1.11]Simplest way to render a "tint" over some block.
larsgerrits replied to iAmRinzler's topic in Modder Support
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. -
[1.11.2 | Solved] Crashes on Right Clicking a Block
larsgerrits replied to Tony_The_Tiger's topic in Modder Support
Instead of using an ItemStack[] , use a NonNullList<ItemStack> . -
[1.10.2/1.11] Change Tool Durability Based On Dimension
larsgerrits replied to LogicTechCorp's topic in Modder Support
IItemPropertyGetter only declares a single, client-side-only method. I don't think that'll work. I should look better... -
1.7.10 is no longer supported by Forge.
-
Forge 1.11.2 crashing bug. Please help!
larsgerrits replied to Maleque's topic in Support & Bug Reports
That is not what the EAQ said. You have to open splash.properties and set "enabled" to false . -
[1.10.2/1.11] Change Tool Durability Based On Dimension
larsgerrits replied to LogicTechCorp's topic in Modder Support
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. -
Forge 1.11.2 crashing bug. Please help!
larsgerrits replied to Maleque's topic in Support & Bug Reports
Disable the loading screen as described in the EAQ. -
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.
-
[1.11.2]Changing scale on child box model
larsgerrits replied to TheMattyBoy's topic in Modder Support
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. -
Re: Forge 1.10.2-12.18.2.2102 install trouble (MDK)
larsgerrits replied to iamaapro's topic in Support & Bug Reports
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. -
My Modpack Crashed Upon Loading World. Help Plz!
larsgerrits replied to mason12041204's topic in Support & Bug Reports
1.7.10 is no longer supported by Forge. -
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.
-
Forge 1.11.2 crashing bug. Please help!
larsgerrits replied to Maleque's topic in Support & Bug Reports
Disable the loading screen as described in the EAQ. -
As far as I remember, the default FontRenderer doesn't handle bigger fonts. To make your font bigger, use GL11.glScalef(scaleX,scaleY,scaleZ) .
-
[1.10.2] [SOLVED] Event stops working after relog
larsgerrits replied to bongotezz's topic in Modder Support
No, this is basic Java. You can't compare Strings using == .