Jump to content

memcallen

Members
  • Posts

    343
  • Joined

  • Last visited

Everything posted by memcallen

  1. Ok sorry, I'm using the latest version of forge (Minecraft 1.8 ). Just realized you can't have an eight and a bracket beside each other without it turning into an emoji.
  2. I'm looking through the block and item methods and I don't see anything thats hinting towards a texture. How do I texture a block or item?
  3. How do you run minecraft with your username and password. I tried going into the run arguments and adding the username and password flags(with my username/password) but I get and error saying could not create java virtual machine. Any help? EDIT:also are .lang files still a thing?(and where can I find out how to use them) EDIT 2:Figured out what I was doing wrong with the .lang file- I forgot to put it in the correct path
  4. Thanks! this helps a lot.
  5. I've modded in the past and recently I've wanted to start again. Looking back at my old mod it is 1.7.2 and I can't find any tutorials about 1.6.4 or up. Could someone give me a link to a good starting tutorial? (I mean setting up the files and everything)
  6. Is there any way to add extra slots to the player's inventory? If there is, could I just make the slots off screen, instead of in the middle like they're supposed to be? (kind of like adding 9 slots just off screen to the right, so the player can't access them)
  7. Yeah I realize that, but even if it is extremely difficult as long as it doesn't use reflection I'll probably still use it.
  8. I have a concept of an item, it basically extends the player's inventory. (this item links to a chest) as an example, if the player used a bow but didn't have any arrows, although there were some in the item's linked chest the bow would work and shoot an arrow while using the arrow in the chest. I don't need to constantly access the chest, as in storage wise, but the player.hasItem functions would return true if the chest had the item.
  9. Keep in mind that my mod is still in 1.7.2-I have no idea how to update, and I'm not sure if obj files work in 1.7.2
  10. is it ok to put that in the onupdate or would that cause too much lag?
  11. I've made an item that I want to use to increase the players reach. It's basically a block teleporter, but that's not relevant. I want it to increase the range if it's in a player's inventory, but only if it's in the hotbar. I know how to make it detect if it's in the hotbar or not, I just don't know how to increase the player's range when they have it.
  12. Does minecraft already have an instance instantaniated like "Minecraft.getMinecraft().GSON"?
  13. Object obj = new Object() ^ that
  14. What's the class name for the getter/setter?
  15. I was wondering if minecraft had a JSON library already so I didn't have to get one. I want to use a JSON file for simple block creation, and item creation etc.
  16. I got it to work but I have to use nbt, thanks
  17. I was testing it, before it was just the !world.isRemote and the spawn entity, but it still spawned two items when I shift clicked
  18. public void onCreated(ItemStack itemstack,World world,EntityPlayer player){ EntityItem item = new EntityItem(world,player.posX,player.posY,player.posZ,new ItemStack(Drill)); if(!world.isRemote) world.spawnEntityInWorld(item); if(!GuiScreen.isShiftKeyDown()&&!world.isRemote) world.spawnEntityInWorld(item); }
  19. In my item's onCreated function it's spawning another item, but when I press shift it spawns two items.
  20. I didn't import anything yet actually, which is odd. EDIT: I manually imported net.minecraftforge.common.config.Configuration and it's still using the javax one. EDIT 2:turns out that I was importing the javax one before, I have no idea what I was using it for though.
  21. I'm trying to make a config file but when I do "new Configuration(event.getSuggestedConfigurationFile)" it says that Configuration can't be instantiated. I hovered over Configuration (I'm using eclipse) and it was under "javax.security". Do I need the import or am I doing something wrong?
  22. Then either the extension is wrong or you put the texture in the wrong place
  23. ok, I got it to work now, thanks
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.