xTekBlue 0 Report post Posted Tuesday at 03:56 AM I am posting this before i sleep so i will not be responding back for a while. Other news, i can not figure out where the method is for allowing efficiency on my block and where to add fortune to my block. Here is my code that I've been messing with. package xtekblue.mod.objects.blocks; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import xtekblue.mod.Main; import xtekblue.mod.init.ItemInit; import xtekblue.mod.util.IHasExtra; import xtekblue.mod.util.IHasModel; public class BlockRGLit extends BlockBase { public BlockRGLit(String name) { super(name, Material.REDSTONE_LIGHT); setSoundType(SoundType.GLASS); setHardness(0.5F); setLightLevel(8.0F); setResistance(1.5F); setHarvestLevel("pickaxe", 0); } /** * Returns the quantity of items to drop on block destruction. */ public int quantityDropped(Random rand) { return rand.nextInt(4) + 1; } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return ItemInit.MIX_REDSTONE_GLOWSTONE; } @Override protected ItemStack getSilkTouchDrop(IBlockState state) { Item item = Item.getItemFromBlock(this); int i = 0; if (item.getHasSubtypes()) { i = this.getMetaFromState(state); } return new ItemStack(item, 1, i); } } Share this post Link to post Share on other sites
Draco18s 1777 Report post Posted Tuesday at 05:30 AM Try maybe using the version of quantityDropped that passes in an int fortune parameter? Share this post Link to post Share on other sites
xTekBlue 0 Report post Posted Tuesday at 03:26 PM 9 hours ago, Draco18s said: Try maybe using the version of quantityDropped that passes in an int fortune parameter? Got it, but how would i allow efficiency or set a hardness for efficiency levels on pickaxes. I removed the setHarvestLevel("pickaxe", 0); because it made pickaxes break it instantly just about. I'm trying to make the Pickaxe mine the block just as slow but when the Pickaxe has efficiency then it can mine it a tiny bit quicker. Share this post Link to post Share on other sites
Draco18s 1777 Report post Posted Tuesday at 05:54 PM The efficiency enchantment is automatic. You don't need to do anything. 2 hours ago, xTekBlue said: set a hardness setHardness() perhaps? Share this post Link to post Share on other sites
xTekBlue 0 Report post Posted Wednesday at 03:16 PM hmm, I have tried setting hardness and such, maybe its because of the Material.REDSTONE_LIGHT Because i have made another block the exact same but set Material to IRON and efficiency works on it. I'm going to do further testing. Share this post Link to post Share on other sites
Draco18s 1777 Report post Posted Wednesday at 06:27 PM Redstone materials break instantly, yes. They bypass the hardness check. Share this post Link to post Share on other sites