//made by MINNYMINNER
package net.minecraft.src;
public class mod_tree extends BlockLeaves
{
public int idDropped(int i, Random random)
{
return Block.cake.blockID;
}
}
hear is the errors
src\minecraft\net\minecraft\src\mod_tree.java:4: cannot find symbol
symbol : class java
location: class net.minecraft.src.BlockLeavesBase
public class mod_tree extends BlockLeavesBase.java
^
src\minecraft\net\minecraft\src\mod_tree.java:6: cannot find symbol
symbol : class Random
location: class net.minecraft.src.mod_tree
public int idDropped(int i, Random random)
^
im try to make a mod that drops different items from trees
mod_whatever files ALWAYS have to extend BaseMod. To make the new block, you'll have to start a different class to extend BlockLeaves and then call that class to make a new block in mod_whatever.
package net.minecraft.src;
public class mod_tree extends BaseMod{
public String Version() {
return "-something-here-";
}
public static final Block cakeLeaves;
static {
cakeLeaves =(new BlockCakeLeaves(18, 52)).setHardness(0.2F).setLightOpacity(1).setStepSound(soundGrassFootstep).setBlockName("leaves").disableStats().disableNeighborNotifyOnMetadataChange();
}
public mod_tree() {
ModLoader.RegisterBlock(cakeLeaves);
}
BlockCakeLeaves.java
package net.minecraft.src;
import java.util.Random;
public class BlockCakeLeaves extends BlockLeaves
{
public int quantityDropped(Random random)
{
return 1;
}
public int idDropped(int i, Random random)
{
return Block.cake.blockID;
}
}
package net.minecraft.src;
public class mod_tree extends BaseMod{
public String Version() {
return "-something-here-";
}
public static final Block cakeLeaves;
static {
cakeLeaves =(new BlockCakeLeaves(18, 52)).setHardness(0.2F).setLightOpacity(1).setStepSound(soundGrassFootstep).setBlockName("leaves").disableStats().disableNeighborNotifyOnMetadataChange();
}
public mod_tree() {
ModLoader.RegisterBlock(cakeLeaves);
}
BlockCakeLeaves.java
package net.minecraft.src;
import java.util.Random;
public class BlockCakeLeaves extends BlockLeaves
{
public int quantityDropped(Random random)
{
return 1;
}
public int idDropped(int i, Random random)
{
return Block.cake.blockID;
}
}
is that all you wanted???
yes and do you know how to make it drop coco beans?
hear is the errors im try to make a mod that drops different items from trees
http://tinyurl.com/9l6km29
i dont know im makeing a file that extends what the tree drops so i thought i had to extend BlockLeaves
http://tinyurl.com/9l6km29
can u send me a link?
BlockCakeLeaves.java
is that all you wanted???
yes and do you know how to make it drop coco beans?
to