Add carrots
@ -1 +1,2 @@
|
|||||||
default
|
default
|
||||||
|
farming
|
||||||
|
25
farming.lua
Normal 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'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
1
init.lua
@ -2,5 +2,6 @@ local path = minetest.get_modpath("axinite")
|
|||||||
dofile(path.."/nodes.lua")
|
dofile(path.."/nodes.lua")
|
||||||
dofile(path.."/crafts.lua")
|
dofile(path.."/crafts.lua")
|
||||||
dofile(path.."/rollback_check.lua")
|
dofile(path.."/rollback_check.lua")
|
||||||
|
dofile(path.."/farming.lua")
|
||||||
-- dofile(path.."/chatcommands.lua")
|
-- dofile(path.."/chatcommands.lua")
|
||||||
-- dofile(path.."/utilities.lua")
|
-- dofile(path.."/utilities.lua")
|
||||||
|
BIN
textures/farming_carrot.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
textures/farming_carrot_1.png
Normal file
After Width: | Height: | Size: 137 B |
BIN
textures/farming_carrot_2.png
Normal file
After Width: | Height: | Size: 137 B |
BIN
textures/farming_carrot_3.png
Normal file
After Width: | Height: | Size: 196 B |
BIN
textures/farming_carrot_4.png
Normal file
After Width: | Height: | Size: 196 B |
BIN
textures/farming_carrot_5.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
textures/farming_carrot_6.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
textures/farming_carrot_7.png
Normal file
After Width: | Height: | Size: 463 B |
BIN
textures/farming_carrot_8.png
Normal file
After Width: | Height: | Size: 405 B |
BIN
textures/farming_carrot_seed.png
Normal file
After Width: | Height: | Size: 242 B |