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.

Viper283

Forge Modder
  • Joined

  • Last visited

  1. you have to use the reobfuscate_srg.bat/sh. ifthat it not there, just add "--srgnames" at the end of the reobfuscate.bat/sh
  2. it may be a copy of forges version, but it works in the exact same way, and can be used in the same manner, i only copied the code so that i can edit the file how i want, without making any changes to forge and vanilla code
  3. check my github for config files, look at GenConfig and FMAConfiguration
  4. try using LanguageRegistry.instance().addStringLocalization("tile.first", "first")
  5. or you use cfg.getBlock("your comment", defaultValue),getInt();
  6. check how i do it on my github
  7. I would like to add sticks to the list of items that leaves drop when broken, but i want to keep the mod a true forge mod (not editing base files, for those who don't know is this even possible? Thanks for reading ----------------------- viper283
  8. can you show some of your code (around line 445, in mod_DatMod.java) as that line is mentioned in the error log
  9. if your modding on mac, make a .sh file with the following contents #!/bin/bash python runtime/recompile.py "$@" python runtime/getchangedsrc.py "$@" python runtime/reobfuscate.py "$@" if your modding on windows make a .bat with the following contents @echo off runtime\bin\python\python_mcp runtime\recompile.py %* runtime\bin\python\python_mcp runtime\getchangedsrc.py %* runtime\bin\python\python_mcp runtime\reobfuscate.py %* pause this just makes it easier to distribute and you only have to run one file instead of 3
  10. if i remember correctly you can use FMLCommonHandler.getMinecraftInstance() to get it working, i haven't coded for a couple of weeks and have not used the latest version of forge, if it does not work then disregard this post
  11. i have had the same problem before, the only crash report is that java has ran out of heap space it only crashes when trying to load a world, and it only crashes with this block if i remove the getTextureFromSide(int side) method it works, should i used getBlockTextureFromSideAndMetadata(int side, int meta) the code i have used is as follows /******************************************************************************* * Copyright (c) 2012 Alchemist'. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * * Contributors: * Viper283 * Jamesc554544 * Alchemist ******************************************************************************/ package fma; import net.minecraft.src.Block; import net.minecraft.src.Material; /** * @author viper283 * */ public class ModBlocks { public static Block chalk; public static Block meta; public static Block crate; public static void initBlock() { chalk = new BlockChalk(ModIds.chalk, 5).setBlockName("chalk"); meta = new FMAMetaBlock(ModIds.meta, Material.rock); crate = new BlockCrate(ModIds.crate, 3).setBlockName("crate"); } } and for the block class /******************************************************************************* * Copyright (c) 2012 Alchemist'. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * * Contributors: * Viper283 * Jamesc554544 * Alchemist ******************************************************************************/ package fma; import net.minecraft.src.Block; import net.minecraft.src.CreativeTabs; import net.minecraft.src.Material; /** * @author viper283 * */ public class BlockCrate extends Block { /** * @param par1 * @param par2 */ public BlockCrate(int par1, int par2) { super(par1, par2, Material.wood); this.setCreativeTab(CreativeTabs.tabDeco); // TODO Auto-generated constructor stub } @Override public String getTextureFile() { return Resources.blockTextures; } @Override public int getBlockTextureFromSide(int side) { if(side == 1 || side == 5) { return 4; } return 3; } }
  12. if i load with 1gb it crashes explorer, if i load with 2gb it gives me the out of memory crash report
  13. what i meant was that explorer crashes, dunno why, but i got past that now, i did have 1gb allocated but then i allocated 2gb and it gave me the out of memory crash, it only happens through eclipse
  14. i am trying to test through eclipse not through the minecraft launcher but if you mean test my mod without forge through eclipse, i can't my mod heavily requires forge

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.