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.

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

3 posters

MC Modding :: Help :: Help

Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED Empty [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by Minecraftn00b123 Sun Dec 18, 2011 3:21 am

My Blockrubyore is here:


package net.minecraft.src;

import java.util.Random;

public class Blockrubyore extends Block
{

public Blockrubyore(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_rubyore.ruby.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 1;
}
}


Help would make my day. Smile


Last edited by Minecraftn00b123 on Thu Dec 22, 2011 4:25 am; edited 3 times in total

Minecraftn00b123
Member

Posts : 7
Join date : 2011-11-08

Back to top Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED Empty Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by TWell92 Sun Dec 18, 2011 3:54 am

I have no idea what you need help with
TWell92
TWell92
Member

Posts : 9
Join date : 2011-10-24
Age : 32

Back to top Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED Empty Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by Minecraftn00b123 Sun Dec 18, 2011 4:35 am

TWell92 wrote:I have no idea what you need help with

the ruby ore drops ruby ore instead of ruby. Its like diamond ore dropping diamond ore not diamond.

Minecraftn00b123
Member

Posts : 7
Join date : 2011-11-08

Back to top Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED Empty Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by TWell92 Sun Dec 18, 2011 5:07 am

I'm not sure what's wrong. It looks like everything is correct.
TWell92
TWell92
Member

Posts : 9
Join date : 2011-10-24
Age : 32

Back to top Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED Empty Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by jonarchy Sun Dec 18, 2011 9:17 am

Use
Code:
jonarchy
jonarchy
Member

Posts : 3
Join date : 2011-11-06

Back to top Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED Empty Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by TWell92 Mon Dec 19, 2011 12:01 pm

Use this code
Code:
package net.minecraft.src;

import java.util.Random;

public class Blockrubyore extends Block
{

public Blockrubyore(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_rubyore.ruby.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 1;
}
}

I think the problem was here
public int idDropped(int i, Random random, int j)
{
return mod_rubyore.ruby.shiftedIndex;
}
TWell92
TWell92
Member

Posts : 9
Join date : 2011-10-24
Age : 32

Back to top Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED Empty Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by Minecraftn00b123 Thu Dec 22, 2011 4:24 am

TWell92 wrote:Use this code
Code:
package net.minecraft.src;

import java.util.Random;

public class Blockrubyore extends Block
{

public Blockrubyore(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_rubyore.ruby.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 1;
}
}

I think the problem was here
public int idDropped(int i, Random random, int j)
{
return mod_rubyore.ruby.shiftedIndex;
}
Thanks WOW. I never would have realized that. THANK YOU so much. Smile

Minecraftn00b123
Member

Posts : 7
Join date : 2011-11-08

Back to top Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED Empty Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


MC Modding :: Help :: Help

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