[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED
3 posters
MC Modding :: Help :: Help
Page 1 of 1
[Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED
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.
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.
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
Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED
I have no idea what you need help with
TWell92- Member
- Posts : 9
Join date : 2011-10-24
Age : 32
Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED
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
Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED
I'm not sure what's wrong. It looks like everything is correct.
TWell92- Member
- Posts : 9
Join date : 2011-10-24
Age : 32
jonarchy- Member
- Posts : 3
Join date : 2011-11-06
Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED
Use this code
I think the problem was here
public int idDropped(int i, Random random, int j)
{
return mod_rubyore.ruby.shiftedIndex;
}
- 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- Member
- Posts : 9
Join date : 2011-10-24
Age : 32
Re: [Answered] 1.0.0 Ore doesnt drop correct thing Help NEEDED
Thanks WOW. I never would have realized that. THANK YOU so much.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;
}
Minecraftn00b123- Member
- Posts : 7
Join date : 2011-11-08
MC Modding :: Help :: Help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum