Everything posted by Lomeli12
-
[1.5] World.setBlock removed?
1.5.1 seems to have brought back .setBlock and overloads it with what used to be .setBlockMetadataWithNotify
-
[1.5]Texture help
Unfortunately even if he found it, he'll probably have questions. Look at AtomicStryker's topic, so many people simply not understanding it. http://www.minecraftforum.net/topic/1722368-15-icons-and-block-textures/
-
Installed mods?
This is what I used to check if Thaumcraft 3 is installed import cpw.mods.fml.common.Loader; public class ThaumCraftSupport { public static void isThaumInstalled() { if(Loader.isModLoaded("Thaumcraft")) { try { //Thaumcraft found, do stuff } catch(Exception e) { //Don't crash } } else {} } } Loader.isModLoaded(modID)
-
Holy Errors!
Here ya go. Based if off of Clay generation, but checks if it's in sand instead. http://paste.ubuntu.com/5623618/ Use it instead of WorldGenMinable
-
Holy Errors!
That's more than likely what's causing it. Might I suggest. private void generateSurface(World world, Random random, int chunkX,int chunkZ){ int xCoord = chunkX; int yCoord = random.nextInt(64); int zCoord = chunkZ; (new WorldGenMinable(ashtonsmod.LightSteelOre.blockID, 7)).generate(world, random, (xCoord + random.nextInt(60)), yCoord, (zCoord + random.nextInt(60))); (new WorldGenMinable(ashtonsmod.AmethystOre.blockID, 5)).generate(world, random, (xCoord + random.nextInt(60)), yCoord, (zCoord + random.nextInt(80)); }
-
Items
package mymod; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.Item; public class modItem extends Item { private String itemTexture; public modItem (int par1, String texture) { super(par1); itemTexture = texture; } @Override @SideOnly(Side.CLIENT) public void func_94581_a(IconRegister iconRegister) { iconIndex = iconRegister.func_94245_a("mymodid:"+itemTexture); } }
-
(1.5) Can't install Forge for modding correctly
Nope, still the same
-
[1.5] Why do I put the textures?
Where is the root directory? IM SO LOST I'm guessing you have your code in mcp/src/minecraft/, that is your root directory.
-
Block name issues? [solved]
Try it like this. It's how I always do it, plus it's far cleaner. public static Block genericDirt; public static Block genericOre; public static Item genericGem; public static Item genericThingy; @Init public void load(FMLInitializationEvent event) { proxy.registerRenderers(); //Blocks genericDirt = new GenericBlock(500, Material.rock).setUnlocalizedName("genericDirt"); genericOre = new GenericOre(501, Material.iron).setUnlocalizedName("genericOre"); GameRegistry.registerBlock(genericDirt, "Generic Dirt"); GameRegistry.registerBlock(genericOre, "Generic Ore"); LanguageRegistry.addName(genericDirt, "Generic Dirt"); LanguageRegistry.addName(genericOre, "Generic Ore"); MinecraftForge.setBlockHarvestLevel(genericDirt, "pickaxe", 0); MinecraftForge.setBlockHarvestLevel(genericOre, "pickaxe", 3); //items genericGem = new GenericItem(5000).setUnlocalizedName("genericGem"); genericThingy = new GenericThingy(5001).setUnlocalizedName("genericThingy"); LanguageRegistry.addName(genericGem, "Generic Gem"); LanguageRegistry.addName(genericThingy, "Generic Thingy"); }
-
Preinit errors
Fixed with latest version of forge.
-
Preinit errors
So, I continuously get this error involving the preinit and configuration with my mod ever since I've updated my mod for Minecraft 1.5 Mod Source: https://github.com/Lomeli12/DivingGear
-
1.5 update help
Searge put the pre-release on his twitter. MCP 7.42: http://t.co/GNMzOdkwth
-
Block with custom Model?
Here's how my custom block works : Block: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/block/BlockCoral.java Renderer: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/client/render/RenderCoral.java Model: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/client/model/ModelCoral.java TileEntity: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/tileentity/TileEntityCoralRenderer.java
-
Block no longer rendering correctly
So my block no longer to seems to render correctly. The first time I tested it it rendered perfectly fine. However, after making a few edits to it, I keep getting a NullPointerException BlockCoral: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/block/BlockCoral.java ModelCoral: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/client/model/ModelCoral.java RenderCoral: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/client/render/RenderCoral.java TileEntityCoralRenderer: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/tileentity/TileEntityCoralRenderer.java ClientProxy: https://github.com/Lomeli12/DivingGear/blob/master/common/com/lomeli/diving/core/ClientProxy.java ForgeLog
IPS spam blocked by CleanTalk.