Initial commit

This commit is contained in:
sys4-fr 2017-02-21 04:36:50 +01:00
parent bc917609a5
commit a797e8f42d
14 changed files with 49 additions and 4 deletions

7
.gitignore vendored
View File

@ -1,5 +1,4 @@
# Compiled
*.elc
*.el
*~
*.autosave
# Packaging
.cask

2
depends.txt Normal file
View File

@ -0,0 +1,2 @@
moreflowers
farming

44
init.lua Normal file
View File

@ -0,0 +1,44 @@
-- carrot
minetest.override_item("moreflowers:wild_carrot",
{
drop = {
max_items = 1,
items = {
{ items = {"morefarming:seed_carrot"}, rarity = 8},
{ items = {"moreflowers:wild_carrot"}},
}
}})
farming.register_plant("morefarming:carrot",
{
description = "Carrot seed",
paramtype2 = "meshoptions",
inventory_image = "morefarming_carrot_seed.png",
steps = 8,
minlight = 13,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4},
place_param2 = 3,
})
minetest.override_item("morefarming:carrot",
{
on_use = minetest.item_eat(4)
})
-- golden carrot
minetest.register_craftitem("morefarming:carrot_gold", {
description = "Golden Carrot",
inventory_image = "morefarming_carrot_gold.png",
on_use = minetest.item_eat(6),
})
minetest.register_craft({
output = "morefarming:carrot_gold",
recipe = {
{"", "default:gold_lump", ""},
{"default:gold_lump", "morefarming:carrot", "default:gold_lump"},
{"", "default:gold_lump", ""},
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B