Add carrots

This commit is contained in:
Peppy 2018-03-16 22:58:49 +00:00
parent 4cf4b7313c
commit 8a8b5593b7
13 changed files with 27 additions and 0 deletions

View File

@ -1 +1,2 @@
default
farming

25
farming.lua Normal file
View File

@ -0,0 +1,25 @@
---- Carrotes
farming.register_plant("farming:carrot", {
description = "Carrot seed",
inventory_image = "farming_carrot_seed.png",
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4},
})
minetest.override_item("farming:carrot", {
description = "Carrot",
on_use = minetest.item_eat(2),
})
minetest.override_item("default:dry_shrub", {drop = {
max_items = 1,
items = {
{items = {'farming:seed_carrot'},rarity = 8},
{items = {'default:dry_shrub'}},
}
}})

View File

@ -2,5 +2,6 @@ local path = minetest.get_modpath("axinite")
dofile(path.."/nodes.lua")
dofile(path.."/crafts.lua")
dofile(path.."/rollback_check.lua")
dofile(path.."/farming.lua")
-- dofile(path.."/chatcommands.lua")
-- dofile(path.."/utilities.lua")

BIN
textures/farming_carrot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B