MC Modding
Please register and join the community!

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

MC Modding :: Help :: Help

View previous topic View next topic Go down

[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED

Post by Minecraftn00b123 on 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

View user profile

Back to top Go down

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

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

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

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

View user profile

Back to top Go down

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

Post by Minecraftn00b123 on 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

View user profile

Back to top Go down

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

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

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

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

View user profile

Back to top Go down

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

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

Use
Code:
avatar
jonarchy
Member

Posts : 3
Join date : 2011-11-06

View user profile

Back to top Go down

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

Post by TWell92 on 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;
}
avatar
TWell92
Member

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

View user profile

Back to top Go down

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

Post by Minecraftn00b123 on 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

View user profile

Back to top Go down

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

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


MC Modding :: Help :: Help

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