This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
GameRegistry.addRecipe(new ItemStack(Item.gunpowder, 1), new Object[] { "SSS", "SFS", "SSS", Character.valueOf('S'), Block.sand, Character.valueOf('F'), Item.flint });
package craftablepackage; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "Craftable", name = "Craftable Stuff", version = "v1.0") @NetworkMod(clientSideRequired = true, serverSideRequired = true) public class mod_craftables { @PreInit public void initConfig(FMLPreInitializationEvent fpe) { } @Init public void load(FMLPreInitializationEvent fie) { registeringBlocks(); itemNames(); recipes(); smelting(); } public void registeringBlocks() { //BLOCKS } public void itemNames() { } public void recipes() { GameRegistry.addRecipe(new ItemStack(Item.gunpowder, 1), new Object[] { "SSS", "SFS", "SSS", Character.valueOf('S'), Block.sand, Character.valueOf('F'), Item.flint }); } public void smelting() { } }
2013-01-26 09:38:14 [INFO] [ForgeModLoader] Forge Mod Loader version 4.7.22.539 for Minecraft 1.4.7 loading 2013-01-26 09:38:21 [INFO] [STDOUT] 27 achievements 2013-01-26 09:38:21 [INFO] [STDOUT] 210 recipes 2013-01-26 09:38:22 [INFO] [STDOUT] Setting user: Player227, - 2013-01-26 09:38:22 [INFO] [STDERR] Client asked for parameter: server 2013-01-26 09:38:22 [INFO] [STDOUT] LWJGL Version: 2.4.2 2013-01-26 09:38:26 [INFO] [ForgeModLoader] Attempting early MinecraftForge initialization 2013-01-26 09:38:26 [INFO] [STDOUT] MinecraftForge v6.6.0.510 Initialized 2013-01-26 09:38:26 [INFO] [ForgeModLoader] MinecraftForge v6.6.0.510 Initialized 2013-01-26 09:38:27 [INFO] [STDOUT] Replaced 84 ore recipies 2013-01-26 09:38:27 [INFO] [ForgeModLoader] Completed early MinecraftForge initialization 2013-01-26 09:38:28 [INFO] [ForgeModLoader] Searching C:\Users\Maize\Documents\SetUp\jars\mods for mods 2013-01-26 09:38:39 [INFO] [ForgeModLoader] Attempting to reparse the mod container bin 2013-01-26 09:38:42 [INFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-01-26 09:38:43 [SEVERE] [ForgeModLoader] The mod Craftable appears to have an invalid method annotation Init. This annotation can only apply to methods with argument types [class cpw.mods.fml.common.event.FMLInitializationEvent] -it will not be called 2013-01-26 09:38:43 [INFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-01-26 09:38:46 [INFO] [STDOUT] Starting up SoundSystem... 2013-01-26 09:38:46 [INFO] [STDOUT] Initializing LWJGL OpenAL 2013-01-26 09:38:46 [INFO] [STDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-01-26 09:38:47 [INFO] [STDOUT] OpenAL initialized. 2013-01-26 09:38:48 [INFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods 2013-01-26 09:39:17 [INFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@76b45dd6) 2013-01-26 09:39:17 [INFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@76b45dd6) 2013-01-26 09:39:17 [INFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@76b45dd6) 2013-01-26 09:39:42 [INFO] [ForgeModLoader] Unloading dimension 0 2013-01-26 09:39:42 [INFO] [ForgeModLoader] Unloading dimension -1 2013-01-26 09:39:42 [INFO] [ForgeModLoader] Unloading dimension 1 2013-01-26 09:39:44 [INFO] [STDOUT] Stopping! 2013-01-26 09:39:44 [INFO] [STDOUT] SoundSystem shutting down... 2013-01-26 09:39:44 [INFO] [STDOUT] Author: Paul Lamb, www.paulscode.com
GameRegistry.addRecipe(new ItemStack(Items.gunpowder), new Object[]{ "yyy", "yxy", "yyy", 'x', Items.flint, 'y', Items.sand, });
Quote from Dayrider10»You could try this: GameRegistry.addRecipe(new ItemStack(Items.gunpowder), new Object[]{ "yyy", "yxy", "yyy", 'x', Items.flint, 'y', Items.sand, });
Here is the crafting recipe:
Here is the whole code:
And here is the eclipse console:
So if anyone can help then that would be great thanks! :3
You, sir, are awesome.