added carrots

This commit is contained in:
cale 2016-12-25 12:06:26 +01:00
parent bebe09cadc
commit c27901a83b
6 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
minetest.register_node("default:wood", {
description = "Wood",
tiles = {"default_wood.png"},
groups = {choppy = 3},
groups = {choppy = 3, oddly_breakable_by_hand=1},
sounds = default.sounds.wood(),
})

View File

@ -35,6 +35,7 @@ function farming.register_plant(name, steps, def)
end,
})
end
minetest.register_craftitem(def.drop, {
description = def.drop_description,
inventory_image = def.drop_texture,
@ -53,11 +54,21 @@ end
farming.register_plant("wheat", 5, {
description = "Wheat",
texture = "farming_wheat",
drop = "farming:wheat_seeds",
drop_description = "Wheat Seeds",
drop_texture = "farming_wheat_seeds.png",
})
farming.register_plant("carrot", 3, {
description = "Carrot",
texture = "farming_carrot",
drop = "farming:carrot",
drop_description = "Carrot",
drop_texture = "farming_carrot.png",
})
minetest.override_item("default:plant_grass", {drop = {
max_items = 1,
items = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B