Viper283
Forge Modder-
Posts
118 -
Joined
-
Last visited
Converted
-
Gender
Male
-
URL
http://viper283.net46.net
-
Location
England
-
Personal Text
Modder And Proud!!
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Viper283's Achievements
Creeper Killer (4/8)
9
Reputation
-
you have to use the reobfuscate_srg.bat/sh. ifthat it not there, just add "--srgnames" at the end of the reobfuscate.bat/sh
-
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
-
check my github for config files, look at GenConfig and FMAConfiguration
-
try using LanguageRegistry.instance().addStringLocalization("tile.first", "first")
-
(Resolved) How to create configuration file with latest forge
Viper283 replied to thepowdertoy's topic in Modder Support
or you use cfg.getBlock("your comment", defaultValue),getInt(); -
check how i do it on my github
-
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
-
can you show some of your code (around line 445, in mod_DatMod.java) as that line is mentioned in the error log
-
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
-
Request for on how to update the players inventory.
Viper283 replied to jangofett890's topic in Modder Support
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 -
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; } }
-
Java crashes while trying to load a world testing my mod
Viper283 replied to Viper283's topic in Support & Bug Reports
if i load with 1gb it crashes explorer, if i load with 2gb it gives me the out of memory crash report -
Java crashes while trying to load a world testing my mod
Viper283 replied to Viper283's topic in Support & Bug Reports
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 -
Java crashes while trying to load a world testing my mod
Viper283 replied to Viper283's topic in Support & Bug Reports
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