Jump to content

6269329

Members
  • Posts

    18
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

6269329's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I was wondering if anyone could give me some help with making a custom door. I have looked around and haven't really found anything that produced any results, so any help would be appreciated, Thanks!
  2. What was that mod supposed to be? Because 9minecraft is gross
  3. This is kind of a weird idea, but would it be possible to make a small biome that generates with a big wall around it?
  4. I am trying to add some recipes and other mechanics to thaumcraft and I am trying to figure out how to use thaumium in a custom recipe. I am using the API, but I don't know how to reference thaumium from it, if you even can. Thanks!
  5. nvm, I did the thing! public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { if(player.getCurrentEquippedItem() != null) { ItemStack currentItem = player.getCurrentEquippedItem(); player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 100, 1))); //4 seconds of Regen II if (currentItem.stackSize == 1) { player.inventory.decrStackSize(player.inventory.currentItem, 1); } else { ItemStack itm=player.inventory.getStackInSlot(player.inventory.currentItem); player.inventory.decrStackSize(player.inventory.currentItem, 1); player.inventory.setInventorySlotContents(player.inventory.currentItem,itm.copy()); } } return true; }
  6. Non-Existent Help is Non-Existent...Anyone?
  7. Thanks to Loon, I now have it working so that It will remove the item. However, for some reason it only works if the item is alone and not in an actual stack. Thanks for all the quick replies! public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { if(player.getCurrentEquippedItem() != null) { ItemStack currentItem = player.getCurrentEquippedItem(); player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 100, 1))); //4 seconds player.inventory.decrStackSize(player.inventory.currentItem, 1); } return true; }
  8. I am making a mod and I need the item to disappear when used. I have tried Durability and changing the stack size, but all the things I have found do nothing. Any help would be appreciated. public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { if(player.getCurrentEquippedItem() != null) { ItemStack currentItem = player.getCurrentEquippedItem(); if(currentItem.getItem() == this) { player.addPotionEffect((new PotionEffect(Potion.regeneration.getId(), 100, 1))); //4 seconds int newStackSize = player.inventory.mainInventory[player.inventory.currentItem].stackSize - 1; //itemStack.stackSize-- doesn't work either currentItem.stackSize = currentItem.stackSize - 1; } } return true; }
×
×
  • Create New...

Important Information

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