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.

KakesRevenge

Members
  • Joined

  • Last visited

Everything posted by KakesRevenge

  1. ok so i find this http://www.minecraftforge.net/forum/index.php?topic=26078.0 and i think i get it to work !
  2. event.drops.listIterator() what now ? I understand what you want me to do but i dont know how to that ..
  3. Thank you very much it worked ! Now it does drop my item but it still drops itself. So how do i stop it from droping itself. @SubscribeEvent public void Hammering (HarvestDropsEvent event) { if(event.block.equals(Blocks.iron_ore)) { if(event.harvester.getCurrentEquippedItem().getItem() == ItemsHandler.TestItem) { event.drops.remove(new ItemStack(Blocks.iron_ore)); event.drops.add(0, new ItemStack(ItemsHandler.IronDust, 2)); } } }
  4. Please be specific. What exactly means ?
  5. the enchantment name should be like so enchantment.speedBoost=Speed Boost
  6. So what do i have to do to make it work ?
  7. Okay so i have been figuring out this for a while and this is it @SubscribeEvent public void Hammering (HarvestDropsEvent event) { if(event.block.equals(Blocks.iron_ore)) { if(event.harvester.getCurrentEquippedItem() == new ItemStack(ItemsHandler.TestItem)) { event.drops.remove(new ItemStack(Blocks.iron_ore)); event.drops.add(new ItemStack(ItemsHandler.IronDust, 2)); } } } unfortunately it doesnt work ...this is my first time im trying to use event without copying something from somewhere some please be patient
  8. Hello everyone, Im trying to make thing like a hammer from ex nihilo .. that means when i broke a ore with it i will get dust from it. what is the method for it ? any ideas? What ive got so far package fewmorethings.items; import java.util.Set; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemTool; import com.google.common.collect.Sets; import fewmorethings.Main; import fewmorethings.help.Reference; public class TestItem extends ItemTool { private static EntityPlayer player; private static final Set Ores = Sets.newHashSet(new Block[]{Blocks.iron_ore, Blocks.gold_ore}); public TestItem(Item.ToolMaterial material) { super(1.0F, material, Ores); this.setUnlocalizedName("TestItem"); this.setTextureName(Reference.MODID + ":" + "TestItem"); this.setCreativeTab(Main.fmtab); } public boolean func_150897_b(Block block) { return block != Blocks.gold_ore && block != Blocks.iron_ore ?true: this.toolMaterial.getHarvestLevel() >= 2; } public float func_150893_a(ItemStack itemstack, Block block) { return block.getMaterial() != Material.rock ? super.func_150893_a(itemstack, block) : this.efficiencyOnProperMaterial; } }
  9. Register your block somewhere and public void Poop() { if(!worldObj.isRemote) { System.out.println("Pooping!"); worldObj.setBlock((int)posX, (int)posY, (int)posZ, Whereitsregistered.yourpoopblock); worldObj.markBlockForUpdate((int)posX, (int)posY, (int)posZ); m_Needs.SatisfyNeed("Poop", 100); } } I think lol
  10. Nice idea but that doesnt work either ... Dunno what is wrong here but its not here Well ... whatever i give up
  11. As far as i can see brewing stand recipes are incredibly hard for beginners (forge should make it easier if its possible) and i cant find anvilgui class and anviltileentity class where it is ?
  12. Xetapro12 - Thank you i will check out that HappyKiller101 - thanks i will check yout that too
  13. Hello, Is there any way to make brewing stand recipes and anvil recipes ? I mean i would like to make potion and i dont want to craft it in crafting bench lol Any help will be appreciated
  14. Im gonna go look at some basic java tutorials Thank you
  15. Im sorry, but thats the only way i can do it Im trying to learn ... If you could help me more i would appreciate that. And how to do the stack size 0 to null conversion ?? Thank you
  16. Hello everyone, i have a problem with my durable item ... in crafting it works fine but when im damaging item with itemstack.setItemDamage(itemstack.getItemDamage() + 1); it just wont break i would appreciate any help Thank you Durable Item class
  17. I was looking in their source code but its so hard to find the right thing... I will try it.
  18. Hello guys, i would like to make some "in water recipes" ... that means i would like to drop some items/blocks into water and then they will change to an item ... i hope u understand its like in applied energestics pretty much the same thing ... apparently i have no idea how to do it thank you for any ideas and sorry for my bad english
  19. Hello, Im having 2 problems : 1. I want to get water bottle back in this recipe : GameRegistry.addShapelessRecipe(new ItemStack(Items.clay_ball, 2), new ItemStack(Blocks.sand), new ItemStack(Blocks.gravel), new ItemStack(Items.potionitem,1,0)); Im not sure what i can do for it... maybe setting container in watter bottle but how ? 2. I want to set shears to have durability in crafting in this recipe : GameRegistry.addShapelessRecipe(new ItemStack(Items.string,4), new ItemStack(Items.shears, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Blocks.wool,1,0)); This doesnt work Thx for any help !!

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.