Jump to content

supreme marshal

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by supreme marshal

  1. Yes that make sens. I tried with "Server" as well but it didn't solve my problem. My block still don't burn in the furnace.
  2. I have the same problem, I created some custom block but when I create a Smelting Recipe, the block won't burn in the furnace. But I couldn't fix my problem like you did.
  3. This is my whole RegistryHandler class: package com.SupremeMarshal.MoreToolsTierMod.util.handlers; import com.SupremeMarshal.MoreToolsTierMod.init.ModBlocks; import com.SupremeMarshal.MoreToolsTierMod.init.ModItems; import com.SupremeMarshal.MoreToolsTierMod.util.IHasModel; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.world.storage.loot.functions.Smelt; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @EventBusSubscriber public class RegistryHandler { public static void Client() { RecipeHandler.registerSmelting(); } public static void Common() { RecipeHandler.registerSmelting(); } @SubscribeEvent public static void onItemRegister(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll(ModItems.ITEMS.toArray(new Item[0])); } @SubscribeEvent public static void onBlockRegister(RegistryEvent.Register<Block> event) { event.getRegistry().registerAll(ModBlocks.BLOCKS.toArray(new Block[0])); } @SubscribeEvent public static void onModelRegister(ModelRegistryEvent event) { for(Item item : ModItems.ITEMS) { if(item instanceof IHasModel) { ((IHasModel)item).registerModels(); } } for(Block block : ModBlocks.BLOCKS) { if(block instanceof IHasModel) { ((IHasModel)block).registerModels(); } } } }
  4. public static void Client() { RecipeHandler.registerSmelting(); } public static void Common() { RecipeHandler.registerSmelting(); } Like this? I feel like it should be a bit more complicated than this. Is there something I need to implement in my proxy class? ClientProxy and CommonProxy.
  5. I think my problem is on registering the Smelting Recipe, but I have no idea how to do it properly.
  6. Good to know but that doesn't solve my problem. I am trying to solve this problem for over 6 hours now..
  7. I get some error log when I test the game: [17:35:23] [main/ERROR] [FML]: Parsing error loading recipe ms:rune_ingot_smelting com.google.gson.JsonSyntaxException: Unknown recipe type: minecraft:smelting
  8. I only play on client version anyways. So can you help me for my problem?
  9. On RegistryHandler? I have but I'm not sure I did it correctly. package com.SupremeMarshal.MoreToolsTierMod.util.handlers; import com.SupremeMarshal.MoreToolsTierMod.init.ModBlocks; import com.SupremeMarshal.MoreToolsTierMod.init.ModItems; import com.SupremeMarshal.MoreToolsTierMod.util.IHasModel; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.world.storage.loot.functions.Smelt; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @EventBusSubscriber public class RegistryHandler { //Calling RecipeHandler.registerSmelting public static void Client() { RecipeHandler.registerSmelting(); } @SubscribeEvent public static void onItemRegister(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll(ModItems.ITEMS.toArray(new Item[0])); } @SubscribeEvent public static void onBlockRegister(RegistryEvent.Register<Block> event) { event.getRegistry().registerAll(ModBlocks.BLOCKS.toArray(new Block[0])); } I think that is what you mean by calling RecipeHandler.registerSmelting?
  10. I have no idea how to make it work, I tried playing with the codes for a couples of hours now. Here is my codes: package com.SupremeMarshal.MoreToolsTierMod.util.handlers; import com.SupremeMarshal.MoreToolsTierMod.init.ModBlocks; import com.SupremeMarshal.MoreToolsTierMod.init.ModItems; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.common.registry.GameRegistry; public class RecipeHandler { public static void registerSmelting() { GameRegistry.addSmelting(new ItemStack(ModBlocks.RUNE_ORECOAL_BLOCK ,1 ,0), new ItemStack(ModItems.RUNE_INGOT, 1), 1.0f); } } Or is it possible to create a Smelting recipe with JSON file? I hope I get some help! Also, do I need to do a Register thing for this class? (I'm still new in coding Java)
×
×
  • Create New...

Important Information

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