MC Modding
Please register and join the community!


Join the forum, it's quick and easy

MC Modding
Please register and join the community!
MC Modding
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[1.8.1] Item

+2
rt8269
Strengthowns
6 posters

Go down

[1.8.1] Item Empty [1.8.1] Item

Post by Strengthowns Wed Jun 15, 2011 6:34 am

Item

Spoiler:
Strengthowns
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

http://www.mcmodding.4umer.com

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by rt8269 Tue Nov 01, 2011 11:30 pm

how do i make it change to another item when i right click??

rt8269
Member

Posts : 4
Join date : 2011-10-31

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by ikke009 Wed Nov 02, 2011 10:02 am

ikke009
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 29
Location : The netherlands

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by mastereric Wed Nov 02, 2011 6:50 pm

@Ikke009 how do I make an item so that upon right click it increases your movement speed for 30 seconds?
*Optional* Maybe make the durability bar go down so you know how much time you have left. But don't make it destroy when it reaches 0! the item is expensive.
mastereric
mastereric
Member

Posts : 30
Join date : 2011-10-26

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by ikke009 Wed Nov 02, 2011 10:26 pm

i dont know.. the loop for the durability shouldnt be too hard, just make it so that if durability => 1 then durability = durability - 1 or something..
for increased speed, maybe there is something that can help you in one of the .java files that does the sprinting?
ikke009
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 29
Location : The netherlands

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by rt8269 Fri Nov 04, 2011 10:11 pm

that is an old tut....
i just NEED help!!!
can someone look at my code??

rt8269
Member

Posts : 4
Join date : 2011-10-31

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by lcass Fri Nov 04, 2011 10:22 pm

can you show me the error that you get and yo uwill need to post your code.

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

https://www.youtube.com/user/thealcasgroup

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by rt8269 Sat Nov 05, 2011 12:23 am

ok there is no error but the item wont do anything when i right click. it is made for giving me a stick on right click.
Code:
package net.minecraft.src;


public class ItemSwitchbladeclosed extends Item
{

    public ItemSwitchbladeclosed(int i, int j)
    {
        super(i);
        setMaxStackSize(1);
    }

    public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
    {

        return new ItemStack(Item.stick);
    }

}

rt8269
Member

Posts : 4
Join date : 2011-10-31

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by cosbraa Sun Nov 06, 2011 12:56 am

Code:
package net.minecraft.src;


public class ItemSwitchbladeclosed extends Item
{

    public ItemSwitchbladeclosed(int i)
    {
        super(i);
        maxStackSize = 1;
    }

    public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
    {
        return new ItemStack(Item.stick, 1);
    }

}
see if this works. im on my ipod so im not sure. cant remember what code was.

cosbraa
Member

Posts : 2
Join date : 2011-11-06

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by rt8269 Mon Nov 14, 2011 7:54 pm

how do i make an item that does damage like a sword??? i looked in the itemsword.java and there are things i don't need like to be able to block. if u could help me that would be great!

rt8269
Member

Posts : 4
Join date : 2011-10-31

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by lcass Mon Nov 14, 2011 8:14 pm

Please look in the user tutorials that is for making a new type of tool

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

https://www.youtube.com/user/thealcasgroup

Back to top Go down

[1.8.1] Item Empty Re: [1.8.1] Item

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum