Jump to content

TestBaker

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by TestBaker

  1. Case closed. Thank u for the help. The only problem was the missing @EventHandler over Init. @Draco18sgetBlock() doesn't strip of the metadata, it works perfectly fine now .
  2. Well, seppuku is the only way to go for me now... I realized, that I forgot the EventHandler for Init...
  3. After multiple tries I started using vanilla items to see if the problem is with the registration. Have a look at it: vanilla in- and output, written directly inside the Init of the Main class. It doesn't work.
  4. Thank you for the answer and explanation. I'll try it my getPickBlock() method of the base class and report in later.
  5. Here is an example: GameRegistry.addSmelting(BlockInit.ore_world.getDefaultState().withProperty(BlockOres.VARIANT, EnumHandler.EnumType.tin).getBlock(), new ItemStack(ItemInit.tiningot), 1.0f);
  6. REWIND! Well, I'm now able to successfully reference my variant and Eclipse doesnt show any errors, but inGame it still doesnt work. So far I have been using the addSmelting() of the GameRegistry. FurnaceRecipes::addSmeltingRecipe(ItemStack, ItemStack, float) doesnt work
  7. Case closed, after 13(250ml) cups of coffee I realised, that I can use the .getBlock() to after the reference, to "convert" from BlockState to Block
  8. Good day fellow Modders, after some succesfull days of coding, I have run into a new problem: For my new Mod, I have created ores using variants, meaning I haven't initialized every specific ore from a basic ore-class. I just initialized a ore for the overworld and nether. The specific ores are then generated using variants. This works perfectly, the problem is about the smelting: the addSmelting method (for block) needs a block input. I have no idea how I can correctly specify my ore variant inside the method, so that it gets accepted. Maybe using the getBlockbyID method?
  9. That was the problem. Thank you for the fast and competent help.
  10. Didn't work, same error.
  11. OK I'll try, report will come in few minutes
  12. Hi there, I have already coded mods for Minecraft with my old Laptop (Win 8.1) and had no Problems setting the PATH for JAVA. Now I'm desperatly trying to set the PATH on my new computer (Windows 10 Version 1709). I set the PATH the same way I did on Win8.1, but when trying to build Gradle of the MDK, I'm getting an error. Eclipse is running fine.
×
×
  • Create New...

Important Information

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