Everything posted by larsgerrits
-
[1.9.4] Using the Mekanism API
1) make libs folder along source folder. 2) put Mekanism jar in the libs folder. 3) run gradlew setupDecompWorkspace eclipse This makes the Mekanism jar available to you as a modder. The user will get a crash if they install your mod without Mekanism, but since it is an add-on, that doesn't matter. They'll install your mod just like every other mod. You don't need to change your build.gradle at all.
-
[1.9.4] Using the Mekanism API
The Mekanism API is broken, so you'd have to make your mod a hard dependency and put the Mekanism jar inside the libs/ folder and rerun gradlew setupDecompWorkspace eclipse .
-
BlockStates: type with invalidly named value: DEFAULT
Show the block model JSON file.
-
[1.10.2-12.18.2.2107] ItemCraftedEvent issues
When you shift-click the result from crafting, PlayerEvent.ItemCraftedEvent only gets called once with an ItemStack with a stack size of more than 1. Either try setting the max stack size to 1 or add some code in that method to go over the stack size and do it per Item , instead of more than 1.
-
BlockStates: type with invalidly named value: DEFAULT
Caused by: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model modtest:block/blockmachine with loader VanillaLoader.INSTANCE, skipping ... Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 5 column 6 In your blockmachine JSON, on line 5 column 6, you are probably a missing comma or closing bracket. If you can't figure it out, post your blockmachine JSON file.
-
[1.10.2] [Solved] Custom leaves causes server crash
java.lang.IllegalArgumentException: Cannot get property PropertyBool{name=check_decay, clazz=class java.lang.Boolean, values=[true, false]} as it does not exist in BlockStateContainer{block=em:leaves_poplar, properties=[]} Seems pretty obvious to me: you should add the leaf properties to your leaf block. Look at BlockOldLeaf or [/code]BlockNewLeaf[/code] for reference.
-
Ore/World Generation Help {SOLVED}
So what should I exactly do to fix this problem of mine? Make it import java.util.Random; import com.escapemc.teammadnessmod.init.TeamMadnessModBlocks; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkGenerator; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraftforge.fml.common.IWorldGenerator; public class world_gen implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.getDimension()) { Or where do I add @Override? The fifth parameter isn't of type IChunkProvider , but it should be IChunkGenerator .
-
BlockStates: type with invalidly named value: DEFAULT
Your getName() can't return an uppercase name, as they are not allowed. However, you do pass in a name variable to use, but if you look closely, you never use it: @Override public String getName(){ return this.name(); } You are returning the returned value of the name() method instead of returning the name field.
-
keep item after recipe
What do you not understand? We are not going to write code for you for free.
-
Ore/World Generation Help {SOLVED}
You have 2 generate methods in your class. You implemented everything in the wrong one, you should be using the one with @Override above the method.
-
[1.10.2] Custom slabs not rendering
[16:53:21] [Client thread/ERROR] [FML]: Could not load vanilla model parent 'em:block/slab_half_maple' for 'net.minecraft.client.renderer.block.model.ModelBlock@6e767943 There's an error in your JSON file, show it.
-
Ore/World Generation Help {SOLVED}
Where do you call the registering of the world generator?
-
[SOLVED] [1.9.4] Preserving RF
Yes.
-
keep item after recipe
Call setContainerItem for returning a simple Item without any properties (metadata, NBT). Override getContainerItem(ItemStack) and hasContainerItem(ItemStack) inside your Item class to return an ItemStack which can have different properties based on the original ItemStack .
-
[1.10.2] Custom slabs not rendering
Can you post the log where it tells you what the issue is?
-
[SOLVED] [1.9.4] Preserving RF
You can use IBlockAccess for most of the World stuff related to blocks.
-
[SOLVED] [1.9.4] Preserving RF
On block break, save the NBT of the TileEntity to a custom tag inside the ItemStack dropped, and on block place, set the NBT of the TileEntity to the custom tag of the ItemStack held.
-
[1.10.2] Rotate block-model by small degrees -without- TESR?
Have you actually tried a TESR? Only a few of those around shouldn't impact your FPS a lot.
-
[1.10.2] How to change ItemStack item?
Mojang uses @Deprecated to mark methods you, as a modder, shouldn't call yourself but rather another version e.g. one in IBlockState . You are still able to override those methods.
-
set model to items
You forgot your modid between assets and models: (.../assets/modid/models/...).
-
Forge Crashes on loading screen or blank minecraft menu.
Read the EAQ, which tells you how to solve it and NOT to use an ancient version of Minecraft.
-
Setting my project
We can't help if we don't have your log (either in a spoiler tag of code tag) and your code (inside a code tag)
-
MOVED: Creating an item with eclipse: Not working
This topic has been moved to Modder Support. [iurl]http://www.minecraftforge.net/forum/index.php?topic=42673.0[/iurl]
-
Creating an item with eclipse: Not working
It would be nice if we actually knew the problem...
-
[1.10.2] ASM transformer crashes in normal but not in dev environment
Don't make a coremod. What are you trying to do?
IPS spam blocked by CleanTalk.