Add raddish
This commit is contained in:
parent
4100702536
commit
3989b6b622
2 changed files with 31 additions and 0 deletions
|
@ -8,6 +8,7 @@ import java.util.Random;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemFood;
|
import net.minecraft.item.ItemFood;
|
||||||
|
import net.minecraft.item.ItemSeedFood;
|
||||||
import net.minecraft.item.ItemSeeds;
|
import net.minecraft.item.ItemSeeds;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
@ -122,6 +123,30 @@ public class Test {
|
||||||
"seedsCucumber");
|
"seedsCucumber");
|
||||||
public static final Item cucumber = new ItemFood(4, 0.4f, false).setTextureName(MODID + ":cucumber").setUnlocalizedName("cucumber");
|
public static final Item cucumber = new ItemFood(4, 0.4f, false).setTextureName(MODID + ":cucumber").setUnlocalizedName("cucumber");
|
||||||
|
|
||||||
|
public static final GenericCrops raddishField = new GenericCrops() {
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "raddish";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Item itemCrops() {
|
||||||
|
return raddish;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Item itemSeeds() {
|
||||||
|
return raddish;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getRenderType() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
public static final Item raddish = new ItemSeedFood(4, 0.4f, raddishField, Blocks.farmland).setTextureName(MODID + ":raddish").setUnlocalizedName(
|
||||||
|
"raddish");
|
||||||
|
|
||||||
public static final ExtensibleBiomeDecorator biomeDecorator = new ExtensibleBiomeDecorator();
|
public static final ExtensibleBiomeDecorator biomeDecorator = new ExtensibleBiomeDecorator();
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
@ -139,6 +164,9 @@ public class Test {
|
||||||
GameRegistry.registerItem(cucumber, "cucumber");
|
GameRegistry.registerItem(cucumber, "cucumber");
|
||||||
GameRegistry.registerBlock(cucumberField, null, "cucumber");
|
GameRegistry.registerBlock(cucumberField, null, "cucumber");
|
||||||
|
|
||||||
|
GameRegistry.registerItem(raddish, "raddish");
|
||||||
|
GameRegistry.registerBlock(raddishField, null, "raddish");
|
||||||
|
|
||||||
biomeDecorator.registerTree(new ExtensibleBiomeDecorator.Tree() {
|
biomeDecorator.registerTree(new ExtensibleBiomeDecorator.Tree() {
|
||||||
@Override
|
@Override
|
||||||
public Entry<WorldGenAbstractTree, Float> replaceTree(World world, BiomeGenBase biome, Random random, int x, int y, int z,
|
public Entry<WorldGenAbstractTree, Float> replaceTree(World world, BiomeGenBase biome, Random random, int x, int y, int z,
|
||||||
|
|
|
@ -14,3 +14,6 @@ tile.salad.name=Salad
|
||||||
item.cucumber.name=Cucumber
|
item.cucumber.name=Cucumber
|
||||||
item.seedsCucumber.name=Cucumber Seeds
|
item.seedsCucumber.name=Cucumber Seeds
|
||||||
tile.cucumber.name=Cucumber
|
tile.cucumber.name=Cucumber
|
||||||
|
|
||||||
|
item.raddish.name=Raddish
|
||||||
|
tile.raddish.name=Raddish
|
||||||
|
|
Reference in a new issue