[unanswered] making new materials and tools
3 posters
MC Modding :: Modding :: Singleplayer Modding :: Requests
Page 2 of 2
Page 2 of 2 • 1, 2
[unanswered] making new materials and tools
First topic message reminder :
So here is what i am trying to do for my mod:
I made a new block, emerald block, and i want to create a new tool, which is not a pickaxe or shovel but a new tool called a chisel. if you use the chisel on the emerald block how you would normally use a pickaxe on a coal ore, you get an emerald crystal.
So if anyone can explain to me how to do this, it will be greatly appreciated
So here is what i am trying to do for my mod:
I made a new block, emerald block, and i want to create a new tool, which is not a pickaxe or shovel but a new tool called a chisel. if you use the chisel on the emerald block how you would normally use a pickaxe on a coal ore, you get an emerald crystal.
So if anyone can explain to me how to do this, it will be greatly appreciated
ikke009- Member
- Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands
Re: [unanswered] making new materials and tools
- 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 == Block.dirt.blockID)
//blockID can be changed to shiftedIndex for items
{
dropBlockAsItem_do(world, i, j, k, new ItemStack(mod_MODSNAMEHERE.BLOCKSNAMEHERE.blockID, 1, l & 3));
} else
{
super.harvestBlock(world, entityplayer, i, j, k, l);
}
}
ikke009- Member
- Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands
Re: [unanswered] making new materials and tools
Damn, i almost had it... but this does look interesting, maybe ill use something like it in my mod
jesshankin22- Member
- Posts : 47
Join date : 2011-10-24
Page 2 of 2 • 1, 2
Similar topics
» [Unanswered] Making New Minecraft Dimension
» [1.1] tools set
» [Request} Special Tools
» [Answered/Solved] Making custom mobs fly
» Making a Furnace-like Block
» [1.1] tools set
» [Request} Special Tools
» [Answered/Solved] Making custom mobs fly
» Making a Furnace-like Block
MC Modding :: Modding :: Singleplayer Modding :: Requests
Page 2 of 2
Permissions in this forum:
You cannot reply to topics in this forum