Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

{help}when i break "testblock" with "testitemtool" it drops eg.redstone but if..


Recommended Posts

i am trying to make it so when my block "testblock" is broken by"testitemtool" it would drop eg.redstone but if its not broken by my "testitemtool" it will drop nothing.


im not sure how to do this so all input is so helpful and i would be very greatful.



package test_common.sidthesloth.main;

import net.minecraft.src.Block;
import net.minecraft.src.Item;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.Material;
import net.minecraft.src.World;

public class testblock extends Block {

public testblock (int id, int texture, Material material) {
	super(id, texture, material);

public String getTextureFile () {
	return CommonProxy.BLOCK_PNG;






package test_common.sidthesloth.main;

import net.minecraft.src.Item;

public class testitemtool extends Item {

public testitem(int id) {
	// TODO Auto-generated constructor stub



thanks if you read this

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.