
Thor597
Forge Modder-
Posts
268 -
Joined
-
Last visited
Everything posted by Thor597
-
I have, doesnt work. all the other recipes work...
-
Ok I've gotten it to work, but I have one consern: this recipe wont work: ThorMod_GoldronFurnaceRecipes.smelting().addSmelting(Block.obsidian.blockID, new ItemStack(ThorMod.obIngot, 1), 0.2F); And It doesnt make any sense
-
Also, do I register the ClientProxy or the CommonProxy, preInit or Init, and btw the code doesnt work (And how can I do it with multiple furnaces)
-
implements ITextureProvider is automatically on items and blocks, you just need: public String getTextureFile() { return"/Your/path/to/your/texturefile.png"; }
-
Uh, so how do I use the registerGuiHandler and the new GuiHandler class then? Please help because the last thing didnt work, code: ClientProxy package thormod; import net.minecraft.src.*; import net.minecraftforge.client.MinecraftForgeClient; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Side; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.TickRegistry; public class ThorMod_ClientProxy extends ThorMod_CommonProxy { @Override public void registerRenderInformation() { MinecraftForge.EVENT_BUS.register(new ThorMod_SoundHandler()); GameRegistry.registerCraftingHandler(new ThorMod_CraftingHandler()); MinecraftForgeClient.preloadTexture("/Thormod/blocks.png"); MinecraftForgeClient.preloadTexture("/Thormod/items.png"); RenderingRegistry.registerEntityRenderingHandler(ThorMod_EntitySteveMonkey.class, new RenderBiped(new ModelBiped(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(ThorMod_EntityThor.class, new ThorMod_RenderThor(new ThorMod_ModelThor(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(ThorMod_MadgeniumArrow.class, new RenderArrow()); RenderingRegistry.registerEntityRenderingHandler(ThorMod_EntityEmeraldPrimed.class, new ThorMod_RenderEmeraldBomb()); TickRegistry.registerTickHandler(new ThorMod_TickHandlerClient(), Side.CLIENT); TickRegistry.registerTickHandler(new ThorMod_TickHandlerCommon(), Side.SERVER); } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { ThorMod_TileEntityGoldronFurnace var10 = (ThorMod_TileEntityGoldronFurnace)world.getBlockTileEntity(x, y, z); return new ThorMod_ContainerGoldronFurnace(player.inventory, var10); } } CommonProxy: package thormod; import net.minecraft.src.*; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.network.IGuiHandler; import cpw.mods.fml.common.registry.GameRegistry; public class ThorMod_CommonProxy implements IGuiHandler { /** * Client side only register stuff... */ public void registerRenderInformation() { } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { ThorMod_TileEntityGoldronFurnace var10 = (ThorMod_TileEntityGoldronFurnace)world.getBlockTileEntity(x, y, z); return new ThorMod_GUIGoldronFurnace(player.inventory, var10); } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { return null; } } also how do I have multiple(I have a couple furnaces)?
-
The risucraft people are generally arrogant and doesnt tolerate anyone that isnt pro at java.
-
I changed it to: byte[] var3 = new byte[32768]; this.caveGenerator.generate(this, this.worldObj, par1, par2, var3); still nothing, but when I try it in the end with endstone it works?
-
Uhh, what GUI should I return then? And how does this help my furnace?
-
In the main file I have this under my constructor: @SidedProxy ( clientSide = "thormod.ThorMod_ClientProxy", serverSide = "thormod.ThorMod_CommonProxy" ) public static ThorMod_CommonProxy proxy; @Instance public static ThorMod instance; @PreInit public void preInit(FMLPreInitializationEvent event) { proxy.registerRenderInformation(); } And these are the files: ClientProxy package thormod; import net.minecraft.src.*; import net.minecraftforge.client.MinecraftForgeClient; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Side; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.TickRegistry; public class ThorMod_ClientProxy extends ThorMod_CommonProxy { @Override public void registerRenderInformation() { MinecraftForge.EVENT_BUS.register(new ThorMod_SoundHandler()); GameRegistry.registerCraftingHandler(new ThorMod_CraftingHandler()); MinecraftForgeClient.preloadTexture("/Thormod/blocks.png"); MinecraftForgeClient.preloadTexture("/Thormod/items.png"); RenderingRegistry.registerEntityRenderingHandler(ThorMod_EntitySteveMonkey.class, new RenderBiped(new ModelBiped(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(ThorMod_EntityThor.class, new ThorMod_RenderThor(new ThorMod_ModelThor(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(ThorMod_MadgeniumArrow.class, new RenderArrow()); RenderingRegistry.registerEntityRenderingHandler(ThorMod_EntityEmeraldPrimed.class, new ThorMod_RenderEmeraldBomb()); TickRegistry.registerTickHandler(new ThorMod_TickHandler(), Side.CLIENT); } } CommonProxy package thormod; import net.minecraft.src.*; import net.minecraft.src.EntityPlayer; import net.minecraft.src.World; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.network.IGuiHandler; import cpw.mods.fml.common.registry.GameRegistry; public class ThorMod_CommonProxy implements IGuiHandler { /** * Client side only register stuff... */ public void registerRenderInformation() { } @Override public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { // TODO Auto-generated method stub return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { // TODO Auto-generated method stub return null; } }
-
You need a server and client proxy. I have them
-
Ugh, this is a pain. Kinda expecting Lex to reply with an obvious fix that makes me feel stupid
-
And if I remove UltraOre from the mod, i get the exact same error on line 60, which is GFurnaceIdle
-
Some Help please? I Need to release my mod soon
-
Just edited last post saying what it is exactly just in case
-
Ok, there is a lot in this file but i will post it nonetheless it says: public static final Block UltraniteOre = new ThorMod_UltraOre(170, 0).setBlockName("ThorUltraniteOre").setHardness(13F).setResistance(5F).setCreativeTab(CreativeTabs.tabBlock); also I put a thing specifying exactly where it is in code aswell
-
Notify me what classes you need to have a look at!
-
I finally fixed a big error and my mod finally loaded on the client, then i put it in the mods folder in my server and I got this error:
-
on generating
-
Hello, I created a furnace in 1.2.5 and I just updated everything to the latest furnace code. I even moved my GUI file into where the guifurnace is. But I dont get anything when I right click it, nothing happens, code: Mod File: Block Class: Tile Entity: Gui File Container: Slot: Recipes class: Please Help
-
i defined it above, anyway how do i use the nPlayBackgroundMusicEvent? thanks
-
So if i want music in my dimension i put this in my soundhandler @ForgeSubscribe @SideOnly(Side.CLIENT) public void onSound(SoundLoadEvent event) { try { if(this.world.provider.worldType == 23) { event.manager.soundPoolMusic.addSound("thormod/netromWood2.wav", mod_TheThorMod.class.getResource("/Sounds/netromWood2.wav")); } }
-
No help on this?