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.

Alix_The_Alicorn

Members
  • Joined

  • Last visited

Everything posted by Alix_The_Alicorn

  1. bump, this is ALL I NEED to release the next version of my mod!
  2. post your new class that extends BlockContainer
  3. In your libraries section remove launch wrapper 1.7 and add 1.8
  4. It will give you your username and skin, but you are not "logged in" so don't expect to be able to log into online-mode=true servers
  5. Stuff is still deleted after a world reload
  6. also, as a last resort try chaining. genericItem = new GenericItem(500).setTextureName(generic:genericItem); I personally use chaining for almost everything
  7. just try that and see if it works. if you don't like defining it like that do setTextureName(Generic.modid + ":" + this.(this.getUnlocalizedName())
  8. in your constructor put setTextureName(generic:genericitem);
  9. Hi, I have two custom "furnace"s in my mod. http://github.com/alix-the-alicorn/carbon-mod/ When i put something in either one of them (grill or compression chamber) they work fine. But whenever I reload a SinglePlayer(internal server) world or restart a server, or reload the chunks that they are in, they reset to empty. Also, when smelting they do NOT update and change into their other state (which is one ID above what the idle on is). Can anyone help? also I have another three where I have another problem
  10. http://www.minecraftforge.net/forum/index.php/topic,12868.0.html
  11. Ok, I've done my randomly breaking!! :D I still need help with making my "Compression Chamber" have metadata sensitive input. my code for randomly breaking the chisel or not breaking it is this: package com.jmanpenilla.carbonmod.core.handlers; import java.util.Random; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import com.jmanpenilla.carbonmod.item.Items; import com.jmanpenilla.carbonmod.lib.Reference; import cpw.mods.fml.common.ICraftingHandler; /** * CarbonMod * * @author jmanpenilla * @license Lesser GNU Public License v3 (http://www.gnu.org/licenses/lgpl.html) * */ public class CraftingHandler implements ICraftingHandler{ @Override public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix) { final int x = 1; final int y = Reference.chiselBreakTime; int rand = new Random().nextInt(y-x) + x; for(int i=0; i < craftMatrix.getSizeInventory(); i++) //Checks all the slots { if(craftMatrix.getStackInSlot(i) != null) //If there is an item { ItemStack j = craftMatrix.getStackInSlot(i); //Gets the item if(j.getItem() != null && j.getItem() == Items.chisel && j.getItemDamage() == 0 && rand == 2) { ItemStack l = new ItemStack(Items.chisel, 2, 1); craftMatrix.setInventorySlotContents(i, l); } else if(j.getItem() != null && j.getItem() == Items.chisel && j.getItemDamage() == 0) { ItemStack k = new ItemStack(Items.chisel, 2, (j.getItemDamage() + 0)); //Makes a new itemstack that's been damaged and has 2 items craftMatrix.setInventorySlotContents(i, k); //Sets the slot to the new item } } } } @Override public void onSmelting(EntityPlayer player, ItemStack item) { } }
  12. I really don't know why people aren't answering MY question. I really need those two questions answered before I can release next version of my mod, or the next commit of my mod
  13. in 1.6.X ( You should be using 1.6.4 by now... ) you need a resource location in your class ex: public static final ResourceLocation TEXTURE = new ResourceLocation("carbon", "textures/model/CompressionChamber.png"); and you bind the texture like this FMLClientHandler.instance().getClient().renderEngine.bindTexture(TEXTURE); also if you want to you can check out my Modder support thread, I'm having a bit of trouble D:
  14. Why does everyone answer the questions except for mine is my question too stupid or something?
  15. That's in your "Light" class which extends BlockContainer
  16. First you don't need @SideOnly(Side.CLIENT) on public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l) { return false; } and you don't want @Override public TileEntity createNewTileEntity(World world) { // TODO Auto-generated method stub return new TileEntityLight(); } you want public TileEntity createNewTileEntity(World par1World) { return new TileCompressionChamber(); } you need to override isOpqueCube and you need a @Override public boolean renderAsNormalBlock() { return false; } method
  17. i think the mcp team mush have derped, a chunk is 16x16x256
  18. maybe look at code for sneaking (in EntityPlayer.class maybe?) and the invisibility potion (somewhere in the potion package)
  19. Also, I have one more problem. If you look at my github a few posts up, I have a custom furnace called "Compression Chamber" I want to be able to smelt a materialOne with a damage of 1 into a materialOne with a damage of 3. Could anyone help me?
  20. Maybe don't use unnecessary (byte)s ask xComWiz for more info
  21. I solved my original issue, scroll down I ask another question about how to make my custom furnace have metadata sensitive input. EDIT: SCROLL DOWN! MORE INFO ABOUT STUFF IS DOWN THERE| V
  22. ASM bytecode modifier instead of using asm to replace a class? http://www.minecraftforum.net/topic/1854988-tutorial-162-changing-vanilla-without-editing-base-classes-coremods-and-events-very-advanced/

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.