Add cucumbers
This commit is contained in:
parent
492e1e9ece
commit
a5803b1320
2 changed files with 33 additions and 0 deletions
|
@ -95,6 +95,31 @@ public class Test {
|
|||
.setUnlocalizedName("seedsSalad");
|
||||
public static final Item salad = new ItemFood(3, 0.8f, false).setTextureName(MODID + ":salad").setUnlocalizedName("salad");
|
||||
|
||||
public static final GenericCrops cucumberField = new GenericCrops() {
|
||||
@Override
|
||||
public String getName() {
|
||||
return "cucumber";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item itemCrops() {
|
||||
return cucumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item itemSeeds() {
|
||||
return cucumberSeeds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderType() {
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
public static final Item cucumberSeeds = new ItemSeeds(cucumberField, Blocks.farmland).setTextureName(MODID + ":seeds_cucumber").setUnlocalizedName(
|
||||
"seedsCucumber");
|
||||
public static final Item cucumber = new ItemFood(4, 0.4f, false).setTextureName(MODID + ":cucumber").setUnlocalizedName("cucumber");
|
||||
|
||||
public static final ExtensibleBiomeDecorator biomeDecorator = new ExtensibleBiomeDecorator();
|
||||
|
||||
@EventHandler
|
||||
|
@ -108,6 +133,10 @@ public class Test {
|
|||
GameRegistry.registerItem(salad, "salad");
|
||||
GameRegistry.registerBlock(saladField, null, "salad");
|
||||
|
||||
GameRegistry.registerItem(cucumberSeeds, "seeds_cucumber");
|
||||
GameRegistry.registerItem(cucumber, "cucumber");
|
||||
GameRegistry.registerBlock(cucumberField, null, "cucumber");
|
||||
|
||||
biomeDecorator.registerTree(new ExtensibleBiomeDecorator.Tree() {
|
||||
@Override
|
||||
public Entry<WorldGenAbstractTree, Float> replaceTree(World world, BiomeGenBase biome, Random random, int x, int y, int z,
|
||||
|
|
|
@ -10,3 +10,7 @@ tile.stairsWoodCherry.name=Cherry Tree Wood Stairs
|
|||
item.salad.name=Salad
|
||||
item.seedsSalad.name=Salad Seeds
|
||||
tile.salad.name=Salad
|
||||
|
||||
item.cucumber.name=Cucumber
|
||||
item.seedsCucumber.name=Cucumber Seeds
|
||||
tile.cucumber.name=Cucumber
|
||||
|
|
Reference in a new issue