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.

Lomeli12

Members
  • Joined

  • Last visited

Everything posted by Lomeli12

  1. 1.5.1 seems to have brought back .setBlock and overloads it with what used to be .setBlockMetadataWithNotify
  2. 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/
  3. 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)
  4. 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
  5. 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)); }
  6. Lomeli12 replied to Chibill's topic in Modder Support
    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); } }
  7. Where is the root directory? IM SO LOST I'm guessing you have your code in mcp/src/minecraft/, that is your root directory.
  8. 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"); }
  9. Fixed with latest version of forge.
  10. 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
  11. Searge put the pre-release on his twitter. MCP 7.42: http://t.co/GNMzOdkwth
  12. 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
  13. 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

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.