Everything posted by KakesRevenge
-
[1.7.10] Something like hammer from ex nihilo
ok so i find this http://www.minecraftforge.net/forum/index.php?topic=26078.0 and i think i get it to work !
-
[1.7.10] Something like hammer from ex nihilo
event.drops.listIterator() what now ? I understand what you want me to do but i dont know how to that ..
-
[1.7.10] Something like hammer from ex nihilo
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)); } } }
-
[1.7.10] Something like hammer from ex nihilo
Please be specific. What exactly means ?
-
[1.7.10] Picture not showing
the enchantment name should be like so enchantment.speedBoost=Speed Boost
-
[1.7.10] Something like hammer from ex nihilo
So what do i have to do to make it work ?
-
[1.7.10] Something like hammer from ex nihilo
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
-
[1.7.10] Something like hammer from ex nihilo
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; } }
-
[1.7.10][SOLVED]setBlock not setting block
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
-
[1.7.10]Brewing recipes and anvil recipes
Wow thank you !!
-
[1.7.10]Brewing recipes and anvil recipes
and gui either
-
[1.7.10]Brewing recipes and anvil recipes
Nice idea but that doesnt work either ... Dunno what is wrong here but its not here Well ... whatever i give up
-
[1.7.10]Brewing recipes and anvil recipes
its not there ..
-
[1.7.10]Brewing recipes and anvil recipes
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 ?
-
[1.7.10]Brewing recipes and anvil recipes
Xetapro12 - Thank you i will check out that HappyKiller101 - thanks i will check yout that too
-
[1.7.10]Brewing recipes and anvil recipes
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
-
[1.7.10] Item with durability wont break
Im gonna go look at some basic java tutorials Thank you
-
[1.7.10] Item with durability wont break
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
-
[1.7.10] Item with durability wont break
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
-
[1.7.10] In Water Crafting
I was looking in their source code but its so hard to find the right thing... I will try it.
-
[1.7.10] In Water Crafting
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
-
[1.7.10] Container in existing item and shears durability in crafting
I want to have it on 1.7.10
-
[1.7.10] Container in existing item and shears durability in crafting
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 !!
IPS spam blocked by CleanTalk.