-
[1.12.2] Smelting Recipes for Ore Variants
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 .
-
[1.12.2] Smelting Recipes for Ore Variants
Well, seppuku is the only way to go for me now... I realized, that I forgot the EventHandler for Init...
-
[1.12.2] Smelting Recipes for Ore Variants
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.
-
[1.12.2] Smelting Recipes for Ore Variants
Thank you for the answer and explanation. I'll try it my getPickBlock() method of the base class and report in later.
-
[1.12.2] Smelting Recipes for Ore Variants
Here is an example: GameRegistry.addSmelting(BlockInit.ore_world.getDefaultState().withProperty(BlockOres.VARIANT, EnumHandler.EnumType.tin).getBlock(), new ItemStack(ItemInit.tiningot), 1.0f);
-
[1.12.2] Smelting Recipes for Ore Variants
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
-
[1.12.2] Smelting Recipes for Ore Variants
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
-
[1.12.2] Smelting Recipes for Ore Variants
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?
-
Problem with JAVA_HOME (Win10)
That was the problem. Thank you for the fast and competent help.
-
Problem with JAVA_HOME (Win10)
-
Problem with JAVA_HOME (Win10)
OK I'll try, report will come in few minutes
-
Problem with JAVA_HOME (Win10)
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.
IPS spam blocked by CleanTalk.