And what the heck is THAT? Do you even know what "&" does?
return 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1;
You're learning to mod on a version of Forge that has been dead for a LOOOOONG time. Update to 1.6.4 at *least*, 1.6.4 is now obsolete and stopped too but there will at least be people around who can help.
And what the heck is THAT? Do you even know what "&" does?
return 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1;
You're learning to mod on a version of Forge that has been dead for a LOOOOONG time. Update to 1.6.4 at *least*, 1.6.4 is now obsolete and stopped too but there will at least be people around who can help.
im using the ftb launcher to play minecraft and the modpack im using is unleashed (1.5.2) because the 1.6.4 ones takes too much memory and my computer cant handle it.
i want to make a mod to 1.5.2 so hopefully i can add it to the unleashed modpack and play with it
the "&" thing i found on this site to get multiple items to drop and the "getTextureFile" is from the video i watched on how to mod of SCMowns2..
i searched a lot in google and youtube for how to do that and i only found 1 solution, after using it i dont get any items from that block..
code:
package MCM.MCMFiles;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class BloodBlock extends Block {
public RRBlock(int par1, String texture) {
super(par1, Material.rock);
setCreativeTab(CreativeTabs.tabBlock); //place in creative tabs}
//drops when broken with pickaxe
@Override
public int idDropped(int par1, Random par2Random, int par3)
{
return MCM.RR_drop.itemID & MCM.RR_drop.itemID & MCM.RR_drop.itemID & MCM.RR_drop.itemID & MCM.RR_drop.itemID & MCM.RR_drop.itemID & MCM.RR_drop.itemID & MCM.RR_drop.itemID & Block.blockIron.blockID;
}
@Override
public int quantityDropped(Random random)
{
return 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1;
}
//texture the block (Not sure if it's required)
public String getTextureFile(){
return "/textures/blocks/RR_block.png";
}
}
And what the heck is THAT? Do you even know what "&" does?
You're learning to mod on a version of Forge that has been dead for a LOOOOONG time. Update to 1.6.4 at *least*, 1.6.4 is now obsolete and stopped too but there will at least be people around who can help.
im using the ftb launcher to play minecraft and the modpack im using is unleashed (1.5.2) because the 1.6.4 ones takes too much memory and my computer cant handle it.
i want to make a mod to 1.5.2 so hopefully i can add it to the unleashed modpack and play with it
the "&" thing i found on this site to get multiple items to drop and the "getTextureFile" is from the video i watched on how to mod of SCMowns2..
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
well even if i do remember that and just type 1
it still doesnt drop anything..
That is, in 1.7.10 anyway. No idea about 1.5.x.
Anyway, I have no idea how to do this on 1.5.2. Check the code for Chest block or Gravel block, in 1.7.10 at least it's obvious in them. Good luck.