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.

block pick requirements (solved)

3 posters

Go down

block pick requirements (solved) Empty block pick requirements (solved)

Post by Ranga179 Thu Oct 20, 2011 1:02 pm

hi, i think you should add how to make it so that only certain tools can mine certain blocks successfully.
e.g.
mod_ore: can only be mined by iron pickaxe+
mod_wood: can only be gathered by iron axe+

(not nesecarily these items and blocks but yeah, i have never known how to do that)


Last edited by Ranga179 on Sat Nov 26, 2011 7:47 am; edited 1 time in total

Ranga179
Member

Posts : 9
Join date : 2011-10-19
Age : 28

Back to top Go down

block pick requirements (solved) Empty Re: block pick requirements (solved)

Post by Static_boy123 Thu Oct 20, 2011 3:13 pm

Set the block material to iron for ores. For wood you would need to use a custom material.
Static_boy123
Static_boy123
Helper

Posts : 32
Join date : 2011-10-19
Age : 25
Location : Eclipse Indigo

Back to top Go down

block pick requirements (solved) Empty Re: block pick requirements (solved)

Post by Ranga179 Thu Oct 20, 2011 3:19 pm

i tried that with my ore, yet wood still mines it and gets the block.
my code is
Code:
BoogOre = (new Block(152, 0, Material.iron)).setHardness(3.0F).setResistance(10F).setLightValue(1.0F).setStepSound(Block.soundStoneFootstep).setBlockName("boogore");

Ranga179
Member

Posts : 9
Join date : 2011-10-19
Age : 28

Back to top Go down

block pick requirements (solved) Empty Re: block pick requirements (solved)

Post by the undecided t Thu Oct 20, 2011 5:19 pm

well then maybe a tut for custom materials would be good.
the undecided t
the undecided t
Helper

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

http://www.blacklistgaming.org/forums

Back to top Go down

block pick requirements (solved) Empty Re: block pick requirements (solved)

Post by Static_boy123 Thu Oct 20, 2011 10:10 pm

I will be making a bunch of tutorials including a material.
Static_boy123
Static_boy123
Helper

Posts : 32
Join date : 2011-10-19
Age : 25
Location : Eclipse Indigo

Back to top Go down

block pick requirements (solved) Empty Re: block pick requirements (solved)

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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