Everything posted by 6269329
-
[1.7.10] Doors
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!
-
[1.7.10] Walled Biomes
What was that mod supposed to be? Because 9minecraft is gross
-
[1.7.10] Walled Biomes
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?
-
[1.7.10] Items from other Mods
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!
-
Help with changing Stack Size
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; }
-
Help with changing Stack Size
Non-Existent Help is Non-Existent...Anyone?
-
Help with changing Stack Size
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; }
-
Help with changing Stack Size
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; }
IPS spam blocked by CleanTalk.