larsgerrits
Members-
Posts
3462 -
Joined
-
Last visited
-
Days Won
17
Everything posted by larsgerrits
-
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.
-
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
larsgerrits replied to BeardlessBrady's topic in Modder Support
Show the block model JSON file. -
[1.10.2-12.18.2.2107] ItemCraftedEvent issues
larsgerrits replied to VapourDrive's topic in Modder Support
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
larsgerrits replied to BeardlessBrady's topic in Modder Support
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
larsgerrits replied to Erfurt's topic in Modder Support
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. -
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
larsgerrits replied to BeardlessBrady's topic in Modder Support
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. -
What do you not understand? We are not going to write code for you for free.
-
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.
-
[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.
-
Where do you call the registering of the world generator?
-
Yes.
-
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 .
-
Can you post the log where it tells you what the issue is?
-
You can use IBlockAccess for most of the World stuff related to blocks.
-
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?
larsgerrits replied to Matryoshika's topic in Modder Support
Have you actually tried a TESR? Only a few of those around shouldn't impact your FPS a lot. -
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.
-
You forgot your modid between assets and models: (.../assets/modid/models/...).
-
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)
-
Creating an item with eclipse: Not working
larsgerrits replied to HDCREEPS's topic in Modder Support
It would be nice if we actually knew the problem...