Jump to content

jellefly12

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

jellefly12's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I did try to remove .itemID and it gives error you can change the method return type to item (wich doesnt work) and you can change type of itemRuby to an Int (wich gives errors in your main modding class)
  2. Check vanilla ores like diamond or coal. I found this piece od code wich i found in BlockRedstoneOre.java.patch public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_) { super.dropBlockAsItemWithChance(p_149690_1_, p_149690_2_, p_149690_3_, p_149690_4_, p_149690_5_, p_149690_6_, p_149690_7_); } {{{{{ if}}}}}} (this.getItemDropped(p_149690_5_, p_149690_1_.rand, p_149690_7_) != Item.getItemFromBlock(this)) private Random rand = new Random(); private Random rand1 = new Random(); @Override // World, meta, fortune public int getExpDrop(IBlockAccess p_149690_1_, int p_149690_5_, int p_149690_7_) { if (this.getItemDropped(p_149690_5_, rand, p_149690_7_) != Item.getItemFromBlock(this)) { int j1 = 1 + p_149690_1_.{{{{{{{{rand}}}}}}.nextInt(5); return 1 + rand.nextInt(5); } return 0; } i just copyed it and it gives me errors 0.0 i have marked the errosrs in these things {{{{{{ }}}}}} not that i dont know java i'm just not experienced enough to find the problem .
  3. Hello , i want to make an ore dropping one of my items this is the code for the Ore dropping an Item public static int idDropped(int par1 , random par2Random , int par3){ return mod.ItemRuby.itemID; } public int QuantityDropped(Random random){ return 1; } Why do i get an error at mod.ItemRuby.itemID i know you cant use itemids anymore but i juts cant find how i can fix the error
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.