MC Modding
Please register and join the community!

block pick requirements (solved)

Go down

block pick requirements (solved)

Post by Ranga179 on 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 : 21

View user profile

Back to top Go down

Re: block pick requirements (solved)

Post by Static_boy123 on 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.
avatar
Static_boy123
Helper

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

View user profile

Back to top Go down

Re: block pick requirements (solved)

Post by Ranga179 on 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 : 21

View user profile

Back to top Go down

Re: block pick requirements (solved)

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

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

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

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

Back to top Go down

Re: block pick requirements (solved)

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

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

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

View user profile

Back to top Go down

Re: block pick requirements (solved)

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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