Skip to content
Saucecoder edited this page Jan 3, 2012 · 3 revisions

Block Methods

Crops

There are two methods associated crops(The ones you farm!). get_crop_state and set_crop_state()

get_crop_state

get_crop_state will get the current growth state of a crop(wheat) block. It will return formatted text which has been down-cased and capitalized. These are the different values which it may return: Seeded-State when first seeded.

Germinated-First growth stage.

Very_small-Second growth stage.

Small-Third growth stage.

Medium-Fourth growth stage.

Tall-Fifth growth stage.

Very_tall-Almost ripe stage.

Ripe-Ripe stage. ###set_crop_state() set_crop_state() will change the state of growth of the crop block you are referencing with this method. These are the different parameters you can use with this method: SEEDED-State when first seeded.

GERMINATED-First growth stage.

VERY_SMALL-Second growth stage.

SMALL-Third growth stage.

MEDIUM-Fourth growth stage.

TALL-Fifth growth stage.

VERY_TALL-Almost ripe stage.

RIPE-Ripe stage. ##Biome and Light-Level These two commands are quite useful for certain block-based plugins. Although these are the only ones implemented, many more biome-based methods are to come. ###biome This method gets the current biome the block you are referencing is in. For example 'sand.biome => Desert'. Of course sand could be in any biome and still refer to the correct biome. Here are a list of values this method can return: Rainforest

Swampland

Seasonal_forest

Forest

Savanna

Shrubland

Taiga

Desert

Plains

Ice_desert

Tundra

Hell

Sky

Ocean

River

Extreme_hills

Frozen_ocean

Frozen_river

Ice_plains

Ice_mountains

Mushroom_island

Mushroom_shore