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.

yesiwearpants

Members
  • Joined

  • Last visited

  1. Edited: I am Trying To Make My Block Change Creative Tab via Config. I can Successfully Disable a Tab if I Like But The Blocks are Not Showing up. i can post specific code if asked but I dont Know What all Is needed here ( I thought I did but If I knew That Id Have It Working) this is my Blocks constructor public BlockCarvable(int i) { this(Material.rock, i); if(Configurations.tabMod == true && i == 2) { setCreativeTab(ChiselTabs.tabModdedChiselBlocks); } else if((Configurations.tabBlocks == true && i == 1) || Configurations.tabMod == false) { setCreativeTab(ChiselTabs.tabChiselBlocks); } else { setCreativeTab(ChiselTabs.tabChisel); } } public BlockCarvable(Material m, int i) { super(m); if (m == Material.rock || m == Material.iron) { setHarvestLevel("pickaxe", 0); } carverHelper = new CarvableHelper(); setResistance(10.0F); setHardness(2.0F); if(Configurations.tabMod == true && i == 2) { setCreativeTab(ChiselTabs.tabModdedChiselBlocks); } else if((Configurations.tabBlocks == true && i == 1) || Configurations.tabMod == false) { setCreativeTab(ChiselTabs.tabChiselBlocks); } else { setCreativeTab(ChiselTabs.tabChisel); } } This is a Snippet from the enum where there Blocks are Initialized BOOKSHELF { @Override void addBlocks() { BlockCarvable bookshelf = (BlockCarvable) new BlockCarvableBookshelf(1).setHardness(1.5F).setStepSound(Block.soundTypeWood); Carving.chisel.addVariation("bookshelf", Blocks.bookshelf, 0, 0); bookshelf.carverHelper.addVariation("tile.bookshelf.1.desc", 1, "bookshelf/rainbow"); bookshelf.carverHelper.addVariation("tile.bookshelf.2.desc", 2, "bookshelf/necromancer-novice"); bookshelf.carverHelper.addVariation("tile.bookshelf.3.desc", 3, "bookshelf/necromancer"); bookshelf.carverHelper.addVariation("tile.bookshelf.4.desc", 4, "bookshelf/redtomes"); bookshelf.carverHelper.addVariation("tile.bookshelf.5.desc", 5, "bookshelf/abandoned"); bookshelf.carverHelper.addVariation("tile.bookshelf.6.desc", 6, "bookshelf/hoarder"); bookshelf.carverHelper.addVariation("tile.bookshelf.7.desc", 7, "bookshelf/brim"); bookshelf.carverHelper.addVariation("tile.bookshelf.8.desc", 8, "bookshelf/historician"); bookshelf.carverHelper.registerAll(bookshelf, "bookshelf"); bookshelf.setHarvestLevel("axe", 0); Carving.chisel.registerOre("bookshelf", "bookshelf"); } }, private static void loadBlocks() { Chisel.logger.info("Loading blocks..."); int num = 0; for (Features f : values()) { if (f.enabled()) { f.addBlocks(); ++num; } else { logDisabled(f); } } Chisel.logger.info(num + " Feature's blocks loaded."); Chisel.logger.info("Loading Tile Entities..."); Chisel.proxy.registerTileEntities(); Chisel.logger.info("Tile Entities loaded."); } static void preInit() { Chisel.logger.info("Starting pre-init..."); loadBlocks(); loadItems(); Chisel.logger.info("Pre-init finished."); } This Is My ConFig https://github.com/yesimwearingpants/Chisel-2/blob/dev/src/main/java/com/cricketcraft/chisel/config/Configurations.java This Is My The Mod Class https://github.com/yesimwearingpants/Chisel-2/blob/dev/src/main/java/com/cricketcraft/chisel/Chisel.java No This Isnt My Mod But This Is A New Feature Im Triny To Add Thanks in advance
  2. if its still not working for you try this https://github.com/yesimwearingpants/Template
  3. Not To Sound Rude But, Do I Really Need One?
  4. I'm not sure if .getUnlocalizedName().substring(5)); would work for meta I do It like This @Override public String getUnlocalizedName(ItemStack stack) { int i = MathHelper.clamp_int(stack.getItemDamage(), 0, textureNames.length); return String.format(Names.UnlocalItem.getUnlocal("ingot.%s%s"), Reference.MODID + ":", textureNames[i]); } @SideOnly(Side.CLIENT) public IIcon getIconFromDamage(int meta) { int j = MathHelper.clamp_int(meta, 0, textureNames.length); return this.icons[j]; }
  5. I have Alot of Item with Same or Similiar Names This Just makes it easy to keep them straight
  6. Im trying to do this 'ingot.batmanplusplus:Tetsu.name=Tetsu Ingot' here is my class file public static class UnlocalItem extends Item { private static String unlocal; private static String pre; /** * Sets the unlocalized name of this item to the string passed as the parameter, prefixed by 'something' */ //This Could End Badly public static Item setUnlocal(String unlocalizedName) { unlocal = unlocalizedName; return setUnlocal(unlocal); } /** * Translates the unlocalized name of this item, but without the .name suffix, so the translation fails and the * unlocalized name itself is returned. */ public String getUnlocalInefficiently(ItemStack stack) { String s = this.getUnlocal(stack); return s == null ? "" : StatCollector.translateToLocal(s); } /** * Returns the unlocalized name of this item. */ public static String getUnlocal(String prefix) { pre = prefix; return pre + unlocal; } /** * Returns the unlocalized name of this item. This version accepts an ItemStack so different stacks can have * different names based on their damage or NBT. */ public String getUnlocal(ItemStack stack) { return pre + this.unlocal; } /** * Gets the localized name of this block. Used for the statistics page. */ @Override public String getItemStackDisplayName(ItemStack stack) { return ("" + StatCollector.translateToLocal(this.getUnlocalInefficiently(stack) + ".name")).trim(); } } but I keep getting 'ingot.batmanplusplus:Tetsunull.name' instead My Thought is that its theunlocalizedName from Item, but how is that bleedng through
  7. No I even Tryied compiling the Git version same error It turns out that FMP doesn't work with 1286 or 1291 forge Edit: Maybe not that, Anyway I have a working Dev environment now Except that I my mod doesn't Launch when MC starts (it starts fine just without my mod). Also when I click launch It gives me the "Errors in Project" warning but, there are none in my code. I know this is a different question but if i can get FMP working that is still an acceptable solution my source is here https://github.com/yesimwearingpants/BatmanPlusPlus . It worked while FMP was broke [i mean I saw it in the logs] I like your Signature
  8. I dont really know what to say. I Removed my mod to make sure I wasnt at fault and this still happens. here is http://pastebin.com/UxfmeuQD let me know if I can provide anymore info.

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.