Jump to content

How to make it so that items can't drop when I break them with my fist.


PogChamp

Recommended Posts

So I've been following a tutorial on how to mod with eclipse and forge 1.12.2,and I made some blocks. The next episode, he showed how to make those blocks have certain things like harvest level, hardness, etc. My code looks something like this:

import net.minecraft.block.SoundType;

import net.minecraft.block.material.Material;

 

public class Leaves extends BlockBase {

 

public Leaves(String name, Material material) {

super(name, material);

setHarvestLevel("shears", 2);

 

Although I made harvest level shears, the item still drops when I break it with my fist. Im trying to make it so that it only drops when broken with shears, any fixes?

 

 
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.