MC Modding
Please register and join the community!

[Answered] ore mining help

MC Modding :: Help :: Help

View previous topic View next topic Go down

[Answered] ore mining help

Post by AthosZBrogi on Sun Oct 30, 2011 4:20 am

How do i make an ore only be able to get mined by an iron pick.

example: diamond ore can only be mined with a iron pick or higher

help if u can.


Last edited by AthosZBrogi on Tue Dec 27, 2011 9:08 am; edited 2 times in total

AthosZBrogi
Member

Posts : 12
Join date : 2011-10-24
Age : 20

View user profile

Back to top Go down

Re: [Answered] ore mining help

Post by ejmejm on Sun Oct 30, 2011 6:17 am

make the material of the block iron

ejmejm
Member

Posts : 11
Join date : 2011-10-29

View user profile

Back to top Go down

Re: [Answered] ore mining help

Post by AthosZBrogi on Sun Oct 30, 2011 6:43 am

it is on Material.iron and i still can mine it with a wooden and stone pick

AthosZBrogi
Member

Posts : 12
Join date : 2011-10-24
Age : 20

View user profile

Back to top Go down

Re: [Answered] ore mining help

Post by filip151 on Sun Oct 30, 2011 1:53 pm

Scottols are used for that! But if you want to know how to use it, then you need to seek help somewhere else, because I also need help with that..

filip151
Member

Posts : 11
Join date : 2011-10-21
Age : 18
Location : Norway, Oslo Poland, Swiecie

View user profile

Back to top Go down

Re: [Answered] ore mining help

Post by ejmejm on Sun Oct 30, 2011 3:24 pm

if you change it to iron you should be able to mine it but you shouldn't get the items

ejmejm
Member

Posts : 11
Join date : 2011-10-29

View user profile

Back to top Go down

Re: [Answered] ore mining help

Post by Gardentiver on Thu Nov 03, 2011 11:44 am

public BlockNamehere(int i, int j)
{
super(i, j, Material.ground);
}



Material.ground would make it like dirt.
Goto the Material.java and in it, it shows all of the Materials so with this 1 instead of

public BlockNamehere(int i, int j)
{
super(i, j, Material.ground);
}

change it to

public BlockNamehere(int i, int j)
{
super(i, j, Material.iron);
}

Gardentiver
Member

Posts : 3
Join date : 2011-10-15
Location : Nunya! :)

View user profile

Back to top Go down

Re: [Answered] ore mining help

Post by AthosZBrogi on Sat Nov 05, 2011 5:48 am

it is on Material.iron i have checked like 16 times now and i still can mine it with a wooden pick

AthosZBrogi
Member

Posts : 12
Join date : 2011-10-24
Age : 20

View user profile

Back to top Go down

Re: [Answered] ore mining help

Post by the undecided t on Sat Nov 05, 2011 5:56 pm

you need to use scottools
avatar
the undecided t
Helper

Posts : 45
Join date : 2011-10-20
Age : 21

View user profile http://www.blacklistgaming.org/forums

Back to top Go down

Re: [Answered] ore mining help

Post by AthosZBrogi on Sat Nov 05, 2011 10:19 pm

how do i do that

AthosZBrogi
Member

Posts : 12
Join date : 2011-10-24
Age : 20

View user profile

Back to top Go down

Re: [Answered] ore mining help

Post by ikke009 on Sun Nov 06, 2011 1:59 pm

you can use this code
Code:

 public void harvestBlock(World world, EntityPlayer entityplayer, int i, int j, int k, int l)
    {
        if(!world.multiplayerWorld && entityplayer.getCurrentEquippedItem() != null && entityplayer.getCurrentEquippedItem().itemID == Item.pickaxeDiamond.shiftedIndex)
        {
            dropBlockAsItem_do(world, i, j, k, new ItemStack(mod_jasper.emeraldcrystal.shiftedIndex, 1, l & 3));
        } else
        {
            super.harvestBlock(world, entityplayer, i, j, k, l);
        }
    }

youll have to change the 'else' part so that it drops nothing (not sure but probably return -1;)
avatar
ikke009
Member

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

View user profile

Back to top Go down

Re: [Answered] ore mining help

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