Everything posted by larsgerrits
-
Not able to use the MDKExample
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)
Proper formatting, especially indentation.
-
failed to log in?
Post the logs.
-
hey i am having a problem running the client version of the newer version
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.
-
Registering objects during runtime?
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?
-
[1.11] Sharing Energy Issue
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 .
-
[1.10]Double Furnace
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
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.
-
[1.10.2] Render fluid level in tank with TESR
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]
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.
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
Instead of using an ItemStack[] , use a NonNullList<ItemStack> .
-
[1.10.2/1.11] Change Tool Durability Based On Dimension
IItemPropertyGetter only declares a single, client-side-only method. I don't think that'll work. I should look better...
-
server won't start
1.7.10 is no longer supported by Forge.
-
Forge 1.11.2 crashing bug. Please help!
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
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!
Disable the loading screen as described in the EAQ.
-
[1.11.2] Structure crash
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
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)
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!
1.7.10 is no longer supported by Forge.
-
[1.10.2] Apply potion effect on sword hit.
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!
Disable the loading screen as described in the EAQ.
-
[1.8] Grabbing stats from scoreboard
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
No, this is basic Java. You can't compare Strings using == .
IPS spam blocked by CleanTalk.