Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Thor597

Forge Modder
  • Joined

  • Last visited

Everything posted by Thor597

  1. I have, doesnt work. all the other recipes work...
  2. 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
  3. 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)
  4. implements ITextureProvider is automatically on items and blocks, you just need: public String getTextureFile() { return"/Your/path/to/your/texturefile.png"; }
  5. 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)?
  6. The risucraft people are generally arrogant and doesnt tolerate anyone that isnt pro at java.
  7. 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?
  8. Uhh, what GUI should I return then? And how does this help my furnace?
  9. No-one?
  10. 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; } }
  11. You need a server and client proxy. I have them
  12. Ugh, this is a pain. Kinda expecting Lex to reply with an obvious fix that makes me feel stupid
  13. And if I remove UltraOre from the mod, i get the exact same error on line 60, which is GFurnaceIdle
  14. Some Help please? I Need to release my mod soon
  15. ThorMod_UltraOre
  16. Just edited last post saying what it is exactly just in case
  17. 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
  18. Notify me what classes you need to have a look at!
  19. 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:
  20. 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
  21. i defined it above, anyway how do i use the nPlayBackgroundMusicEvent? thanks
  22. 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")); } }

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.