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] ore mining help

+2
ejmejm
AthosZBrogi
6 posters

MC Modding :: Help :: Help

Go down

  [Answered] ore mining help Empty [Answered] ore mining help

Post by AthosZBrogi 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 : 26

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

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

make the material of the block iron

ejmejm
Member

Posts : 11
Join date : 2011-10-29

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

Post by AthosZBrogi 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 : 26

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

Post by filip151 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 : 25
Location : Norway, Oslo Poland, Swiecie

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

Post by ejmejm 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

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

Post by Gardentiver 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! :)

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

Post by AthosZBrogi 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 : 26

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

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

you need to use scottools
the undecided t
the undecided t
Helper

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

http://www.blacklistgaming.org/forums

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

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

how do i do that

AthosZBrogi
Member

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

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

Post by ikke009 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;)
ikke009
ikke009
Member

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

Back to top Go down

  [Answered] ore mining help Empty Re: [Answered] ore mining help

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

MC Modding :: Help :: Help

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