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.

Vemahk20

Members
  • Joined

  • Last visited

Everything posted by Vemahk20

  1. I admit im not that good with JAVA but i thought i had enough knowladge of it before i started this... What's metadata? well... i know what it is I just dont really know what you mean by adding metadata... Also, this code worked before, the only reason that im remaking it is cause i lost the previous project... so i have no idea why this isnt working.
  2. OK, What im trying to do is make a universal block file so that im not makeing a thousand BlockNAMEOFBLOCK files. While trying to do this however i had to make the file very flexible... i dont have the code with me so this is the basic gist of what it looks like. public BlockIB extends Block{ public static int iD; public static int qD; public BlockIB(int id, int picId, Material material, int quantDrop, int idDrop){ super(id, picId, material); if(idDrop != 0) { iD = idDrop; }else{ iD = this.blockID; } qD = quantDrop; } public int idDropped(Random rand){ return iD; } public int quantityDropped(Random rand){ return qD; } @Override public String getTextureFile(){ return CommonProxy.BLOCK_PNG; } } If you see some stupid error, its either my problem or a problem i had copying this down. i have horrible memory...
  3. Before you start trying to add a block to world generation, you need to program the basic mod file correctly... I hope you dont mind, but i sorted out the base mod file to help you a little. @Mod(modid = "Parallel Worlds", name = "Parallel Worlds", version = "1.0.0") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class ParallelWorlds { @SidedProxy(clientSide = "parallelworlds.client.ClientProxyParallelWorlds", serverSide = "parallelworlds.common.CommonProxyParallelWorlds") public static ClientProxyParallelWorlds proxy = new ClientProxyParallelWorlds(); @Init public void load(FMLInitializationEvent event){ gameRegisters(); languageRegisters(); proxy.registerRenders(); } public void gameRegisters(){ GameRegistry.registerBlock(parallelworldsBlock); GameRegistry.registerBlock(NightiumOre); } public void languageRegisters(){ LanguageRegistry.addName(NightiumOre, "NightiumOre"); LanguageRegistry.addName(parallelworldsBlock, "Nightium"); } public static final Block NightiumOre = new BlockNightiumOre(681, 1, Material.iron).setBlockName("Nightium Ore").setHardness(8.0F).setResistance(100000.0F).setStepSound(Block.soundStoneFootstep).setLightValue(1.0F); public static final Block parallelworldsBlock = new BlockParallelWorldsBlock(682, 0, Material.iron).setBlockName("Nightium").setHardness(8.0F).setResistance(10000.0F).setStepSound(Block.soundStoneFootstep); } You made it look a lot more complecated then it had to be, and really there were several errors. I hope this helps
  4. Thanks but.. it says when opening the gui that its the 'YourMod'.instance and i have no idea what that instance is. I think that's the last thing i need though
  5. Umm... What's a client proxy
  6. Hi, im a bit new to modding and i have hit a bit of a dead end when it comes to generating ores in the world. I have looked at some other threads with similar problems but none of them have seemed to help me. I also looked through some of the FML code with some generation programs but some of the parameters like the chunkprovider dont really ring a bell for me. Any help's nice Also, I have trouble with opening a GUI when it comes to right clicking on a block. The error report says that it is missing a mapping and i dont know what that means. --Vem

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.