Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. 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.
  2. 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 .
  3. Show the block model JSON file.
  4. 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.
  5. 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.
  6. 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.
  7. 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 .
  8. 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.
  9. What do you not understand? We are not going to write code for you for free.
  10. 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.
  11. [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.
  12. Where do you call the registering of the world generator?
  13. 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 .
  14. Can you post the log where it tells you what the issue is?
  15. You can use IBlockAccess for most of the World stuff related to blocks.
  16. 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.
  17. Have you actually tried a TESR? Only a few of those around shouldn't impact your FPS a lot.
  18. 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.
  19. You forgot your modid between assets and models: (.../assets/modid/models/...).
  20. Read the EAQ, which tells you how to solve it and NOT to use an ancient version of Minecraft.
  21. 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)
  22. This topic has been moved to Modder Support. [iurl]http://www.minecraftforge.net/forum/index.php?topic=42673.0[/iurl]
  23. It would be nice if we actually knew the problem...
  24. Don't make a coremod. What are you trying to do?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.